From b3038bc8edae7d1181e49b71be53bf5424894e7c Mon Sep 17 00:00:00 2001 From: Rafael Martinez Estevez Date: Sun, 10 Nov 2019 18:13:37 -0500 Subject: [PATCH] add issn --- src/article/converter/bib/BibConversion.js | 1 + src/article/converter/jats/ElementCitationConverter.js | 2 ++ src/article/nodes/JournalArticleRef.js | 3 ++- src/article/shared/EntityLabelsPackage.js | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/article/converter/bib/BibConversion.js b/src/article/converter/bib/BibConversion.js index 12466c2aa..bbed18988 100644 --- a/src/article/converter/bib/BibConversion.js +++ b/src/article/converter/bib/BibConversion.js @@ -82,6 +82,7 @@ function _convertFromCSLJSON (source, type) { confName: source.event, confLoc: source['event-place'], isbn: source.ISBN, + issn: source.ISSN, year: date.year, month: date.month, diff --git a/src/article/converter/jats/ElementCitationConverter.js b/src/article/converter/jats/ElementCitationConverter.js index 4ad6ed77f..376defda6 100644 --- a/src/article/converter/jats/ElementCitationConverter.js +++ b/src/article/converter/jats/ElementCitationConverter.js @@ -65,6 +65,7 @@ function _importElementCitation (el, node, doc, importer) { archiveId: getText(el, 'pub-id[pub-id-type=archive]'), arkId: getText(el, 'pub-id[pub-id-type=ark]'), isbn: getText(el, 'pub-id[pub-id-type=isbn]'), + issn: getText(el, 'pub-id[pub-id-type=issn]'), doi: getText(el, 'pub-id[pub-id-type=doi]'), pmid: getText(el, 'pub-id[pub-id-type=pmid]') }) @@ -168,6 +169,7 @@ function _exportElementCitation (node, exporter) { el.append(_createTextElement($$, node.arkId, 'pub-id', { 'pub-id-type': 'ark' })) el.append(_createTextElement($$, node.archiveId, 'pub-id', { 'pub-id-type': 'archive' })) el.append(_createTextElement($$, node.isbn, 'pub-id', { 'pub-id-type': 'isbn' })) + el.append(_createTextElement($$, node.issn, 'pub-id', { 'pub-id-type': 'issn' })) el.append(_createTextElement($$, node.doi, 'pub-id', { 'pub-id-type': 'doi' })) el.append(_createTextElement($$, node.pmid, 'pub-id', { 'pub-id-type': 'pmid' })) // creators diff --git a/src/article/nodes/JournalArticleRef.js b/src/article/nodes/JournalArticleRef.js index c49d9bd83..98f8cbba9 100644 --- a/src/article/nodes/JournalArticleRef.js +++ b/src/article/nodes/JournalArticleRef.js @@ -39,5 +39,6 @@ JournalArticleRef.schema = { pageRange: STRING, // elocationId: STRING, // doi: STRING, // - pmid: STRING // + pmid: STRING, // + issn: STRING // } diff --git a/src/article/shared/EntityLabelsPackage.js b/src/article/shared/EntityLabelsPackage.js index 3ccf3de69..41b04e3e9 100644 --- a/src/article/shared/EntityLabelsPackage.js +++ b/src/article/shared/EntityLabelsPackage.js @@ -98,6 +98,7 @@ export default { config.addLabel('given-names', 'Given Names') config.addLabel('inventors', 'Inventors') config.addLabel('isbn', 'ISBN') + config.addLabel('issn', 'ISSN') config.addLabel('issue', 'Issue') config.addLabel('issue-title', 'Issue Title') config.addLabel('lpage', 'Last Page')