Bug 20823: UNIMARC XSLT add subfield t for subjects
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 25 May 2018 14:51:15 +0000 (16:51 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 Mar 2019 10:42:19 +0000 (10:42 +0000)
In UNIMARC, 604 contains subfield t, see http://multimedia.bnf.fr/unimarcb_trad/B604-6-2011.pdf.
Actual XSLT files use template tag_subject for 604, it does not use t subfield.

This patch adds subfield t to tag_subject and tag_onesubject templates in intranet and OPAC XSLT files.

Test plan :
1) In UNIMARC catalog edit a biblio record to add 604$t
2) Use default XSLT files in sysprefs
2) Go to catalogue details page of this record using default XSLT files
3) Check $t is displayed at OPAC and intranet

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 0c4bf00c30ce25165a5243bced7b7e19746a7e0b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl

index c41777b..0c4cf0f 100644 (file)
             <xsl:call-template name="chopPunctuation">
               <xsl:with-param name="chopString">
                 <xsl:call-template name="subfieldSelect">
-                    <xsl:with-param name="codes">abcdjpvxyz</xsl:with-param>
+                    <xsl:with-param name="codes">abcdjptvxyz</xsl:with-param>
                     <xsl:with-param name="subdivCodes">jpxyz</xsl:with-param>
                     <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
                 </xsl:call-template>
index 4195ddf..61f67eb 100644 (file)
           <xsl:call-template name="chopPunctuation">
             <xsl:with-param name="chopString">
               <xsl:call-template name="subfieldSelect">
-                <xsl:with-param name="codes">abcdfijkmnpvxyz</xsl:with-param>
+                <xsl:with-param name="codes">abcdfijkmnptvxyz</xsl:with-param>
                 <xsl:with-param name="subdivCodes">ijknpxyz</xsl:with-param>
                 <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
               </xsl:call-template>