We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b480317 commit 0251aaaCopy full SHA for 0251aaa
1 file changed
src/app/core/metadata/head-tag.service.ts
@@ -186,6 +186,7 @@ export class HeadTagService {
186
this.setCitationKeywordsTag();
187
188
this.setCitationAbstractUrlTag();
189
+ this.setCitationDoiTag();
190
this.setCitationPdfUrlTag();
191
this.setCitationPublisherTag();
192
@@ -319,6 +320,18 @@ export class HeadTagService {
319
320
}
321
322
323
+ /**
324
+ * Add <meta name="citation_doi" ... > to the <head>
325
+ */
326
+ protected setCitationDoiTag(): void {
327
+ if (this.currentObject.value instanceof Item) {
328
+ const doi = this.getMetaTagValue('dc.identifier.doi');
329
+ if (hasValue(doi)) {
330
+ this.addMetaTag('citation_doi', doi);
331
+ }
332
333
334
+
335
/**
336
* Add <meta name="citation_pdf_url" ... > to the <head>
337
*/
0 commit comments