diff --git a/content/multipledataset.html b/content/multipledataset.html
index 18af5bc9..f690c010 100644
--- a/content/multipledataset.html
+++ b/content/multipledataset.html
@@ -124,6 +124,12 @@ draft: false
window.defaultDats = window.defaultDats.concat(sub)
}
+ await doiCache.addRange(Array.from(new Set(window.defaultDats.map(d=>d.DOI.string))))
+ window.defaultDats = window.defaultDats.sort((datfa,datfb)=>{
+ const puba = doiCache.get(datfa.DOI.string).format('data', { format: 'object' })[0]
+ const pubb = doiCache.get(datfb.DOI.string).format('data', { format: 'object' })[0]
+ return pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb)
+ })
processingIndicator.isActive = false
reloadCustomFiles()
}
@@ -621,7 +627,7 @@ draft: false
Choose other excitation parameters you want
Choose if you want to include unsafe values in statistics
- Chse the range of %T1 range using the two number box
+ Chse the range of \(\mathrm{\%T_1}\) range using the two number box
Choose parameters for the statistics
@@ -701,11 +707,11 @@ draft: false
diff --git a/content/publications.html b/content/publications.html
index 9c8833a4..28ca264e 100644
--- a/content/publications.html
+++ b/content/publications.html
@@ -23,14 +23,16 @@ draft: false
const sdois = uniq(Object.values(await loadAllData()).flat().map(d => d.DOI.string))
const spubliscite = await Cite.async(sdois)
const pubs = await getPublis()
- const spublis = spubliscite.format('data', { format: 'object' })
+ const uospublis = spubliscite.format('data', { format: 'object' })
+ const spublis = uospublis.sort((puba,pubb)=>pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb))
for (const publi of spublis) {
art=createPubliUI(publi,pubs.sets,true)
$(art).appendTo("#publis_sets")
}
const odois=Array.from(pubs.others.keys())
const opubliscite = await Cite.async(odois)
- const opublis = opubliscite.format('data', { format: 'object' })
+ const uoopublis = opubliscite.format('data', { format: 'object' })
+ const opublis = uoopublis.sort((puba,pubb)=>pubUtils.getIssuedDate(puba) - pubUtils.getIssuedDate(pubb))
for (const publi of opublis) {
art=createPubliUI(publi,pubs.others,true)
$(art).appendTo("#publis_others")
diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html
index 6510406f..50480852 100644
--- a/layouts/partials/head_custom.html
+++ b/layouts/partials/head_custom.html
@@ -17,4 +17,5 @@ MathJax.Hub.Config({
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/static/js/createPubliUI.js b/static/js/createPubliUI.js
index 48ac394d..3c2d494f 100644
--- a/static/js/createPubliUI.js
+++ b/static/js/createPubliUI.js
@@ -50,8 +50,8 @@ function createPubliUI(publi,sets=new Map(),toolTips=false) {
else {
$("").text(publi["container-title"]).appendTo(journaldiv)
}
- var datArr = publi.issued["date-parts"][0]
- var date = new Date(datArr[0], datArr[1] - 1, datArr[2])
+ var date = pubUtils.getIssuedDate(publi)
+ journaldiv.append(" ")
$("").text(date.getFullYear().toString()).appendTo(journaldiv)
journaldiv.append(" ")
$("").text(publi.volume).appendTo(journaldiv)
diff --git a/static/js/pubUtils.js b/static/js/pubUtils.js
new file mode 100644
index 00000000..94a6984c
--- /dev/null
+++ b/static/js/pubUtils.js
@@ -0,0 +1,6 @@
+class pubUtils{
+ static getIssuedDate(publi) {
+ const parts=publi.issued["date-parts"][0]
+ return new Date(Date.UTC(parts[0], parts[1] - 1, parts[2]))
+ }
+}
\ No newline at end of file