From b9944ee1a4b07edda741cdfc89abf0715f65a164 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 Mar 2019 15:14:44 +0100 Subject: rebuild --- scraper/client/paper/citationList.component.js | 6 ++++++ scraper/client/paper/paper.verify.js | 18 ++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) (limited to 'scraper/client') diff --git a/scraper/client/paper/citationList.component.js b/scraper/client/paper/citationList.component.js index 10e3ba9a..b2b2ab8f 100644 --- a/scraper/client/paper/citationList.component.js +++ b/scraper/client/paper/citationList.component.js @@ -52,6 +52,12 @@ class CitationList extends Component { ? cite.pdf.map((pdf, i) => [pdf]) : "no pdf" } + cite.doi = { + _raw: true, + value: (cite.doi && cite.doi.length) + ? cite.doi.map((pdf, i) => [doi]) + : "" + } cite.s2 = { _raw: true, value: {citation.title}
{citation.id} - {' | PDFs: '} + {citation.pdf.length ? ' | PDF: ' : ''} {citation.pdf.map((pdf,i) => { const domain = pdf.replace('www.','').split('/').slice(2,3)[0] || 'unknown' return ( @@ -209,13 +209,27 @@ class PaperVerify extends Component { ) })} + {citation.doi.length ? ' | DOI: ' : ''} + {citation.doi.map((doi,i) => { + const domain = doi.replace('www.','').split('/').slice(2,3)[0] || 'unknown' + return ( + this.setState({ doi_index: i })} + className={i === this.state.doi_index ? 'selected pdfLink' : 'pdfLink'} + > + {'[' + domain + '] '} + + ) + })} {' | '} - {'[semantic scholar]'} + {'[s2]'}
-- cgit v1.2.3-70-g09d2