diff --git a/productMods/js/visualization/coPIship/coPIship-person-level.js b/productMods/js/visualization/coPIship/coPIship-person-level.js index 29f29ef4..b0cb2a3c 100644 --- a/productMods/js/visualization/coPIship/coPIship-person-level.js +++ b/productMods/js/visualization/coPIship/coPIship-person-level.js @@ -40,7 +40,7 @@ function renderStatsOnNodeClicked(json){ */ if(obj.url){ - if (obj.url == egoURI) { + if (obj.url === unEncodedEgoURI) { $("#investigatorName").addClass('investigator_name').removeClass('neutral_investigator_name'); $('#num_works > .investigator_stats_text').text(works); diff --git a/productMods/js/visualization/coauthorship/coauthorship-personlevel.js b/productMods/js/visualization/coauthorship/coauthorship-personlevel.js index 958873c2..d56700a9 100644 --- a/productMods/js/visualization/coauthorship/coauthorship-personlevel.js +++ b/productMods/js/visualization/coauthorship/coauthorship-personlevel.js @@ -38,7 +38,7 @@ function renderStatsOnNodeClicked(json){ */ if(obj.url){ - if (obj.url == egoURI) { + if (obj.url === unEncodedEgoURI) { $("#authorName").addClass('author_name').removeClass('neutral_author_name'); $('#num_works > .author_stats_text').text(works); diff --git a/productMods/templates/freemarker/visualization/personlevel/coAuthorPersonLevel.ftl b/productMods/templates/freemarker/visualization/personlevel/coAuthorPersonLevel.ftl index 80ae14cf..49b4e201 100644 --- a/productMods/templates/freemarker/visualization/personlevel/coAuthorPersonLevel.ftl +++ b/productMods/templates/freemarker/visualization/personlevel/coAuthorPersonLevel.ftl @@ -40,6 +40,7 @@ var requiredRevision = 0; var swfLink = "${swfLink}"; var egoURI = "${egoURI}"; +var unEncodedEgoURI = "${egoURIParam}"; var egoCoAuthorshipDataFeederURL = "${egoCoAuthorshipDataFeederURL}"; var egoCoAuthorsListDataFileURL = "${egoCoAuthorsListDataFileURL}"; var contextPath = "${urls.base}"; diff --git a/productMods/templates/freemarker/visualization/personlevel/coPIPersonLevel.ftl b/productMods/templates/freemarker/visualization/personlevel/coPIPersonLevel.ftl index 33e031e4..4605a538 100644 --- a/productMods/templates/freemarker/visualization/personlevel/coPIPersonLevel.ftl +++ b/productMods/templates/freemarker/visualization/personlevel/coPIPersonLevel.ftl @@ -38,6 +38,7 @@ var requiredRevision = 0; var swfLink = "${swfLink}"; var egoURI = "${egoURI}"; +var unEncodedEgoURI = "${egoURIParam}"; var egoCoInvestigationDataFeederURL = "${egoCoInvestigationDataFeederURL}"; var egoCoInvestigatorsListDataFileURL = "${egoCoInvestigatorsListDataFileURL}";