Skip to content

Commit

Permalink
Fixing a small issue with the javascript popup box used by ORCID
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVdV committed Oct 20, 2014
1 parent e0b7b46 commit a46e248
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,16 @@
})();
</xsl:text></script>
</xsl:if>

<!-- Add a contextpath to a JS variable -->
<script type="text/javascript"><xsl:text>
if(typeof window.orcid === 'undefined'){
window.orcid={};
};
window.orcid.contextPath= '</xsl:text><xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/><xsl:text>';</xsl:text>
<xsl:text>window.orcid.themePath= '</xsl:text><xsl:value-of select="$theme-path"/><xsl:text>';</xsl:text>
</script>

</xsl:template>

</xsl:stylesheet>

0 comments on commit a46e248

Please sign in to comment.