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

fix(mts): import issue

parent 58dec5aa
No related branches found
No related tags found
1 merge request!14Sprint #15
module.exports = require('./src/main') module.exports = require('./src/MTS')
...@@ -149,7 +149,6 @@ class MTS { ...@@ -149,7 +149,6 @@ class MTS {
composeJson(fragment = {}) { composeJson(fragment = {}) {
const { const {
authors = [], authors = [],
files = [],
metadata = { title: 'untitled', abstract: 'no abstract' }, metadata = { title: 'untitled', abstract: 'no abstract' },
submitted = new Date(), submitted = new Date(),
} = fragment } = fragment
...@@ -159,7 +158,7 @@ class MTS { ...@@ -159,7 +158,7 @@ class MTS {
...this.setMetadata(metadata, this.jsonTemplate), ...this.setMetadata(metadata, this.jsonTemplate),
...this.constructor.setContributors(authors, this.jsonTemplate), ...this.constructor.setContributors(authors, this.jsonTemplate),
...this.constructor.setHistory(submitted, this.jsonTemplate), ...this.constructor.setHistory(submitted, this.jsonTemplate),
...this.constructor.setFigures(files, this.jsonTemplate), // ...this.constructor.setFigures(files, this.jsonTemplate),
} }
} }
} }
......
...@@ -150,21 +150,6 @@ const getJsonTemplate = (config = {}) => ({ ...@@ -150,21 +150,6 @@ const getJsonTemplate = (config = {}) => ({
}, },
}, },
}, },
body: {
fig: [
{
label: {
_text: 'Figure 1',
},
graphic: {
_attributes: {
'xlink:href': 'figure1.jpg',
'xmlns:xlink': 'http://www.w3.org/1999/xlink',
},
},
},
],
},
}, },
}) })
......
...@@ -68,10 +68,4 @@ ...@@ -68,10 +68,4 @@
</counts> </counts>
</article-meta> </article-meta>
</front> </front>
<body>
<fig>
<label>Figure 1</label>
<graphic xlink:href="SUP__Revolut-EUR-Statement-Jan 8, 2018.pdf" xmlns:xlink="http://www.w3.org/1999/xlink"></graphic>
</fig>
</body>
</article> </article>
\ No newline at end of file
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