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/paper.verify.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'scraper/client/paper/paper.verify.js') diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index f5dbc13c..a60f9698 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -195,7 +195,7 @@ class PaperVerify extends Component {

{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 From a683301c84038266e9b0b74073f9a31bdd84c939 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 Mar 2019 15:25:34 +0100 Subject: rebuild --- scraper/client/paper/paper.css | 2 ++ scraper/client/paper/paper.verify.js | 12 ++++++++++-- site/public/datasets/brainwash/index.html | 2 +- site/public/datasets/cofw/index.html | 2 +- site/public/datasets/duke_mtmc/index.html | 2 +- site/public/datasets/hrt_transgender/index.html | 2 +- site/public/datasets/lfw/index.html | 2 +- site/public/datasets/uccs/index.html | 2 +- site/public/datasets/viper/index.html | 2 +- 9 files changed, 19 insertions(+), 9 deletions(-) (limited to 'scraper/client/paper/paper.verify.js') diff --git a/scraper/client/paper/paper.css b/scraper/client/paper/paper.css index 9bb684ff..21df2df1 100644 --- a/scraper/client/paper/paper.css +++ b/scraper/client/paper/paper.css @@ -44,6 +44,8 @@ .gray .pdfLink { cursor: pointer; color: #11f; + margin-left: 3px; + margin-right: 3px; } .verified { font-weight: bold; diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index a60f9698..e635bcb2 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -219,7 +219,7 @@ class PaperVerify extends Component { onClick={() => this.setState({ doi_index: i })} className={i === this.state.doi_index ? 'selected pdfLink' : 'pdfLink'} > - {'[' + domain + '] '} + {'[' + domain + ']'} ) })} @@ -229,7 +229,15 @@ class PaperVerify extends Component { target="_blank" className={'pdfLink'} > - {'[s2]'} + {'Semantic Scholar'} + + {' | '} + + {'Search DuckDuckGo'} diff --git a/site/public/datasets/brainwash/index.html b/site/public/datasets/brainwash/index.html index c0479a17..41484257 100644 --- a/site/public/datasets/brainwash/index.html +++ b/site/public/datasets/brainwash/index.html @@ -37,7 +37,7 @@

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

diff --git a/site/public/datasets/cofw/index.html b/site/public/datasets/cofw/index.html index 3cc49db8..eac1f7a6 100644 --- a/site/public/datasets/cofw/index.html +++ b/site/public/datasets/cofw/index.html @@ -102,7 +102,7 @@ To increase the number of training images, and since COFW has the exact same la

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

diff --git a/site/public/datasets/duke_mtmc/index.html b/site/public/datasets/duke_mtmc/index.html index 3e0b6eb5..299331d7 100644 --- a/site/public/datasets/duke_mtmc/index.html +++ b/site/public/datasets/duke_mtmc/index.html @@ -69,7 +69,7 @@

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

diff --git a/site/public/datasets/hrt_transgender/index.html b/site/public/datasets/hrt_transgender/index.html index 8ebc063e..e38e134b 100644 --- a/site/public/datasets/hrt_transgender/index.html +++ b/site/public/datasets/hrt_transgender/index.html @@ -33,7 +33,7 @@

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

diff --git a/site/public/datasets/lfw/index.html b/site/public/datasets/lfw/index.html index 199d7d57..b4923877 100644 --- a/site/public/datasets/lfw/index.html +++ b/site/public/datasets/lfw/index.html @@ -84,7 +84,7 @@

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

diff --git a/site/public/datasets/uccs/index.html b/site/public/datasets/uccs/index.html index 0282902c..08000c6e 100644 --- a/site/public/datasets/uccs/index.html +++ b/site/public/datasets/uccs/index.html @@ -69,7 +69,7 @@

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

diff --git a/site/public/datasets/viper/index.html b/site/public/datasets/viper/index.html index eec9ca82..5acd0845 100644 --- a/site/public/datasets/viper/index.html +++ b/site/public/datasets/viper/index.html @@ -36,7 +36,7 @@

This bar chart presents a ranking of the top countries where citations originated. Mouse over individual columns - to see yearly totals. These charts show only the top 10 countries overall. + to see yearly totals. These charts show at most the top 10 countries.

-- cgit v1.2.3-70-g09d2 From b92195675457de3efc1f9586fa8f89f1d50cd43c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 Mar 2019 15:28:26 +0100 Subject: etc --- scraper/client/paper/paper.verify.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scraper/client/paper/paper.verify.js') diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index e635bcb2..8e5268d0 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -202,6 +202,7 @@ class PaperVerify extends Component { this.setState({ pdf_index: i })} className={i === this.state.pdf_index ? 'selected pdfLink' : 'pdfLink'} > @@ -216,8 +217,9 @@ class PaperVerify extends Component { this.setState({ doi_index: i })} - className={i === this.state.doi_index ? 'selected pdfLink' : 'pdfLink'} + target={"_blank"} + rel={"noopener noreferrer"} + className={'pdfLink'} > {'[' + domain + ']'} @@ -227,6 +229,7 @@ class PaperVerify extends Component { {'Semantic Scholar'} @@ -235,6 +238,7 @@ class PaperVerify extends Component { {'Search DuckDuckGo'} -- cgit v1.2.3-70-g09d2 From 64f8ce44a92f6c538c0e9a4b06ea14b5a7babdca Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 Mar 2019 15:31:00 +0100 Subject: agh --- scraper/client/paper/citationList.component.js | 2 +- scraper/client/paper/paper.verify.js | 7 ++++--- scraper/client/store.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'scraper/client/paper/paper.verify.js') diff --git a/scraper/client/paper/citationList.component.js b/scraper/client/paper/citationList.component.js index b2b2ab8f..be8528bf 100644 --- a/scraper/client/paper/citationList.component.js +++ b/scraper/client/paper/citationList.component.js @@ -55,7 +55,7 @@ class CitationList extends Component { cite.doi = { _raw: true, value: (cite.doi && cite.doi.length) - ? cite.doi.map((pdf, i) => [doi]) + ? (cite.doi || []).map((doi, i) => [doi]) : "" } cite.s2 = { diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index 8e5268d0..1301239b 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -196,7 +196,7 @@ class PaperVerify extends Component {
{citation.id} {citation.pdf.length ? ' | PDF: ' : ''} - {citation.pdf.map((pdf,i) => { + {citation.pdf.map((pdf, i) => { const domain = pdf.replace('www.','').split('/').slice(2,3)[0] || 'unknown' return ( ) })} - {citation.doi.length ? ' | DOI: ' : ''} - {citation.doi.map((doi,i) => { + {(citation.doi && citation.doi.length) ? ' | DOI: ' : ''} + {(citation.doi || []).map((doi, i) => { + if (!doi) return null const domain = doi.replace('www.','').split('/').slice(2,3)[0] || 'unknown' return (