From c838cc0b91f8e9e86e95af379dca86b3342b2b3e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 6 Nov 2023 22:54:45 +0300 Subject: [PATCH] src/app/core: update meta tags for CGSpace We use more DCTERMS than DC. --- src/app/core/metadata/metadata.service.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/core/metadata/metadata.service.ts b/src/app/core/metadata/metadata.service.ts index 204c925e6bb..bb68cc5ab82 100644 --- a/src/app/core/metadata/metadata.service.ts +++ b/src/app/core/metadata/metadata.service.ts @@ -198,7 +198,7 @@ export class MetadataService { */ private setDescriptionTag(): void { // TODO: truncate abstract - const value = this.getMetaTagValue('dc.description.abstract'); + const value = this.getMetaTagValue('dcterms.abstract'); this.addMetaTag('description', value); } @@ -222,7 +222,7 @@ export class MetadataService { * Add to the */ private setCitationPublicationDateTag(): void { - const value = this.getFirstMetaTagValue(['dc.date.copyright', 'dc.date.issued', 'dc.date.available', 'dc.date.accessioned']); + const value = this.getFirstMetaTagValue(['dc.date.copyright', 'dcterms.issued', 'dcterms.available', 'dc.date.accessioned']); this.addMetaTag('citation_publication_date', value); } @@ -230,7 +230,7 @@ export class MetadataService { * Add to the */ private setCitationISSNTag(): void { - const value = this.getMetaTagValue('dc.identifier.issn'); + const value = this.getMetaTagValue('cg.issn'); this.addMetaTag('citation_issn', value); } @@ -238,7 +238,7 @@ export class MetadataService { * Add to the */ private setCitationISBNTag(): void { - const value = this.getMetaTagValue('dc.identifier.isbn'); + const value = this.getMetaTagValue('cg.isbn'); this.addMetaTag('citation_isbn', value); } @@ -246,7 +246,7 @@ export class MetadataService { * Add to the */ private setCitationLanguageTag(): void { - const value = this.getFirstMetaTagValue(['dc.language', 'dc.language.iso']); + const value = this.getFirstMetaTagValue(['dcterms.language', 'dc.language.iso']); this.addMetaTag('citation_language', value); } @@ -262,7 +262,7 @@ export class MetadataService { * Add dc.publisher to the . The tag name depends on the item type. */ private setCitationPublisherTag(): void { - const value = this.getMetaTagValue('dc.publisher'); + const value = this.getMetaTagValue('dcterms.publisher'); if (this.isDissertation()) { this.addMetaTag('citation_dissertation_institution', value); } else if (this.isTechReport()) { @@ -276,7 +276,7 @@ export class MetadataService { * Add to the */ private setCitationKeywordsTag(): void { - const value = this.getMetaTagValuesAndCombine('dc.subject'); + const value = this.getMetaTagValuesAndCombine('dcterms.subject'); this.addMetaTag('citation_keywords', value); } @@ -429,7 +429,7 @@ export class MetadataService { } private hasType(value: string): boolean { - return this.currentObject.value.hasMetadata('dc.type', { value: value, ignoreCase: true }); + return this.currentObject.value.hasMetadata('dcterms.type', { value: value, ignoreCase: true }); } /**