Bugzilla – Attachment 149033 Details for
Bug 6473
Test bug for Git-bz ✔ ❤ ★
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20424: provides biblio-zebra-indexdefs.xsl
Bug-20424-provides-biblio-zebra-indexdefsxsl.patch (text/plain), 7.41 KB, created by
Thibault Keromnès
on 2023-03-31 11:58:51 UTC
(
hide
)
Description:
Bug 20424: provides biblio-zebra-indexdefs.xsl
Filename:
MIME Type:
Creator:
Thibault Keromnès
Created:
2023-03-31 11:58:51 UTC
Size:
7.41 KB
patch
obsolete
>From 171e67d7f7c0e733377f1e40a1a2c35632898f54 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 28 Mar 2023 16:14:52 +0200 >Subject: [PATCH] Bug 20424: provides biblio-zebra-indexdefs.xsl > >Signed-off-by: tkeromnes <thibault.keromnes@univ-paris8.fr> > >https://bugs.koha-community.org/show_bug.cgi?id=6473 >--- > .../biblios/biblio-zebra-indexdefs.xsl | 111 ++++++++++++++++-- > 1 file changed, 98 insertions(+), 13 deletions(-) > >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >index 22d902c461..e7add8e443 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -87,9 +87,16 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:if> > </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('o', @code)"> >+ <z:index name="Suppress:w Suppress:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('t', @code)"> >- <z:index name="ccode:w"> >+ <z:index name="index-type-doc:w index-type-doc:p"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -255,6 +262,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:if> > </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('B', @code)"> >+ <z:index name="new-item:w new-item:n item:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('1', @code)"> > <z:index name="damaged:w damaged:n item:w"> >@@ -816,6 +830,38 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:if> > </xslo:for-each> > </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='214']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('d', @code)"> >+ <z:index name="pubdate:n pubdate:y"> >+ <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="Publisher:w Publisher:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='219']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('d', @code)"> >+ <z:index name="pubdate:n pubdate:y"> >+ <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="Publisher:w Publisher:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='225']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >@@ -1450,8 +1496,22 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='461']"> > <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('t', @code)"> >- <z:index name="Title:w Title:p Host-item:w Host-item:p"> >+ <xslo:if test="contains('tv', @code)"> >+ <z:index name="Title:w Title:p index-title-serie:p index-title-serie:w index-title-serie:n Host-item:w Host-item:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('9', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('0', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -1468,8 +1528,22 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='463']"> > <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('t', @code)"> >- <z:index name="Title:w Title:p"> >+ <xslo:if test="contains('tv', @code)"> >+ <z:index name="Title:w Title:p index-title-article:p index-title-article:w index-title-article:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('9', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('0', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -2542,16 +2616,30 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:value-of select="normalize-space($raw_heading)"/> > </z:index> > </xslo:template> >- <xslo:template mode="index_facets" match="marc:datafield[@tag='099']"> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> > <xslo:if test="not(@ind1='z')"> >- <z:index name="ccode:0"> >- <xslo:value-of select="marc:subfield[@code='t']"/> >+ <z:index name="se:0"> >+ <xslo:value-of select="marc:subfield[@code='a']"/> > </z:index> > </xslo:if> > </xslo:template> >- <xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='500']"> > <xslo:if test="not(@ind1='z')"> >- <z:index name="se:0"> >+ <z:index name="su-ut:0"> >+ <xslo:value-of select="marc:subfield[@code='a']"/> >+ </z:index> >+ </xslo:if> >+ </xslo:template> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='501']"> >+ <xslo:if test="not(@ind1='z')"> >+ <z:index name="su-ut:0"> >+ <xslo:value-of select="marc:subfield[@code='a']"/> >+ </z:index> >+ </xslo:if> >+ </xslo:template> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='503']"> >+ <xslo:if test="not(@ind1='z')"> >+ <z:index name="su-ut:0"> > <xslo:value-of select="marc:subfield[@code='a']"/> > </z:index> > </xslo:if> >@@ -2672,9 +2760,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <z:index name="location:0"> > <xslo:value-of select="marc:subfield[@code='e']"/> > </z:index> >- <z:index name="ccode:0"> >- <xslo:value-of select="marc:subfield[@code='h']"/> >- </z:index> > </xslo:if> > </xslo:template> > <xslo:template mode="index_all" match="text()"> >-- >2.30.2
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 6473
:
4386
|
6837
|
6838
|
6839
|
6840
|
6841
|
6842
|
6843
|
7154
|
7155
|
7567
|
7994
|
7995
|
7996
|
7997
|
8018
|
9807
|
9808
|
9813
|
9831
|
9832
|
9836
|
9854
|
10842
|
10843
|
10844
|
10845
|
10846
|
10847
|
10848
|
10849
|
10850
|
10851
|
10852
|
10853
|
10854
|
10855
|
10856
|
10857
|
10858
|
11540
|
11543
|
11544
|
12502
|
12513
|
12514
|
12515
|
12516
|
12517
|
12518
|
12519
|
13473
|
13673
|
14955
|
14969
|
14970
|
14972
|
15201
|
18949
|
18950
|
18951
|
18952
|
18953
|
18954
|
18955
|
18956
|
18957
|
18958
|
18959
|
18960
|
18961
|
18962
|
18963
|
18971
|
18972
|
19518
|
19519
|
19591
|
19592
|
19871
|
19879
|
19880
|
19881
|
19882
|
20011
|
20012
|
20013
|
20014
|
22477
|
22481
|
22482
|
22496
|
22502
|
22503
|
31958
|
32444
|
32445
|
32446
|
32447
|
32448
|
32449
|
32450
|
32451
|
32452
|
34200
|
34201
|
34625
|
34999
|
35130
|
35269
|
35273
|
35274
|
35275
|
35276
|
35277
|
35279
|
35280
|
35303
|
40954
|
40957
|
45345
|
45349
|
45731
|
45732
|
45733
|
45734
|
47283
|
47284
|
47298
|
47299
|
47300
|
47334
|
47336
|
49083
|
56974
|
61059
|
61069
|
62038
|
65313
|
77301
|
78016
|
79959
|
80178
|
80179
|
80180
|
80181
|
80182
|
84400
|
86644
|
86645
|
87152
|
88128
|
95586
|
95716
|
97394
|
99026
|
99027
|
114217
|
114218
|
114219
|
114220
|
114221
|
114222
|
114223
|
114224
|
114225
|
114226
|
119255
|
121181
|
131891
|
131893
|
131894
|
134862
|
144109
|
144144
|
144671
|
144672
|
144673
|
147183
|
149030
|
149031
|
149032
| 149033 |
160566
|
160567
|
160568