Lines 12-17
Link Here
|
12 |
<xsl:template match="/"> |
12 |
<xsl:template match="/"> |
13 |
<xsl:apply-templates/> |
13 |
<xsl:apply-templates/> |
14 |
</xsl:template> |
14 |
</xsl:template> |
|
|
15 |
<!-- Template for adding custom content from ExtraContentForXSLTDisplay and preserving HTML and TT from the preference --> |
16 |
<xsl:template match="marc:extracontent//node()"> |
17 |
<xsl:choose> |
18 |
<xsl:when test="self::text() or self::comment()"> |
19 |
<xsl:value-of select="."/> |
20 |
</xsl:when> |
21 |
<xsl:otherwise> |
22 |
<xsl:element name="{local-name()}"> |
23 |
<xsl:for-each select="@*"> |
24 |
<xsl:attribute name="{name()}"> |
25 |
<xsl:value-of select="."/> |
26 |
</xsl:attribute> |
27 |
</xsl:for-each> |
28 |
<xsl:apply-templates select="node()"/> |
29 |
</xsl:element> |
30 |
</xsl:otherwise> |
31 |
</xsl:choose> |
32 |
</xsl:template> |
15 |
<xsl:template match="marc:record"> |
33 |
<xsl:template match="marc:record"> |
16 |
|
34 |
|
17 |
<!-- Option: Display Alternate Graphic Representation (MARC 880) --> |
35 |
<!-- Option: Display Alternate Graphic Representation (MARC 880) --> |
Lines 1021-1029
Link Here
|
1021 |
</span> |
1039 |
</span> |
1022 |
</xsl:if> |
1040 |
</xsl:if> |
1023 |
</xsl:if> |
1041 |
</xsl:if> |
1024 |
<xsl:if test="marc:extracontent and normalize-space(string(marc:extracontent/marc:content)) != ''"> |
1042 |
<!-- Process custom fields from ExtraContentForXSLTDisplay system preference --> |
1025 |
<xsl:copy-of select="marc:extracontent/marc:content/node()"/> |
1043 |
<xsl:for-each select="marc:extracontent/marc:content/node()"> |
1026 |
</xsl:if> |
1044 |
<xsl:choose> |
|
|
1045 |
<xsl:when test="self::text() or self::comment()"> |
1046 |
<xsl:value-of select="."/> |
1047 |
</xsl:when> |
1048 |
<xsl:otherwise> |
1049 |
<xsl:element name="{local-name()}"> |
1050 |
<xsl:for-each select="@*"> |
1051 |
<xsl:attribute name="{name()}"> |
1052 |
<xsl:value-of select="."/> |
1053 |
</xsl:attribute> |
1054 |
</xsl:for-each> |
1055 |
<xsl:apply-templates select="node()"/> |
1056 |
</xsl:element> |
1057 |
</xsl:otherwise> |
1058 |
</xsl:choose> |
1059 |
</xsl:for-each> |
1027 |
|
1060 |
|
1028 |
<!-- Content Warning --> |
1061 |
<!-- Content Warning --> |
1029 |
<xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/> |
1062 |
<xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/> |
1030 |
- |
|
|