diff --git a/packages/component-mts-package/index.js b/packages/component-mts-package/index.js index a71a61d5f2827fd17387a21ab6e819d7522a473e..826f4b40170114d4146326ccddb09edc67eb7f94 100644 --- a/packages/component-mts-package/index.js +++ b/packages/component-mts-package/index.js @@ -1 +1 @@ -module.exports = require('./src/main') +module.exports = require('./src/MTS') diff --git a/packages/component-mts-package/src/MTS.js b/packages/component-mts-package/src/MTS.js index 924e4a9325b92626b9f3ce9aad9a274f12335d19..92f0e0f2a67afa6e174a401fdbad2645c3e05052 100644 --- a/packages/component-mts-package/src/MTS.js +++ b/packages/component-mts-package/src/MTS.js @@ -149,7 +149,6 @@ class MTS { composeJson(fragment = {}) { const { authors = [], - files = [], metadata = { title: 'untitled', abstract: 'no abstract' }, submitted = new Date(), } = fragment @@ -159,7 +158,7 @@ class MTS { ...this.setMetadata(metadata, this.jsonTemplate), ...this.constructor.setContributors(authors, this.jsonTemplate), ...this.constructor.setHistory(submitted, this.jsonTemplate), - ...this.constructor.setFigures(files, this.jsonTemplate), + // ...this.constructor.setFigures(files, this.jsonTemplate), } } } diff --git a/packages/component-mts-package/src/mts-json-template.js b/packages/component-mts-package/src/mts-json-template.js index 22d50be82be54514d76cae954101359d7f39d1bd..8bf9af93fab57907f02b197aee0ef65b6e497ed8 100644 --- a/packages/component-mts-package/src/mts-json-template.js +++ b/packages/component-mts-package/src/mts-json-template.js @@ -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', - }, - }, - }, - ], - }, }, }) diff --git a/packages/component-mts-package/src/output.xml b/packages/component-mts-package/src/output.xml index d57df1a840724304028010b5329bffc455256feb..b34c3fa2acd698c699dc8fdde658f46a942f2b45 100644 --- a/packages/component-mts-package/src/output.xml +++ b/packages/component-mts-package/src/output.xml @@ -68,10 +68,4 @@ </counts> </article-meta> </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> \ No newline at end of file