File tree Expand file tree Collapse file tree
src/app/item-page/simple/metadata-representation-list Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import { TranslateModule } from '@ngx-translate/core' ;
77import {
88 Observable ,
9- of ,
109 zip as observableZip ,
1110} from 'rxjs' ;
1211import { 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 [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments