Skip to content

Commit

Permalink
layout fix: prevent breaking in names
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Oct 18, 2023
1 parent ac80a69 commit 16d2e29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
.ubo-person-connected {
// color: $warning;
}

.personalName {
white-space: nowrap;
}

.ubo-mandatory::before {
content: "* \00A0";
Expand Down
9 changes: 5 additions & 4 deletions ubo-common/src/main/resources/xsl/mods-display.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,11 @@
<xsl:variable name="is-corresponding-author" select="contains(mods:role/mods:roleTerm/@valueURI, 'author_roles#corresponding_author')" />
<xsl:variable name="is-connected-author" select="count(mods:nameIdentifier[@type='connection']) &gt; 0" />
<xsl:variable name="popId" select="generate-id()"/>

<xsl:if test="position() &gt; 1">
<xsl:text>; </xsl:text>
</xsl:if>

<span>
<xsl:attribute name="class">
<xsl:choose>
Expand All @@ -530,10 +535,6 @@
</xsl:attribute>
</xsl:if>

<xsl:if test="position() &gt; 1">
<xsl:text>; </xsl:text>
</xsl:if>

<xsl:apply-templates select="." />

<xsl:if test="mods:nameIdentifier or $is-corresponding-author = true()">
Expand Down

0 comments on commit 16d2e29

Please sign in to comment.