Skip to content

Commit

Permalink
MIR-1361 Display ror id as of https://ror.readme.io/docs/display
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Oct 17, 2024
1 parent a7a9b63 commit 1e4600d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ $grayDark: #ECF0F1 !default;
height:200px;
}

.mir-ror-logo {
height: 20px;
}
.mir-toc-sections {
list-style-type: none;
padding-left: 0;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions mir-module/src/main/resources/xsl/mir-mods-utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@
<xsl:for-each select="mods:affiliation[contains(@authorityURI, '//ror.org')][@valueURI]">
<xsl:sort select="@valueURI"/>
<div class="mir-affiliation-ror">
<xsl:value-of select="'ROR ID: '"/>
<a href="https://ror.org/" alt="ROR logo">
<img src="{$WebApplicationBaseURL}images/ror/ror-icon-rgb-transparent.svg"
class="pr-1 mir-ror-logo"/>
</a>
<a href="{@valueURI}">
<xsl:value-of select="substring-after(@valueURI, @authorityURI)"/>
<xsl:value-of select="@valueURI"/>
</a>
</div>
</xsl:for-each>
Expand Down

0 comments on commit 1e4600d

Please sign in to comment.