Skip to content

Commit d7c331a

Browse files
committed
[DSC-1454] limit author to first 20 entries to avoid issue with item page rendering
1 parent 19a26ec commit d7c331a

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/app/core/metadata/metadata.service.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import { TranslateService } from '@ngx-translate/core';
88
import {
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

1818
import { hasNoValue, hasValue, isNotEmpty } from '../../shared/empty.util';
1919
import { DSONameService } from '../breadcrumbs/dso-name.service';
@@ -25,10 +25,7 @@ import { BitstreamFormat } from '../shared/bitstream-format.model';
2525
import { Bitstream } from '../shared/bitstream.model';
2626
import { DSpaceObject } from '../shared/dspace-object.model';
2727
import { Item } from '../shared/item.model';
28-
import {
29-
getFirstCompletedRemoteData,
30-
getFirstSucceededRemoteDataPayload
31-
} from '../shared/operators';
28+
import { getFirstCompletedRemoteData, getFirstSucceededRemoteDataPayload } from '../shared/operators';
3229
import { RootDataService } from '../data/root-data.service';
3330
import { getBitstreamDownloadRoute } from '../../app-routing-paths';
3431
import { 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

Comments
 (0)