(ver)
| 543 | } |
| 544 | |
| 545 | getCurVerCollections(ver) { |
| 546 | const folderData = [] |
| 547 | for ( const [CKey, status] of Object.entries(this.#map_CollectionToStatus) ) { |
| 548 | if ( status && this.version(CKey) === ver ) { |
| 549 | if ( typeof this.mapCollectionToName(CKey) === 'undefined' ) { continue } |
| 550 | folderData.push([ |
| 551 | CKey, |
| 552 | this.mapCollectionToName(CKey), |
| 553 | this.mapCollectionToFullName(CKey), |
| 554 | this.getSafeDate(CKey, 'add_date'), |
| 555 | this.getSafeDate(CKey, 'last') |
| 556 | ]) |
| 557 | } |
| 558 | } |
| 559 | return folderData.sort((a, b) => Intl.Collator().compare(a[1], b[1])) |
| 560 | } |
| 561 | |
| 562 | /** |
| 563 | * Add a collection |
no test coverage detected