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
20265243
Commit
20265243
authored
6 years ago
by
ahamelers
Committed by
Nikos Marinos
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
#98 show previously entered journal and title for editing
parent
5822b2ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!21
Replace master with dev
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/components/Create.jsx
+1
-1
1 addition, 1 deletion
app/components/Create.jsx
app/components/PubMedSearch.jsx
+13
-6
13 additions, 6 deletions
app/components/PubMedSearch.jsx
app/components/UnmatchedCitation.jsx
+4
-5
4 additions, 5 deletions
app/components/UnmatchedCitation.jsx
with
18 additions
and
12 deletions
app/components/Create.jsx
+
1
−
1
View file @
20265243
...
...
@@ -195,7 +195,7 @@ class EPMCCreated extends React.Component {
<
Buttons
>
<
div
>
{
!
this
.
state
.
showSearch
&&
(
<
Button
onClick
=
{
this
.
goPrev
}
>
Back
</
Button
>
<
Button
onClick
=
{
this
.
goPrev
}
>
Previous
</
Button
>
)
}
<
Button
disabled
=
{
this
.
getDisableNext
(
currentStep
)
}
...
...
This diff is collapsed.
Click to expand it.
app/components/PubMedSearch.jsx
+
13
−
6
View file @
20265243
...
...
@@ -46,7 +46,10 @@ class PubMedSearch extends React.Component {
hitcount
:
null
,
inPMC
:
null
,
pmcid
:
null
,
unmatched
:
false
,
unmatched
:
this
.
props
.
metadata
&&
(
!
this
.
props
.
metadata
.
articleId
||
this
.
props
.
metadata
.
articleId
.
length
===
0
),
// pubProvided: null,
}
this
.
onSearch
=
this
.
onSearch
.
bind
(
this
)
...
...
@@ -149,9 +152,13 @@ class PubMedSearch extends React.Component {
}
render
()
{
const
{
metadata
}
=
this
.
props
const
{
title
,
journalMeta
}
=
metadata
||
{}
const
{
title
:
journalTitle
}
=
journalMeta
||
{}
const
{
title
,
journalMeta
,
customMeta
}
=
metadata
||
{}
let
journal
=
journalMeta
if
(
!
journal
&&
customMeta
&&
customMeta
.
unmatchedJournal
)
{
journal
=
{
title
:
customMeta
.
unmatchedJournal
,
}
}
if
(
this
.
state
.
unmatched
)
{
return
ReactDOM
.
createPortal
(
<
Cover
>
...
...
@@ -160,8 +167,8 @@ class PubMedSearch extends React.Component {
<
CloseIcon
onClick
=
{
()
=>
this
.
setState
({
unmatched
:
false
})
}
/>
</
Close
>
<
UnmatchedCitation
journal
=
{
title
}
title
=
{
journalT
itle
}
journal
=
{
journal
}
title
=
{
t
itle
}
unmatchedInfo
=
{
this
.
handleUnmatchedInfo
}
/>
</
Page
>
...
...
This diff is collapsed.
Click to expand it.
app/components/UnmatchedCitation.jsx
+
4
−
5
View file @
20265243
...
...
@@ -8,11 +8,11 @@ export default class UnmatchedCitation extends React.Component {
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
title
:
''
,
query
:
''
,
journal
:
nul
l
,
title
:
this
.
props
.
title
,
query
:
this
.
props
.
journal
?
this
.
props
.
journal
.
title
:
''
,
journal
:
this
.
props
.
journa
l
,
note
:
this
.
props
.
note
,
enabled
:
false
,
enabled
:
this
.
props
.
title
&&
this
.
props
.
journal
,
journals
:
[],
titleMessage
:
''
,
journalMessage
:
''
,
...
...
@@ -146,7 +146,6 @@ export default class UnmatchedCitation extends React.Component {
optionsOnChange
=
{
this
.
onJournalChange
}
placeholder
=
"Journal title abbreviation"
query
=
{
this
.
state
.
query
}
selectedOptions
=
{
this
.
props
.
journal
}
singleSelect
>
{
this
.
state
.
journals
.
map
(
journal
=>
(
...
...
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