From 06b6f4f0ddb5bce3e3210a3fc60ca43108f25931 Mon Sep 17 00:00:00 2001 From: Shafi Habibi Date: Sat, 6 Sep 2025 15:22:44 +0330 Subject: [PATCH] =?UTF-8?q?Add=20citation=5Fjournal=5Ftitle,=20citation=5F?= =?UTF-8?q?volume=20and=20citation=5Fissue=20tags=20t=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing , , fields to the XHTML head section for journal article items. These are used by search engines like google scholar to index journal articles. --- src/app/core/metadata/head-tag.service.ts | 32 ++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/src/app/core/metadata/head-tag.service.ts b/src/app/core/metadata/head-tag.service.ts index 118f4efa82b..fd6c7c7ad6d 100644 --- a/src/app/core/metadata/head-tag.service.ts +++ b/src/app/core/metadata/head-tag.service.ts @@ -187,6 +187,11 @@ export class HeadTagService { this.setCitationAbstractUrlTag(); this.setCitationDoiTag(); + + this.setCitationJournalTitleTag(); + this.setCitationVolumeTag(); + this.setCitationIssueTag(); + this.setCitationPdfUrlTag(); this.setCitationPublisherTag(); @@ -194,9 +199,6 @@ export class HeadTagService { this.setCitationDissertationNameTag(); } - // this.setCitationJournalTitleTag(); - // this.setCitationVolumeTag(); - // this.setCitationIssueTag(); // this.setCitationFirstPageTag(); // this.setCitationLastPageTag(); // this.setCitationPMIDTag(); @@ -331,6 +333,30 @@ export class HeadTagService { } } + /** + * Add to the + */ + protected setCitationJournalTitleTag(): void { + const value = this.getMetaTagValue('dc.relation.ispartof'); + this.addMetaTag('citation_journal_title', value); + } + + /** + * Add to the + */ + protected setCitationVolumeTag(): void { + const value = this.getMetaTagValue('dc.citation.volume'); + this.addMetaTag('citation_volume', value); + } + + /** + * Add to the + */ + protected setCitationIssueTag(): void { + const value = this.getMetaTagValue('dc.citation.issue'); + this.addMetaTag('citation_issue', value); + } + /** * Add to the */