Skip to content

Commit

Permalink
UBO-258 FSU040THUL-1065 Applied requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Aug 4, 2023
1 parent eced582 commit 31fca21
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions ubo-common/src/main/resources/xsl/mods-display.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -548,18 +548,14 @@
<xsl:variable name="popId" select="generate-id()"/>
<xsl:variable name="is-corresponding-author" select="contains(../mods:role/mods:roleTerm/@valueURI, 'author_roles#corresponding_author')"/>

<xsl:variable name="icon-class">
<xsl:choose>
<xsl:when test="$is-corresponding-author = true()">
<xsl:value-of select="'fas fa-user-edit'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'fas fa-user'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<span class="{$icon-class} ubo-person-popover ml-1" id="{$popId}" title="{i18n:translate('person.search.information')}"/>
<span id="{$popId}" title="{i18n:translate('person.search.information')}">
<xsl:attribute name="class">
<xsl:text>ubo-person-popover ml-1 fas fa-user</xsl:text>
<xsl:if test="$is-corresponding-author = true()">
<xsl:text>-edit</xsl:text>
</xsl:if>
</xsl:attribute>
</span>

<div id="{$popId}-content" class="d-none">
<dl>
Expand Down

0 comments on commit 31fca21

Please sign in to comment.