From 7fb65fcdad8fffabf136e01543f39fc5a9f649c1 Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Thu, 24 May 2018 15:34:08 +0200 Subject: [PATCH] Fix rendering for authors/editors. --- src/entities/entityRenderers.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/entities/entityRenderers.js b/src/entities/entityRenderers.js index 0bf58b747..661171556 100644 --- a/src/entities/entityRenderers.js +++ b/src/entities/entityRenderers.js @@ -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) { @@ -645,9 +645,9 @@ function personRenderer($$, entityId, entityDb, options = {}) { result.push(prefix, ' ') } result.push( - surname, + givenNames, ' ', - givenNames + surname ) if (suffix) { result.push(' (', suffix, ')') @@ -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) {