Lines 112-118
Link Here
|
112 |
<!-- Title Statement --> |
112 |
<!-- Title Statement --> |
113 |
<!-- Alternate Graphic Representation (MARC 880) --> |
113 |
<!-- Alternate Graphic Representation (MARC 880) --> |
114 |
<xsl:if test="$display880"> |
114 |
<xsl:if test="$display880"> |
115 |
<h1 class="title" property="alternativeHeadline"> |
115 |
<h1 class="title" property="alternateName"> |
116 |
<xsl:call-template name="m880Select"> |
116 |
<xsl:call-template name="m880Select"> |
117 |
<xsl:with-param name="basetags">245</xsl:with-param> |
117 |
<xsl:with-param name="basetags">245</xsl:with-param> |
118 |
<xsl:with-param name="codes">abhfgknps</xsl:with-param> |
118 |
<xsl:with-param name="codes">abhfgknps</xsl:with-param> |
Lines 159-168
Link Here
|
159 |
</xsl:if> |
159 |
</xsl:if> |
160 |
<xsl:choose> |
160 |
<xsl:choose> |
161 |
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]"> |
161 |
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]"> |
162 |
<h5 class="author" property="author">by |
162 |
<h5 class="author">by |
163 |
<xsl:call-template name="showAuthor"> |
163 |
<xsl:call-template name="showAuthor"> |
164 |
<xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/> |
164 |
<xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/> |
165 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
165 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
|
|
166 |
<xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/> |
166 |
</xsl:call-template> |
167 |
</xsl:call-template> |
167 |
</h5> |
168 |
</h5> |
168 |
</xsl:when> |
169 |
</xsl:when> |
Lines 473-479
Link Here
|
473 |
<xsl:if test="marc:datafield[@tag=246]"> |
474 |
<xsl:if test="marc:datafield[@tag=246]"> |
474 |
<span class="results_summary other_title"><span class="label">Other title: </span> |
475 |
<span class="results_summary other_title"><span class="label">Other title: </span> |
475 |
<xsl:for-each select="marc:datafield[@tag=246]"> |
476 |
<xsl:for-each select="marc:datafield[@tag=246]"> |
476 |
<span property="alternativeHeadline"> |
477 |
<span property="alternateName"> |
477 |
<xsl:call-template name="chopPunctuation"> |
478 |
<xsl:call-template name="chopPunctuation"> |
478 |
<xsl:with-param name="chopString"> |
479 |
<xsl:with-param name="chopString"> |
479 |
<xsl:call-template name="subfieldSelect"> |
480 |
<xsl:call-template name="subfieldSelect"> |
Lines 491-497
Link Here
|
491 |
<xsl:if test="marc:datafield[@tag=242]"> |
492 |
<xsl:if test="marc:datafield[@tag=242]"> |
492 |
<span class="results_summary translated_title"><span class="label">Title translated: </span> |
493 |
<span class="results_summary translated_title"><span class="label">Title translated: </span> |
493 |
<xsl:for-each select="marc:datafield[@tag=242]"> |
494 |
<xsl:for-each select="marc:datafield[@tag=242]"> |
494 |
<span property="alternativeHeadline"> |
495 |
<span property="alternateName"> |
495 |
<xsl:call-template name="chopPunctuation"> |
496 |
<xsl:call-template name="chopPunctuation"> |
496 |
<xsl:with-param name="chopString"> |
497 |
<xsl:with-param name="chopString"> |
497 |
<xsl:call-template name="subfieldSelect"> |
498 |
<xsl:call-template name="subfieldSelect"> |
Lines 507-513
Link Here
|
507 |
|
508 |
|
508 |
<!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) --> |
509 |
<!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) --> |
509 |
<xsl:if test="$display880"> |
510 |
<xsl:if test="$display880"> |
510 |
<span property="alternativeHeadline"> |
511 |
<span property="alternateName"> |
511 |
<xsl:call-template name="m880Select"> |
512 |
<xsl:call-template name="m880Select"> |
512 |
<xsl:with-param name="basetags">130,240</xsl:with-param> |
513 |
<xsl:with-param name="basetags">130,240</xsl:with-param> |
513 |
<xsl:with-param name="codes">adfklmor</xsl:with-param> |
514 |
<xsl:with-param name="codes">adfklmor</xsl:with-param> |
Lines 520-526
Link Here
|
520 |
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
521 |
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
521 |
<span class="results_summary uniform_titles"><span class="label">Uniform titles: </span> |
522 |
<span class="results_summary uniform_titles"><span class="label">Uniform titles: </span> |
522 |
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
523 |
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
523 |
<span property="alternativeHeadline"> |
524 |
<span property="alternateName"> |
524 |
<xsl:variable name="str"> |
525 |
<xsl:variable name="str"> |
525 |
<xsl:for-each select="marc:subfield"> |
526 |
<xsl:for-each select="marc:subfield"> |
526 |
<xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))"> |
527 |
<xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))"> |
Lines 987-992
Link Here
|
987 |
<xsl:template name="showAuthor"> |
988 |
<xsl:template name="showAuthor"> |
988 |
<xsl:param name="authorfield" /> |
989 |
<xsl:param name="authorfield" /> |
989 |
<xsl:param name="UseAuthoritiesForTracings" /> |
990 |
<xsl:param name="UseAuthoritiesForTracings" /> |
|
|
991 |
<xsl:param name="materialTypeLabel" /> |
990 |
<xsl:for-each select="$authorfield"> |
992 |
<xsl:for-each select="$authorfield"> |
991 |
<xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose> |
993 |
<xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose> |
992 |
<xsl:choose> |
994 |
<xsl:choose> |
Lines 1008-1018
Link Here
|
1008 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> |
1010 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> |
1009 |
</xsl:otherwise> |
1011 |
</xsl:otherwise> |
1010 |
</xsl:choose> |
1012 |
</xsl:choose> |
|
|
1013 |
<span resource="#record"><span> |
1014 |
<xsl:choose> |
1015 |
<xsl:when test="substring(@tag, 1, 1)='1'"> |
1016 |
<xsl:choose> |
1017 |
<xsl:when test="$materialTypeLabel='Music'"><xsl:attribute name="property">byArtist</xsl:attribute></xsl:when> |
1018 |
<xsl:otherwise><xsl:attribute name="property">author</xsl:attribute></xsl:otherwise> |
1019 |
</xsl:choose> |
1020 |
</xsl:when> |
1021 |
<xsl:otherwise><xsl:attribute name="property">contributor</xsl:attribute></xsl:otherwise> |
1022 |
</xsl:choose> |
1023 |
<xsl:choose> |
1024 |
<xsl:when test="substring(@tag, 2, 1)='0'"> |
1025 |
<xsl:choose> |
1026 |
<xsl:when test="$materialTypeLabel='Music'"><xsl:attribute name="typeof">MusicGroup</xsl:attribute></xsl:when> |
1027 |
<xsl:otherwise><xsl:attribute name="typeof">Person</xsl:attribute></xsl:otherwise> |
1028 |
</xsl:choose> |
1029 |
</xsl:when> |
1030 |
<xsl:otherwise><xsl:attribute name="typeof">Organization</xsl:attribute></xsl:otherwise> |
1031 |
</xsl:choose> |
1032 |
<span property="name"> |
1011 |
<xsl:choose> |
1033 |
<xsl:choose> |
1012 |
<xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when> |
1034 |
<xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when> |
1013 |
<xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when> |
1035 |
<xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when> |
1014 |
<xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when> |
1036 |
<xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when> |
1015 |
</xsl:choose> |
1037 |
</xsl:choose> |
|
|
1038 |
</span></span></span> |
1016 |
<!-- add relator code too between brackets--> |
1039 |
<!-- add relator code too between brackets--> |
1017 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
1040 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
1018 |
<span class="relatorcode"> |
1041 |
<span class="relatorcode"> |
1019 |
- |
|
|