summaryrefslogtreecommitdiff
path: root/scraper/client/paper
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-22 00:23:29 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-22 00:23:29 +0100
commit35f19bdca7ac68829fd781827d25deb4bfc734d2 (patch)
treeb36b5a4629a48b6797183f8f83277f130f39b218 /scraper/client/paper
parent94e0a98f1279f27e7cb123ab572bfae9c15746c1 (diff)
rebuild and update js linkx
Diffstat (limited to 'scraper/client/paper')
-rw-r--r--scraper/client/paper/paper.css6
-rw-r--r--scraper/client/paper/paper.verify.js22
2 files changed, 26 insertions, 2 deletions
diff --git a/scraper/client/paper/paper.css b/scraper/client/paper/paper.css
index d7b977fc..4815bd30 100644
--- a/scraper/client/paper/paper.css
+++ b/scraper/client/paper/paper.css
@@ -46,11 +46,15 @@ input.notes {
.param label {
display: block;
padding: 4px;
- min-width: 150px;
+ min-width: 200px;
}
.param input[type=checkbox] {
margin: 6px 0;
}
+textarea {
+ padding: 4px;
+ font-size: 14px;
+}
.pdf_links a.selected {
font-weight: bold;
diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js
index 1e727f79..ddc0a155 100644
--- a/scraper/client/paper/paper.verify.js
+++ b/scraper/client/paper/paper.verify.js
@@ -12,6 +12,7 @@ const initialState = {
citation: null,
uses_dataset: false,
doesnt_use_dataset: false,
+ images_in_paper: false,
verified_by: '',
notes: '',
pdf_index: 0,
@@ -62,6 +63,7 @@ class PaperVerify extends Component {
...citationState,
uses_dataset: paper.uses_dataset === "TRUE",
doesnt_use_dataset: paper.doesnt_use_dataset === "TRUE",
+ images_in_paper: paper.images_in_paper === "TRUE",
verified_by: paper.verified_by,
notes: paper.notes,
})
@@ -90,6 +92,7 @@ class PaperVerify extends Component {
title: this.state.citation.title,
uses_dataset: this.state.uses_dataset,
doesnt_use_dataset: this.state.doesnt_use_dataset,
+ images_in_paper: this.state.images_in_paper,
verified_by: this.state.verified_by,
notes: this.state.notes,
})
@@ -141,6 +144,8 @@ class PaperVerify extends Component {
</a>
)
})}
+ {' | '}
+ <a href={'https://www.semanticscholar.org/paper/' + citation.id} target="_blank">[semantic scholar]</a>
</div>
<div className='param'>
@@ -172,6 +177,19 @@ class PaperVerify extends Component {
</div>
<div className='param'>
+ <label>{"Uses images from dataset"}</label>
+ <input
+ className='vetting'
+ type='radio'
+ name='images_in_paper'
+ checked={!!this.state.images_in_paper}
+ onChange={e => this.setState({
+ images_in_paper: !e.target.checked,
+ })}
+ />
+ </div>
+
+ <div className='param'>
<label>Verified by:</label>
<input
type='text'
@@ -184,7 +202,9 @@ class PaperVerify extends Component {
<div className='param'>
<label>Notes</label>
- <input
+ <textarea
+ rows={4}
+ cols={50}
type='text'
className='notes'
value={this.state.notes}