From e7506344c444a0e076756a09c01446540a0a6d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Fri, 14 Feb 2020 11:57:02 +0100 Subject: [PATCH 01/18] Add yaml --- static/data/datasets.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 static/data/datasets.yaml diff --git a/static/data/datasets.yaml b/static/data/datasets.yaml new file mode 100644 index 00000000..ff3e6871 --- /dev/null +++ b/static/data/datasets.yaml @@ -0,0 +1,8 @@ +sets: + 10.1021/acs.jctc.8b00406 : QUEST#1 + 10.1021/acs.jctc.8b01205 : QUEST#2 + 10.1021/acs.jctc.9b01216 : QUEST#3 + 10.1021/acs.jpclett.8b02058 : set 3 + 10.1021/acs.jctc.8b01103 : set 4 +others: + \ No newline at end of file From 5fb1b4252c79e86a6a60b8d4af3f99de50e353b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Sat, 15 Feb 2020 11:19:36 +0100 Subject: [PATCH 02/18] Use JSYAML and apply changes --- content/multipledataset.html | 19 +++++++++++++++---- content/publications.html | 11 ++++++++--- content/singlemolecule.html | 5 +++-- static/data/{datasets.yaml => publis.yaml} | 0 static/js/createPubliUI.js | 2 +- static/js/getPublis.js | 7 +++++++ static/js/getSets.js | 10 ---------- 7 files changed, 34 insertions(+), 20 deletions(-) rename static/data/{datasets.yaml => publis.yaml} (100%) create mode 100644 static/js/getPublis.js delete mode 100644 static/js/getSets.js diff --git a/content/multipledataset.html b/content/multipledataset.html index f294c538..1151f098 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -16,7 +16,7 @@ draft: false - + @@ -24,6 +24,7 @@ draft: false + + - + @@ -21,10 +22,14 @@ draft: false const Cite = require("citation-js") const dois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string)) const publiscite = await Cite.async(dois) - const sets = await getSets() + const pubs = await getPublis() const publis = publiscite.format('data', { format: 'object' }) for (const publi of publis) { - art=createPubliUI(publi,sets,true) + art=createPubliUI(publi,pubs.sets,true) + $(art).appendTo("
  • ").appendTo("#publis_ul") + } + for (const publi of pubs.others.keys()) { + art=createPubliUI(publi,pubs.others,true) $(art).appendTo("
  • ").appendTo("#publis_ul") } } diff --git a/content/singlemolecule.html b/content/singlemolecule.html index 380f0d02..90180429 100644 --- a/content/singlemolecule.html +++ b/content/singlemolecule.html @@ -12,7 +12,8 @@ draft: false - + + {{< getDataFilesName >}}