summaryrefslogtreecommitdiff
path: root/scraper/client/paper
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-20 01:57:48 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-20 01:57:48 +0100
commita63fc6bc37a884af0fa56d66a5ce248d99d26018 (patch)
tree162fe4605e1d4519708bf0d6909248580c81e417 /scraper/client/paper
parente5c69daa3c2428a067c61baca3d20c96398f9354 (diff)
fix does/doesnt use dataset
Diffstat (limited to 'scraper/client/paper')
-rw-r--r--scraper/client/paper/paper.css2
-rw-r--r--scraper/client/paper/paper.verify.js26
2 files changed, 14 insertions, 14 deletions
diff --git a/scraper/client/paper/paper.css b/scraper/client/paper/paper.css
index 82b95d9c..d7b977fc 100644
--- a/scraper/client/paper/paper.css
+++ b/scraper/client/paper/paper.css
@@ -46,7 +46,7 @@ input.notes {
.param label {
display: block;
padding: 4px;
- min-width: 140px;
+ min-width: 150px;
}
.param input[type=checkbox] {
margin: 6px 0;
diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js
index 570899d5..c2bf4b90 100644
--- a/scraper/client/paper/paper.verify.js
+++ b/scraper/client/paper/paper.verify.js
@@ -10,8 +10,8 @@ import { Loader, Autocomplete } from '../common'
const initialState = {
citation: null,
- uses_paper: false,
- doesnt_use_paper: false,
+ uses_dataset: false,
+ doesnt_use_dataset: false,
verified_by: '',
notes: '',
pdf_index: 0,
@@ -56,12 +56,12 @@ class PaperVerify extends Component {
})
} else {
// console.log(paper)
- console.log('GOT CUSTOM CITATION STATE')
+ console.log('GOT CUSTOM CITATION STATE', paper)
const citationState = this.getCitationState(sha256)
this.setState({
...citationState,
- uses_paper: paper.uses_paper,
- doesnt_use_paper: paper.doesnt_use_paper,
+ uses_dataset: paper.uses_dataset === "TRUE",
+ doesnt_use_dataset: paper.doesnt_use_dataset === "TRUE",
verified_by: paper.verified_by,
notes: paper.notes,
})
@@ -88,8 +88,8 @@ class PaperVerify extends Component {
this.props.actions.postVerification({
paper_id: this.state.citation.id,
title: this.state.citation.title,
- uses_paper: this.state.uses_paper,
- doesnt_use_paper: this.state.doesnt_use_paper,
+ uses_dataset: this.state.uses_dataset,
+ doesnt_use_dataset: this.state.doesnt_use_dataset,
verified_by: this.state.verified_by,
notes: this.state.notes,
})
@@ -144,22 +144,22 @@ class PaperVerify extends Component {
</div>
<div className='param'>
- <label>Uses the paper?</label>
+ <label>Uses the dataset?</label>
<input
className='vetting'
type='checkbox'
- checked={!!this.state.uses_paper}
- onChange={e => this.setState({ uses_paper: e.target.checked })}
+ checked={!!this.state.uses_dataset}
+ onChange={e => this.setState({ uses_dataset: e.target.checked })}
/>
</div>
<div className='param'>
- <label>{"Doesn't use paper"}</label>
+ <label>{"Doesn't use dataset"}</label>
<input
className='vetting'
type='checkbox'
- checked={!!this.state.doesnt_use_paper}
- onChange={e => this.setState({ doesnt_use_paper: e.target.checked })}
+ checked={!!this.state.doesnt_use_dataset}
+ onChange={e => this.setState({ doesnt_use_dataset: e.target.checked })}
/>
</div>