diff --git a/content/dataset.html b/content/dataset.html
index 498954c8..40b36fb7 100644
--- a/content/dataset.html
+++ b/content/dataset.html
@@ -16,7 +16,6 @@ draft: false
-
@@ -215,6 +214,7 @@ draft: false
selects.each(function() {
AllValsCache.set(this.name,getAllVals(this))
})
+
var AAllValsCache = Array.from(AllValsCache)
var vals = uniq(window.dats.filter(d => {
return AAllValsCache.every(([k,v]) => {
@@ -233,13 +233,18 @@ draft: false
if (name === "DOI") {
let newvals = []
for (const val of vals) {
- for (const set of publis.sets.values()) {
- if (set.includes(val)) {
- if (!newvals.some(v=>JSON.stringify(v)===JSON.stringify(set))) {
- newvals.push(set)
+ if (val==="") {
+ newvals.push([""])
+ }
+ else {
+ for (const set of publis.sets.values()) {
+ if (set.includes(val)) {
+ if (!newvals.some(v=>JSON.stringify(v)===JSON.stringify(set))) {
+ newvals.push(set)
+ }
}
}
- }
+ }
}
vals = newvals
}
diff --git a/content/publications.html b/content/publications.html
index 2e3fb60b..0e430885 100644
--- a/content/publications.html
+++ b/content/publications.html
@@ -10,7 +10,6 @@ draft: false
-
diff --git a/static/js/PubliDB.js b/static/js/PubliDB.js
index 4ab901e9..ec8dbcfb 100644
--- a/static/js/PubliDB.js
+++ b/static/js/PubliDB.js
@@ -27,7 +27,7 @@ class publiDB {
return setname
}
if (supportUnknow && doi === "") {
- return UnknowSetName
+ return publiDB.UnknowSetName
}
return null
}
diff --git a/static/js/getPublis.js b/static/js/getPublis.js
deleted file mode 100644
index acd05875..00000000
--- a/static/js/getPublis.js
+++ /dev/null
@@ -1,7 +0,0 @@
-async function getPublis() {
- const text = await getTextFromFileUrlAsync("/data/publis/index.yaml")
- const myYaml=jsyaml.load(text);
- myYaml.sets= ((myYaml.sets===null) ? new Map() : new Map(Object.entries(myYaml.sets)));
- myYaml.others=((myYaml.others===null) ? new Map() : new Map(Object.entries(myYaml.others)));
- return myYaml
-}
\ No newline at end of file