diff --git a/content/onedataset.html b/content/onedataset.html index 3a9eb98e..f6c3f964 100644 --- a/content/onedataset.html +++ b/content/onedataset.html @@ -9,6 +9,7 @@ draft: false + {{< getDataFilesName >}} @@ -67,8 +68,6 @@ draft: false reload() } async function update_file(file) { - var lnk_file=document.getElementById('lnk_file'); - lnk_file.setAttribute('href',String.raw`view?dataFile=${file}`); dat= await data.loadAsync(file); await applyData(dat); } @@ -78,7 +77,7 @@ draft: false par.innerHTML=''; var md=[]; var els=[]; - var customRenderingProp=["excitations"] + var customRenderingProp=["excitations","sourceFile"] for (const key of Object.keys(window.data)) { if (window.data[key]!=null){ md.push(key) @@ -87,6 +86,7 @@ draft: false md.push([prop,window.data[key][prop]]) } md.push(window.data[key].DOI) + md.push(window.data[key].sourceFile) } } div=document.getElementById("meta_div") @@ -111,6 +111,12 @@ draft: false node.target='_blank' node.href=element.url break + case "websiteFile": + node=document.createElement("a") + node.innerText="Go to file" + node.target='_blank' + node.href=element.viewerUrl + break case "Array": k=element[0] v=element[1] @@ -210,5 +216,4 @@ draft: false