Bugzilla – Attachment 175771 Details for
Bug 38455
UNIMARC XSLT Music incipit (036) try to display field 031 (as in MARC21)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38455: UNIMARC XSLT diplay field 036 correctly
Bug-38455-UNIMARC-XSLT-diplay-field-036-correctly.patch (text/plain), 2.27 KB, created by
Marion Durand
on 2024-12-19 15:18:33 UTC
(
hide
)
Description:
Bug 38455: UNIMARC XSLT diplay field 036 correctly
Filename:
MIME Type:
Creator:
Marion Durand
Created:
2024-12-19 15:18:33 UTC
Size:
2.27 KB
patch
obsolete
>From 2498f0d66cea3270239e1ac1aa35b91905678216 Mon Sep 17 00:00:00 2001 >From: Marion Durand <marion.durand@biblibre.com> >Date: Thu, 19 Dec 2024 16:13:13 +0100 >Subject: [PATCH] Bug 38455: UNIMARC XSLT diplay field 036 correctly > >In Unimarc, the field for music incipit is 036. The test to display the music player is correctly on field 036 but the field displayed was 031 (which is valid for Marc21 but not for Unimac). > >To test: >On a Koha Unimarc instance: >1- Set system preference "OPACPlayMusicalInscripts" to "Play" and "OPACShowMusicalInscripts" to "Show" >2- set the system preference OPACXSLTListsDisplay is set on koha-tmpl/opac-tmpl/bootstrap/{languagecode}/xslt/UNIMARCslim2OPACDetail.xsl >3- Update a framework of your choice to display subfield 036$2 $g $n $o $p in OPAC, intranet and editor (make sure the collapse checkbox is not checked) >4- Create a record with the previously modified framework, fill all mandatory fields and add a 036 field with at least subfield $2 $g $n $o $p, make sure you have no 031 field >example of a valid 036 field > 036$2 pe > 036$g G-2 > 036$n bB > 036$o 3/4 > 036$p {8C'8C'}/4D4C'4F/2E >5- Go to the OPAC detail page for the record created (with interface in English) >6- check that the music player does not appear >7- apply the patch >8- Reload the OPAC detail page for the record created (sill with interface in English) >9- check that the music player appears and is working >--- > .../opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >index 72b3e0931c..29d0982735 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >@@ -492,7 +492,7 @@ > <xsl:variable name="OPACPlayMusicalInscripts" select="marc:sysprefs/marc:syspref[@name='OPACPlayMusicalInscripts']" /> > > <xsl:if test="$OPACShowMusicalInscripts and marc:datafield[@tag=036]"> >- <xsl:for-each select="marc:datafield[@tag=031]"> >+ <xsl:for-each select="marc:datafield[@tag=036]"> > > <span class="results_summary musical_inscripts"> > <xsl:if test="marc:subfield[@code='u']"> >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38455
: 175771