Skip to content

Commit 1f760d8

Browse files
committed
Geospatial maps: Revert metadata-representation-list.component.ts changes
Note: Might interfere with some nice virtual authority compatibility
1 parent d4dee96 commit 1f760d8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
import { TranslateModule } from '@ngx-translate/core';
77
import {
88
Observable,
9-
of,
109
zip as observableZip,
1110
} from 'rxjs';
1211
import { map } from 'rxjs/operators';
@@ -94,17 +93,14 @@ export class MetadataRepresentationListComponent extends AbstractIncrementalList
9493
* @param metadata The list of all metadata values
9594
* @param page The page to return representations for
9695
*/
97-
resolveMetadataRepresentations(metadata: MetadataValue[], page: number): Observable<MetadataRepresentation[]|any[]> {
96+
resolveMetadataRepresentations(metadata: MetadataValue[], page: number): Observable<MetadataRepresentation[]> {
9897
return observableZip(
9998
...metadata
10099
.slice((this.objects.length * this.incrementBy), (this.objects.length * this.incrementBy) + this.incrementBy)
101100
.map((metadatum: any) => Object.assign(new MetadataValue(), metadatum))
102101
.map((metadatum: MetadataValue) => {
103-
if (this.metadataService.isVirtual(metadatum) && !metadatum.authority.includes('http')) {
102+
if (this.metadataService.isVirtual(metadatum)) {
104103
return this.relationshipService.resolveMetadataRepresentation(metadatum, this.parentItem, this.itemType);
105-
} else if (this.metadataService.isVirtual(metadatum) && metadatum.authority.includes('http')) {
106-
// TODO: we could do authority virtual handling here?
107-
return of([]);
108104
} else {
109105
// Check for a configured browse link and return a standard metadata representation
110106
let searchKeyArray: string[] = [];

0 commit comments

Comments
 (0)