Skip to content

Commit

Permalink
Fix rendering for authors/editors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Aufreiter committed May 24, 2018
1 parent 8d259bd commit 7fb65fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/entities/entityRenderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ function webpageRenderer($$, entityId, entityDb) {
return fragments
}


/* This is used for authors and editors */
function personRenderer($$, entityId, entityDb, options = {}) {
let { prefix, suffix, givenNames, surname } = entityDb.get(entityId)
if (options.short) {
Expand All @@ -645,9 +645,9 @@ function personRenderer($$, entityId, entityDb, options = {}) {
result.push(prefix, ' ')
}
result.push(
surname,
givenNames,
' ',
givenNames
surname
)
if (suffix) {
result.push(' (', suffix, ')')
Expand All @@ -656,6 +656,7 @@ function personRenderer($$, entityId, entityDb, options = {}) {
}


/* This is used within references */
function refPersonRenderer($$, entry, options = {}) {
let { prefix, suffix, givenNames, surname } = entry
if (options.short) {
Expand Down

0 comments on commit 7fb65fc

Please sign in to comment.