From 35f19bdca7ac68829fd781827d25deb4bfc734d2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 22 Mar 2019 00:23:29 +0100 Subject: rebuild and update js linkx --- scraper/client/paper/paper.css | 6 +++++- scraper/client/paper/paper.verify.js | 22 +++++++++++++++++++++- scraper/s2-geocode-server.py | 12 +++--------- 3 files changed, 29 insertions(+), 11 deletions(-) (limited to 'scraper') 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 { ) })} + {' | '} + [semantic scholar]
@@ -171,6 +176,19 @@ class PaperVerify extends Component { />
+
+ + this.setState({ + images_in_paper: !e.target.checked, + })} + /> +
+
-