diff --git a/content/multipledataset.html b/content/multipledataset.html index e22ff85c..0da00a19 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -202,13 +202,29 @@ draft: false return undefined } })() + textSelctor=function(value){ + switch (name) { + case "DOI": + return sets.has(value) ? sets.get(value) : value.toString() + break; + case "molecule": + const mhchemCE=/^\\ce\{.*\}$/ + return mhchemCE.test(value) ? "\\("+value.toString()+"\\)" : value.toString() + break; + default: + return value.toString() + } + } for (const val of vals) { if (val !== null) { $("