Lines 1076-1090
Link Here
|
1076 |
<span class="label">Content warning: </span> |
1076 |
<span class="label">Content warning: </span> |
1077 |
<xsl:for-each select="marc:datafield[@tag=$ContentWarningField]"> |
1077 |
<xsl:for-each select="marc:datafield[@tag=$ContentWarningField]"> |
1078 |
<xsl:choose> |
1078 |
<xsl:choose> |
1079 |
<xsl:when test="marc:subfield[@code='z']"> |
1079 |
<xsl:when test="marc:subfield[@code='u']"> |
1080 |
<xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text> |
1080 |
<a> |
|
|
1081 |
<xsl:attribute name="href"> |
1082 |
<xsl:value-of select="marc:subfield[@code='u']"/> |
1083 |
</xsl:attribute> |
1084 |
<xsl:choose> |
1085 |
<xsl:when test="marc:subfield[@code='a']"> |
1086 |
<xsl:value-of select="marc:subfield[@code='a']"/> |
1087 |
</xsl:when> |
1088 |
<xsl:otherwise> |
1089 |
<xsl:value-of select="marc:subfield[@code='u']"/> |
1090 |
</xsl:otherwise> |
1091 |
</xsl:choose> |
1092 |
</a> |
1093 |
<xsl:text> </xsl:text> |
1094 |
</xsl:when> |
1095 |
<xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']"> |
1096 |
<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text> |
1081 |
</xsl:when> |
1097 |
</xsl:when> |
1082 |
<xsl:otherwise> |
|
|
1083 |
<xsl:call-template name="subfieldSelect"> |
1084 |
<xsl:with-param name="codes">abcdefgijklnou</xsl:with-param> |
1085 |
</xsl:call-template> |
1086 |
</xsl:otherwise> |
1087 |
</xsl:choose> |
1098 |
</xsl:choose> |
|
|
1099 |
<xsl:call-template name="subfieldSelect"> |
1100 |
<xsl:with-param name="codes">bcdefghijklmnopqrstvwxyz</xsl:with-param> |
1101 |
</xsl:call-template> |
1088 |
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> |
1102 |
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> |
1089 |
</xsl:for-each> |
1103 |
</xsl:for-each> |
1090 |
</span> |
1104 |
</span> |