@@ -8,12 +8,12 @@ import { TranslateService } from '@ngx-translate/core';
88import {
99 BehaviorSubject ,
1010 combineLatest ,
11- Observable ,
12- of as observableOf ,
1311 concat as observableConcat ,
14- EMPTY
12+ EMPTY ,
13+ Observable ,
14+ of as observableOf
1515} from 'rxjs' ;
16- import { filter , map , switchMap , take , mergeMap } from 'rxjs/operators' ;
16+ import { filter , map , mergeMap , switchMap , take } from 'rxjs/operators' ;
1717
1818import { hasNoValue , hasValue , isNotEmpty } from '../../shared/empty.util' ;
1919import { DSONameService } from '../breadcrumbs/dso-name.service' ;
@@ -25,10 +25,7 @@ import { BitstreamFormat } from '../shared/bitstream-format.model';
2525import { Bitstream } from '../shared/bitstream.model' ;
2626import { DSpaceObject } from '../shared/dspace-object.model' ;
2727import { Item } from '../shared/item.model' ;
28- import {
29- getFirstCompletedRemoteData ,
30- getFirstSucceededRemoteDataPayload
31- } from '../shared/operators' ;
28+ import { getFirstCompletedRemoteData , getFirstSucceededRemoteDataPayload } from '../shared/operators' ;
3229import { RootDataService } from '../data/root-data.service' ;
3330import { getBitstreamDownloadRoute } from '../../app-routing-paths' ;
3431import { BundleDataService } from '../data/bundle-data.service' ;
@@ -245,7 +242,8 @@ export class MetadataService {
245242 * Add <meta name="citation_author" ... > to the <head>
246243 */
247244 private setCitationAuthorTags ( ) : void {
248- const values : string [ ] = this . getMetaTagValues ( [ 'dc.author' , 'dc.contributor.author' , 'dc.creator' ] ) ;
245+ // limit author to first 20 entries to avoid issue with item page rendering
246+ const values : string [ ] = this . getMetaTagValues ( [ 'dc.author' , 'dc.contributor.author' , 'dc.creator' ] ) . slice ( 0 , 20 ) ;
249247 this . addMetaTags ( 'citation_author' , values ) ;
250248 }
251249
0 commit comments