Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xpub
xpub-epmc
Commits
831d7f68
Commit
831d7f68
authored
Jul 25, 2019
by
Audrey Hamelers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#893
parent
efa41e02
Pipeline
#13069
passed with stages
in 5 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
server/xml-validation/index.js
server/xml-validation/index.js
+7
-5
No files found.
server/xml-validation/index.js
View file @
831d7f68
...
...
@@ -19,6 +19,8 @@ xslt4node.addLibrary('./saxon9he.jar')
xslt4node
.
addOptions
(
'
-Xmx1g
'
)
module
.
exports
.
pushXML
=
async
function
pushXML
(
fileUrl
,
manuscriptId
,
userId
)
{
const
man
=
await
Manuscript
.
findById
(
manuscriptId
,
userId
)
const
changeStatus
=
[
'
tagging
'
,
'
xml-qa
'
].
includes
(
man
.
status
)
try
{
await
Manuscript
.
update
(
{
id
:
manuscriptId
,
formState
:
null
,
pdfDepositState
:
'
CREATING_NXML
'
},
...
...
@@ -62,7 +64,7 @@ module.exports.pushXML = async function pushXML(fileUrl, manuscriptId, userId) {
{
id
:
manuscriptId
,
formState
:
errString
,
status
:
'
xml-triage
'
,
status
:
changeStatus
?
'
xml-triage
'
:
man
.
status
,
pdfDepositState
:
null
,
},
userId
,
...
...
@@ -104,7 +106,7 @@ module.exports.pushXML = async function pushXML(fileUrl, manuscriptId, userId) {
{
id
:
manuscriptId
,
formState
:
errString
,
status
:
'
xml-triage
'
,
status
:
changeStatus
?
'
xml-triage
'
:
man
.
status
,
pdfDepositState
:
null
,
},
userId
,
...
...
@@ -227,7 +229,7 @@ module.exports.pushXML = async function pushXML(fileUrl, manuscriptId, userId) {
{
id
:
manuscriptId
,
formState
:
errString
,
status
:
'
xml-triage
'
,
status
:
changeStatus
?
'
xml-triage
'
:
man
.
status
,
},
userId
,
)
...
...
@@ -251,7 +253,7 @@ module.exports.pushXML = async function pushXML(fileUrl, manuscriptId, userId) {
{
id
:
manuscriptId
,
formState
:
styleErrString
,
status
:
'
xml-triage
'
,
status
:
changeStatus
?
'
xml-triage
'
:
man
.
status
,
pdfDepositState
:
null
,
},
userId
,
...
...
@@ -264,7 +266,7 @@ module.exports.pushXML = async function pushXML(fileUrl, manuscriptId, userId) {
{
id
:
manuscriptId
,
formState
:
err
.
message
,
status
:
'
xml-triage
'
,
status
:
changeStatus
?
'
xml-triage
'
:
man
.
status
,
pdfDepositState
:
null
,
},
userId
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment