Skip to content
Snippets Groups Projects
Commit 4dab551c authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

feat(mts): remove unused properties

parent b5630d92
No related branches found
No related tags found
1 merge request!21Sprint #16 features
...@@ -13,6 +13,7 @@ const defaultConfig = { ...@@ -13,6 +13,7 @@ const defaultConfig = {
email: 'faraday@hindawi.com', email: 'faraday@hindawi.com',
journalTitle: 'Bioinorganic Chemistry and Applications', journalTitle: 'Bioinorganic Chemistry and Applications',
issn: '2474-7394', issn: '2474-7394',
prefix: 'RESEARCH-F-',
} }
module.exports = { module.exports = {
......
...@@ -27,6 +27,21 @@ class MTS { ...@@ -27,6 +27,21 @@ class MTS {
'article-title': 'article-title':
convert.xml2js(metadata.title, this.options) || 'Untitled', convert.xml2js(metadata.title, this.options) || 'Untitled',
} }
const articleId = [
{
_attributes: {
'pub-id-type': 'publisher-id',
},
_text: `${this.config.prefix}${metadata.customId || '0000000'}`,
},
{
_attributes: {
'pub-id-type': 'manuscript',
},
_text: `${this.config.prefix}${metadata.customId || '0000000'}`,
},
]
const articleType = { const articleType = {
'subj-group': [ 'subj-group': [
{ {
...@@ -40,6 +55,7 @@ class MTS { ...@@ -40,6 +55,7 @@ class MTS {
], ],
} }
set(jsonTemplate, 'article.front.article-meta.title-group', titleGroup) set(jsonTemplate, 'article.front.article-meta.title-group', titleGroup)
set(jsonTemplate, 'article.front.article-meta.article-id', articleId)
set( set(
jsonTemplate, jsonTemplate,
'article.front.article-meta.article-categories', 'article.front.article-meta.article-categories',
......
...@@ -141,13 +141,6 @@ const getJsonTemplate = (config = {}) => ({ ...@@ -141,13 +141,6 @@ const getJsonTemplate = (config = {}) => ({
}, },
}, },
'funding-group': {}, 'funding-group': {},
counts: {
'fig-count': {
_attributes: {
count: '0',
},
},
},
}, },
}, },
}, },
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<issn pub-type="epub"></issn> <issn pub-type="epub"></issn>
</journal-meta> </journal-meta>
<article-meta> <article-meta>
<article-id pub-id-type="publisher-id">FARADAY-D-00-00000</article-id> <article-id pub-id-type="publisher-id">RESEARCH-F-7654321</article-id>
<article-id pub-id-type="manuscript">FARADAY-D-00-00000</article-id> <article-id pub-id-type="manuscript">RESEARCH-F-7654321</article-id>
<article-categories> <article-categories>
<subj-group subj-group-type="Article Type"> <subj-group subj-group-type="Article Type">
<subject>clinical-study</subject> <subject>clinical-study</subject>
...@@ -63,9 +63,6 @@ ...@@ -63,9 +63,6 @@
<p>Golden boot, golden boy.</p> <p>Golden boot, golden boy.</p>
</abstract> </abstract>
<funding-group></funding-group> <funding-group></funding-group>
<counts>
<fig-count count="0"></fig-count>
</counts>
</article-meta> </article-meta>
</front> </front>
</article> </article>
\ No newline at end of file
...@@ -58,6 +58,7 @@ const fragment = { ...@@ -58,6 +58,7 @@ const fragment = {
title: '<p>Harry Kane</p>', title: '<p>Harry Kane</p>',
journal: 'hindawi-faraday', journal: 'hindawi-faraday',
abstract: '<p>Golden boot, golden boy.</p>', abstract: '<p>Golden boot, golden boy.</p>',
customId: '7654321',
}, },
conflicts: { hasConflicts: 'no' }, conflicts: { hasConflicts: 'no' },
submitted: 1532092696032, submitted: 1532092696032,
......
...@@ -15,5 +15,6 @@ export default { ...@@ -15,5 +15,6 @@ export default {
email: 'faraday@hindawi.com', email: 'faraday@hindawi.com',
journalTitle: 'Bioinorganic Chemistry and Applications', journalTitle: 'Bioinorganic Chemistry and Applications',
issn: '2474-7394', issn: '2474-7394',
prefix: 'RESEARCH-BCA-',
}, },
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment