Commit 0fb70d1a authored by barth23's avatar barth23
Browse files

linking PID/tgURI

parent af59975b
......@@ -1726,12 +1726,16 @@ function getMetadata() {
console.log('error: no edition-dateModified');
}
try {
document.querySelector("#edition-textGridURI").innerText = document.querySelector("#tei-meta-textGridURI").innerText;
const tg_uri = document.querySelector("#tei-meta-textGridURI").innerText
const tg_uri_link = "https://textgridrep.org/"+tg_uri
document.querySelector("#edition-textGridURI").innerHTML = '<a target="_blank" href="'+tg_uri_link+'">'+tg_uri+'</a>';
} catch (e) {
console.log('error: no edition-textGridURI');
}
try {
document.querySelector("#edition-PID").innerText = document.querySelector("#tei-meta-pid").innerText;
const hdl = document.querySelector("#tei-meta-pid").innerText
const hdl_link = "https://hdl.handle.net/" + hdl.split("hdl:")[1]
document.querySelector("#edition-PID").innerHTML = '<a target="_blank" href="'+hdl_link+'">'+hdl+'</a>';
} catch (e) {
console.log('error: no edition-PID');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment