Skip to content

Commit

Permalink
Merge pull request #1421 from thostetler/more-orcid-fixes
Browse files Browse the repository at this point in the history
Orcid Fixes
  • Loading branch information
ehenneken authored Mar 29, 2018
2 parents 6202d94 + 47dac4b commit 1219975
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 183 deletions.
5 changes: 4 additions & 1 deletion src/js/mixins/papers_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ define([
data.details = data.details || {shortAbstract: data.shortAbstract, pub: data.pub, abstract : data.abstract};
data.num_citations = data["[citations]"] ? data["[citations]"]["num_citations"] : undefined;
data.identifier = data.bibcode;
data.encodedIdentifier = encodeURIComponent(data.identifier);

// make sure undefined doesn't become "undefined"
data.encodedIdentifier = _.isUndefined(data.identifier) ?
data.identifier : encodeURIComponent(data.identifier);

if (data.pubdate || data.shortAbstract){
data.popover = true;
Expand Down
Loading

0 comments on commit 1219975

Please sign in to comment.