Lines 1166-1180
Link Here
|
1166 |
<span class="label">Content warning: </span> |
1166 |
<span class="label">Content warning: </span> |
1167 |
<xsl:for-each select="marc:datafield[@tag=$ContentWarningField]"> |
1167 |
<xsl:for-each select="marc:datafield[@tag=$ContentWarningField]"> |
1168 |
<xsl:choose> |
1168 |
<xsl:choose> |
1169 |
<xsl:when test="marc:subfield[@code='z']"> |
1169 |
<xsl:when test="marc:subfield[@code='u']"> |
1170 |
<xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text> |
1170 |
<a> |
|
|
1171 |
<xsl:attribute name="href"> |
1172 |
<xsl:value-of select="marc:subfield[@code='u']"/> |
1173 |
</xsl:attribute> |
1174 |
<xsl:choose> |
1175 |
<xsl:when test="marc:subfield[@code='a']"> |
1176 |
<xsl:value-of select="marc:subfield[@code='a']"/> |
1171 |
</xsl:when> |
1177 |
</xsl:when> |
1172 |
<xsl:otherwise> |
1178 |
<xsl:otherwise> |
|
|
1179 |
<xsl:value-of select="marc:subfield[@code='u']"/> |
1180 |
</xsl:otherwise> |
1181 |
</xsl:choose> |
1182 |
</a> |
1183 |
<xsl:text> </xsl:text> |
1184 |
</xsl:when> |
1185 |
<xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']"> |
1186 |
<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text> |
1187 |
</xsl:when> |
1188 |
</xsl:choose> |
1173 |
<xsl:call-template name="subfieldSelect"> |
1189 |
<xsl:call-template name="subfieldSelect"> |
1174 |
<xsl:with-param name="codes">abcdefgijklnou</xsl:with-param> |
1190 |
<xsl:with-param name="codes">bcdefghijklmnopqrstvwyz</xsl:with-param> |
1175 |
</xsl:call-template> |
1191 |
</xsl:call-template> |
1176 |
</xsl:otherwise> |
|
|
1177 |
</xsl:choose> |
1178 |
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> |
1192 |
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> |
1179 |
</xsl:for-each> |
1193 |
</xsl:for-each> |
1180 |
</span> |
1194 |
</span> |
1181 |
- |
|
|