From 3c3956ec68d7ca512af2a1b2ab67a1afd45db419 Mon Sep 17 00:00:00 2001 From: Tim Hostetler <6970899+thostetler@users.noreply.github.com> Date: Thu, 15 Oct 2020 13:29:44 -0400 Subject: [PATCH] remove HTML-encoding from affiliations --- src/js/widgets/abstract/widget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/widgets/abstract/widget.js b/src/js/widgets/abstract/widget.js index 46bd0d28e..d2a287d84 100644 --- a/src/js/widgets/abstract/widget.js +++ b/src/js/widgets/abstract/widget.js @@ -68,6 +68,9 @@ define([ // "aff" is the name of the affiliations array that comes from solr doc.aff = doc.aff || []; + // remove html-encoding from affiliations + doc.aff = doc.aff.map(_.unescape); + if (doc.aff.length) { doc.hasAffiliation = _.without(doc.aff, '-').length; // joining author and aff