Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xpub-epmc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Literature-services
public-projects
xpub-epmc
Commits
efde9231
Commit
efde9231
authored
3 years ago
by
Audrey Hamelers
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!374
parents
a13fa4dd
7a305aad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!375
Merge latest from master
,
!374
Dev
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/activity/CitationForm.jsx
+2
-2
2 additions, 2 deletions
app/components/activity/CitationForm.jsx
server/ebi-integration/app.js
+3
-3
3 additions, 3 deletions
server/ebi-integration/app.js
with
5 additions
and
5 deletions
app/components/activity/CitationForm.jsx
+
2
−
2
View file @
efde9231
...
...
@@ -80,7 +80,7 @@ const CiteUrl = props => (
<
TextField
className
=
{
props
.
className
}
invalidTest
=
{
props
.
invalidTest
}
label
=
"Citation URL"
label
=
"Citation URL
(always include)
"
{
...
props
.
field
}
/>
)
...
...
@@ -174,7 +174,7 @@ const CitationForm = ({ values, errors, touched, ...props }) => (
</
div
>
<
Flex
>
<
div
>
<
H4
>
Print date
</
H4
>
<
H4
>
Print date
(Issue date)
</
H4
>
<
Field
component
=
{
PYear
}
invalidTest
=
{
errors
.
printyear
&&
touched
.
printyear
}
...
...
This diff is collapsed.
Click to expand it.
server/ebi-integration/app.js
+
3
−
3
View file @
efde9231
...
...
@@ -16,7 +16,7 @@ module.exports = async app => {
if
(
clientId
)
{
if
(
ManuscriptManager
.
findById
(
clientId
,
adminUser
.
id
,
null
,
false
))
{
res
.
status
(
200
).
send
(
'
Callback response recieved
'
)
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
9
00
))
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
10
00
))
completeCitation
(
body
,
req
.
query
.
token
)
}
else
{
res
.
status
(
503
).
send
(
'
ERROR: Database unavailable
'
)
...
...
@@ -33,7 +33,7 @@ module.exports = async app => {
if
(
ManuscriptManager
.
findById
(
clientId
,
adminUser
.
id
,
null
,
false
))
{
const
{
token
,
indexOnly
}
=
req
.
query
res
.
status
(
200
).
send
(
'
Callback response recieved
'
)
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
9
00
))
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
10
00
))
preprintComplete
(
body
,
token
,
!!
indexOnly
)
}
else
{
res
.
status
(
503
).
send
(
'
ERROR: Database unavailable
'
)
...
...
@@ -50,7 +50,7 @@ module.exports = async app => {
if
(
ManuscriptManager
.
findById
(
clientId
,
adminUser
.
id
,
null
,
false
))
{
const
{
token
,
indexOnly
}
=
req
.
query
res
.
status
(
200
).
send
(
'
Callback response recieved
'
)
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
9
00
))
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
10
00
))
resendComplete
(
body
,
token
,
!!
indexOnly
)
}
else
{
res
.
status
(
503
).
send
(
'
ERROR: Database unavailable
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment