Bugzilla – Attachment 141760 Details for
Bug 31756
Biblionumber not numerically sorting natively when using Zebra
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31756: Undo zeropad workaround for Local-Number:s for MARC21
Bug-31756-Undo-zeropad-workaround-for-Local-Number.patch (text/plain), 2.37 KB, created by
David Cook
on 2022-10-13 00:07:56 UTC
(
hide
)
Description:
Bug 31756: Undo zeropad workaround for Local-Number:s for MARC21
Filename:
MIME Type:
Creator:
David Cook
Created:
2022-10-13 00:07:56 UTC
Size:
2.37 KB
patch
obsolete
>From 8d6ec82114dfa07c4368ddf4623997a0a81a8b4a Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 13 Oct 2022 11:02:36 +1100 >Subject: [PATCH] Bug 31756: Undo zeropad workaround for Local-Number:s for > MARC21 > >--- > .../marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 2 -- > .../marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 9 +-------- > 2 files changed, 1 insertion(+), 10 deletions(-) > >diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >index 7b1895968b..c405228d45 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -1196,8 +1196,6 @@ > <index_subfields tag="999" subfields="c"> > <target_index>Local-Number:n</target_index> > <target_index>Local-Number:w</target_index> >- </index_subfields> >- <index_subfields tag="999" subfields="c" zeropad="1"> > <target_index>Local-Number:s</target_index> > </index_subfields> > <!--record.abs line 269: melm 999$d biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s--> >diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >index b3222fadb5..626c44c5b3 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -1261,18 +1261,11 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('c', @code)"> >- <z:index name="Local-Number:n Local-Number:w"> >+ <z:index name="Local-Number:n Local-Number:w Local-Number:s"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> > </xslo:for-each> >- <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('c', @code)"> >- <z:index name="Local-Number:s"> >- <xslo:value-of select="format-number(.,"00000000000")"/> >- </z:index> >- </xslo:if> >- </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('d', @code)"> > <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s"> >-- >2.35.3
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 31756
:
141759
| 141760 |
141761