From 1f760d882afee495eb625187b58b7d19b98f86af Mon Sep 17 00:00:00 2001 From: Kim Shepherd Date: Thu, 13 Mar 2025 13:12:38 +0100 Subject: [PATCH] Geospatial maps: Revert metadata-representation-list.component.ts changes Note: Might interfere with some nice virtual authority compatibility --- .../metadata-representation-list.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts b/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts index baedd51f53..f222fc42f6 100644 --- a/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts +++ b/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts @@ -6,7 +6,6 @@ import { import { TranslateModule } from '@ngx-translate/core'; import { Observable, - of, zip as observableZip, } from 'rxjs'; import { map } from 'rxjs/operators'; @@ -94,17 +93,14 @@ export class MetadataRepresentationListComponent extends AbstractIncrementalList * @param metadata The list of all metadata values * @param page The page to return representations for */ - resolveMetadataRepresentations(metadata: MetadataValue[], page: number): Observable { + resolveMetadataRepresentations(metadata: MetadataValue[], page: number): Observable { return observableZip( ...metadata .slice((this.objects.length * this.incrementBy), (this.objects.length * this.incrementBy) + this.incrementBy) .map((metadatum: any) => Object.assign(new MetadataValue(), metadatum)) .map((metadatum: MetadataValue) => { - if (this.metadataService.isVirtual(metadatum) && !metadatum.authority.includes('http')) { + if (this.metadataService.isVirtual(metadatum)) { return this.relationshipService.resolveMetadataRepresentation(metadatum, this.parentItem, this.itemType); - } else if (this.metadataService.isVirtual(metadatum) && metadatum.authority.includes('http')) { - // TODO: we could do authority virtual handling here? - return of([]); } else { // Check for a configured browse link and return a standard metadata representation let searchKeyArray: string[] = [];