diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-28 16:28:27 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-28 16:28:27 +0100 |
| commit | b6a9e2c382ac5e1f6c67040c74077ac03674c549 (patch) | |
| tree | 7294b9d24035f096a0fa70ef3a663cd1c7826e5e /scraper | |
| parent | a8cfefc602a43753353940816633daae3e1692aa (diff) | |
better sorting / style
Diffstat (limited to 'scraper')
| -rw-r--r-- | scraper/client/paper/citationList.component.js | 2 | ||||
| -rw-r--r-- | scraper/client/types.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/scraper/client/paper/citationList.component.js b/scraper/client/paper/citationList.component.js index 435dfde2..09060375 100644 --- a/scraper/client/paper/citationList.component.js +++ b/scraper/client/paper/citationList.component.js @@ -22,7 +22,7 @@ class CitationList extends Component { <h2>{title}</h2> <ul> {citations - .map(citation => [citation.title, verifiedLookup[citation.id] ? verifiedLookup[citation.id].uses_dataset : USES_DATASET.UNKNOWN, citation]) + .map(citation => [citation.title, verifiedLookup[citation.id] ? verifiedLookup[citation.id].uses_dataset : USES_DATASET.NO_DATA, citation]) .sort((a,b) => (b[1] - a[1] || (a[0].localeCompare(b[0])))) .map((pair, i) => { const [ title, uses_dataset, citation ] = pair diff --git a/scraper/client/types.js b/scraper/client/types.js index 95b7a4e3..e6b4142c 100644 --- a/scraper/client/types.js +++ b/scraper/client/types.js @@ -16,4 +16,5 @@ export const USES_DATASET = { YES: "1", NO: "-1", UNKNOWN: "0", + NO_DATA: "-2", } |
