We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 885c52e commit 8d7b4cdCopy full SHA for 8d7b4cd
src/app/core/metadata/metadata.service.ts
@@ -161,6 +161,7 @@ export class MetadataService {
161
this.setCitationKeywordsTag();
162
163
this.setCitationAbstractUrlTag();
164
+ this.setCitationDoiTag();
165
this.setCitationPdfUrlTag();
166
this.setCitationPublisherTag();
167
@@ -294,6 +295,18 @@ export class MetadataService {
294
295
}
296
297
298
+ /**
299
+ * Add <meta name="citation_doi" ... > to the <head>
300
+ */
301
+ private setCitationDoiTag(): void {
302
+ if (this.currentObject.value instanceof Item) {
303
+ let doi = this.getMetaTagValue('dc.identifier.doi');
304
+ if (hasValue(doi)) {
305
+ this.addMetaTag('citation_doi', doi);
306
+ }
307
308
309
+
310
/**
311
* Add <meta name="citation_pdf_url" ... > to the <head>
312
*/
0 commit comments