Skip to content

Commit 43f3863

Browse files
committed
PD-5749 display inline external identifiers for activities
1 parent 5f60504 commit 43f3863

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/assets/print-view/fetch-orcid.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ function renderPersonalInfoFromJson(recordJson, container) {
419419
const lines = externalIds.map((entry) => {
420420
const label = entry.type || 'Identifier'
421421
const value = entry.value || entry.url || ''
422-
return otherIdsNode(label, value, entry.url)
422+
return otherIdsTextNode(label, value, entry.url)
423423
})
424424
appendList(block, lines)
425425
blocks.push(block)
@@ -486,7 +486,7 @@ function textLineNode(label, value, url) {
486486
return wrapper
487487
}
488488

489-
function otherIdsNode(label, value, url) {
489+
function otherIdsTextNode(label, value, url) {
490490
const wrapper = document.createElement('p')
491491
wrapper.className = 'line'
492492
if (label) {
@@ -600,10 +600,7 @@ function composeActivityEntryFromJson(entry, opts = {}) {
600600
idRel && idRel.toLowerCase() !== 'self'
601601
? `${idRel} ${idType}`
602602
: idType || STRINGS.identifier
603-
/////////////////////////////////////////////////////////////////////////////////
604-
//---- This should be formatted as a identifier URL, like the other ids as well
605-
/////////////////////////////////////////////////////////////////////////////////
606-
wrapper.appendChild(textLineNode(label, idValue || idUrl || '', idUrl))
603+
wrapper.appendChild(otherIdsTextNode(label, idValue || idUrl || '', idUrl))
607604
})
608605
}
609606

0 commit comments

Comments
 (0)