.contents {
width: 75%;
- .r {
- display: inline;
+ .newline::after {
+ content: "\A → ";
+ white-space: pre;
}
.t {
- display: inline;
font-weight: bold;
+ display: inline;
+ }
- &:first-child {
- &::before {
- content: "→ ";
- }
- }
-
- &::before {
- content: "\A→ ";
- white-space: pre;
- }
+ .r {
+ display: inline;
}
}
+
.contentblock {
+ font-size: 95%;
+ line-height: 135%;
margin-left: 2em;
position: relative;
+
+ :first-child::before {
+ content: "→ ";
+ }
}
#hierarchies {
<xsl:choose>
<xsl:when test="@ind2=0">
<xsl:call-template name="subfieldSelectSpan">
+ <xsl:with-param name="newline">1</xsl:with-param>
<xsl:with-param name="codes">trug</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="subfieldSelectSpan">
+ <xsl:with-param name="newline">1</xsl:with-param>
<xsl:with-param name="codes">atrug</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
<xsl:param name="subdivDelimiter"/>
<xsl:param name="prefix"/>
<xsl:param name="suffix"/>
+ <xsl:param name="newline"/>
<xsl:for-each select="marc:subfield">
<xsl:if test="contains($codes, @code)">
<span>
- <xsl:attribute name="class"><xsl:value-of select="@code"/></xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:value-of select="@code"/>
+ <xsl:if test="$newline = 1 and contains(text(), '--')">
+ <xsl:text> newline</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
<xsl:if test="contains($subdivCodes, @code)">
<xsl:value-of select="$subdivDelimiter"/>
</xsl:if>
.contents {
width: 75%;
- .t:first-child::before {
- content: "→ ";
- }
-
- .t::before {
+ .newline::after {
content: "\A → ";
white-space: pre;
}
line-height: 135%;
margin-left: 2em;
position: relative;
+
+ :first-child::before {
+ content: "→ ";
+ }
}
.m880 {
<xsl:choose>
<xsl:when test="@ind2=0">
<xsl:call-template name="subfieldSelectSpan">
+ <xsl:with-param name="newline">1</xsl:with-param>
<xsl:with-param name="codes">trug</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="subfieldSelectSpan">
+ <xsl:with-param name="newline">1</xsl:with-param>
<xsl:with-param name="codes">atrug</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
<xsl:param name="subdivDelimiter"/>
<xsl:param name="prefix"/>
<xsl:param name="suffix"/>
+ <xsl:param name="newline"/>
<xsl:for-each select="marc:subfield">
<xsl:if test="contains($codes, @code)">
<span>
- <xsl:attribute name="class"><xsl:value-of select="@code"/></xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:value-of select="@code"/>
+ <xsl:if test="$newline = 1 and contains(text(), '--')">
+ <xsl:text> newline</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
<xsl:if test="contains($subdivCodes, @code)">
<xsl:value-of select="$subdivDelimiter"/>
</xsl:if>