We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e173e4b commit efcb7f1Copy full SHA for efcb7f1
1 file changed
src/assets/print-view/fetch-orcid.js
@@ -277,6 +277,7 @@ function renderIdentityFromJson(recordJson) {
277
const fullName = [given, family].filter(Boolean).join(' ')
278
const chosenName = credit || fullName || STRINGS.unnamedProfile
279
280
+ // Set the page title
281
setTitle(recordJson, chosenName)
282
283
const container = document.createElement('article')
@@ -291,6 +292,11 @@ function renderIdentityFromJson(recordJson) {
291
292
const otherNames = jsonList(person?.['other-names']?.['other-name'])
293
.map((n) => jsonText(n?.content))
294
.filter(Boolean)
295
+
296
+ if (credit && fullName) {
297
+ otherNames.unshift(fullName)
298
+ }
299
300
if (otherNames.length) {
301
const namesLine = document.createElement('p')
302
namesLine.className = 'other-names'
0 commit comments