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 = {
email: 'faraday@hindawi.com',
journalTitle: 'Bioinorganic Chemistry and Applications',
issn: '2474-7394',
prefix: 'RESEARCH-F-',
}
module.exports = {
......
......@@ -27,6 +27,21 @@ class MTS {
'article-title':
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 = {
'subj-group': [
{
......@@ -40,6 +55,7 @@ class MTS {
],
}
set(jsonTemplate, 'article.front.article-meta.title-group', titleGroup)
set(jsonTemplate, 'article.front.article-meta.article-id', articleId)
set(
jsonTemplate,
'article.front.article-meta.article-categories',
......
......@@ -141,13 +141,6 @@ const getJsonTemplate = (config = {}) => ({
},
},
'funding-group': {},
counts: {
'fig-count': {
_attributes: {
count: '0',
},
},
},
},
},
},
......
......@@ -12,8 +12,8 @@
<issn pub-type="epub"></issn>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">FARADAY-D-00-00000</article-id>
<article-id pub-id-type="manuscript">FARADAY-D-00-00000</article-id>
<article-id pub-id-type="publisher-id">RESEARCH-F-7654321</article-id>
<article-id pub-id-type="manuscript">RESEARCH-F-7654321</article-id>
<article-categories>
<subj-group subj-group-type="Article Type">
<subject>clinical-study</subject>
......@@ -63,9 +63,6 @@
<p>Golden boot, golden boy.</p>
</abstract>
<funding-group></funding-group>
<counts>
<fig-count count="0"></fig-count>
</counts>
</article-meta>
</front>
</article>
\ No newline at end of file
......@@ -58,6 +58,7 @@ const fragment = {
title: '<p>Harry Kane</p>',
journal: 'hindawi-faraday',
abstract: '<p>Golden boot, golden boy.</p>',
customId: '7654321',
},
conflicts: { hasConflicts: 'no' },
submitted: 1532092696032,
......
......@@ -15,5 +15,6 @@ export default {
email: 'faraday@hindawi.com',
journalTitle: 'Bioinorganic Chemistry and Applications',
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