Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ARCHITRAVE
SADE
Commits
0fb70d1a
Commit
0fb70d1a
authored
May 30, 2022
by
barth23
Browse files
linking PID/tgURI
parent
af59975b
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/js/edition.js
View file @
0fb70d1a
...
...
@@ -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
'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment