summaryrefslogtreecommitdiff
path: root/scraper/client/paper/paper.verify.js
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/client/paper/paper.verify.js')
-rw-r--r--scraper/client/paper/paper.verify.js26
1 files changed, 13 insertions, 13 deletions
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>