summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scraper/client/paper/citationList.component.js2
-rw-r--r--scraper/client/paper/paper.css2
-rw-r--r--scraper/client/paper/paper.verify.js27
-rw-r--r--scraper/client/store.js2
-rw-r--r--site/includes/chart.html2
-rw-r--r--site/public/datasets/brainwash/index.html2
-rw-r--r--site/public/datasets/cofw/index.html2
-rw-r--r--site/public/datasets/duke_mtmc/index.html2
-rw-r--r--site/public/datasets/hrt_transgender/index.html2
-rw-r--r--site/public/datasets/lfw/index.html2
-rw-r--r--site/public/datasets/uccs/index.html2
-rw-r--r--site/public/datasets/viper/index.html2
12 files changed, 32 insertions, 17 deletions
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) => <a key={'doi_' + i} href={doi} rel='noopener noreferrer' target="_blank">[doi]</a>)
+ ? (cite.doi || []).map((doi, i) => <a key={'doi_' + i} href={doi} rel='noopener noreferrer' target="_blank">[doi]</a>)
: ""
}
cite.s2 = {
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..1301239b 100644
--- a/scraper/client/paper/paper.verify.js
+++ b/scraper/client/paper/paper.verify.js
@@ -196,12 +196,13 @@ class PaperVerify extends Component {
<div className='gray'>
{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 (
<a
key={i}
href={pdf}
+ rel={"noopener noreferrer"}
onClick={() => this.setState({ pdf_index: i })}
className={i === this.state.pdf_index ? 'selected pdfLink' : 'pdfLink'}
>
@@ -209,17 +210,19 @@ class PaperVerify extends Component {
</a>
)
})}
- {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 (
<a
key={i}
href={doi}
- onClick={() => this.setState({ doi_index: i })}
- className={i === this.state.doi_index ? 'selected pdfLink' : 'pdfLink'}
+ target={"_blank"}
+ rel={"noopener noreferrer"}
+ className={'pdfLink'}
>
- {'[' + domain + '] '}
+ {'[' + domain + ']'}
</a>
)
})}
@@ -227,9 +230,19 @@ class PaperVerify extends Component {
<a
href={'https://www.semanticscholar.org/paper/' + citation.id}
target="_blank"
+ rel={"noopener noreferrer"}
+ className={'pdfLink'}
+ >
+ {'Semantic Scholar'}
+ </a>
+ {' | '}
+ <a
+ href={'https://duckduckgo.com/?q=' + encodeURIComponent(citation.title)}
+ target="_blank"
+ rel={"noopener noreferrer"}
className={'pdfLink'}
>
- {'[s2]'}
+ {'Search DuckDuckGo'}
</a>
</div>
diff --git a/scraper/client/store.js b/scraper/client/store.js
index 6da60cbe..acd22b82 100644
--- a/scraper/client/store.js
+++ b/scraper/client/store.js
@@ -47,7 +47,7 @@ export default function apiReducer(state = initialState(), action) {
}
case types.system.set_sorted_citations:
- console.log(action.sortedCitations || [])
+ // console.log(action.sortedCitations || [])
return {
...state,
sortedCitations: action.sortedCitations || [],
diff --git a/site/includes/chart.html b/site/includes/chart.html
index d5ca5e47..b235d531 100644
--- a/site/includes/chart.html
+++ b/site/includes/chart.html
@@ -3,7 +3,7 @@
<p>
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.
</p>
</section>
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 @@
<p>
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.
</p>
</section>
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
<p>
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.
</p>
</section>
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 @@
<p>
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.
</p>
</section>
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 @@
<p>
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.
</p>
</section>
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 @@
<p>
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.
</p>
</section>
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 @@
<p>
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.
</p>
</section>
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 @@
<p>
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.
</p>
</section>