Skip to content

Commit

Permalink
Merge 3c3956e into 60df2e1
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Oct 15, 2020
2 parents 60df2e1 + 3c3956e commit cf2457d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/widgets/abstract/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf2457d

Please sign in to comment.