Bugzilla – Attachment 21438 Details for
Bug 8252
Error in DOM biblio for UNIMARC (no range for fields 1xx)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] Bug 8252: Fixing biblio-zebra-indexdefs.xsl
0005-fixingxmlfile.patch (text/plain), 11.94 KB, created by
Mathieu Saby
on 2013-09-25 08:18:30 UTC
(
hide
)
Description:
[PATCH] Bug 8252: Fixing biblio-zebra-indexdefs.xsl
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-09-25 08:18:30 UTC
Size:
11.94 KB
patch
obsolete
>From 189b00b304c3d547b40d955f603ad96a084b16eb Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >Date: Wed, 25 Sep 2013 09:34:20 +0200 >Subject: [PATCH] Bug 8252: Fixing biblio-zebra-indexdefs.xsl >Content-Type: text/plain; charset="utf-8" > >This patch fixes biblio-zebra-indexdefs.xsl files. >It was generated from biblio-koha-indexdefs.xsm with the new koha-indexdefs-to-zebra.xsl amended by F. Démians's patch. > >To test : >- take a DOM UNIMARC Koha >- apply all the patchs of 8252 bug, including this one >- copy src/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl to your etc/zebradb/marc_defs/unimarc/biblios/ located in your installation directory >- run rebuid_zebra -b -x -r -v >- make advanced searches on staff interface and opac, on coded fields indexes (Audience, Literary genre, Biography, Illustration, Content, Video Types, Serial Type, Periodicity, Regularity, Picture) > >--- > .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 75 ++++++++++---------- > 1 file changed, 38 insertions(+), 37 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 ea7d9e4..78f8850 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -39,6 +39,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:apply-templates mode="index_heading_conditional"/> > <xslo:apply-templates mode="index_match_heading"/> > <xslo:apply-templates mode="index_subject_thesaurus"/> >+ <xslo:apply-templates mode="index_all"/> > </z:record> > </xslo:template> > <xslo:template match="marc:controlfield[@tag='001']"> >@@ -457,63 +458,63 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="tpubdate:s"> >- <xslo:value-of select="substring(., 8, 1)"/> >+ <xslo:value-of select="substring(., 9, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ta:w"> >- <xslo:value-of select="substring(., 17, 1)"/> >+ <xslo:value-of select="substring(., 18, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ta:w"> >- <xslo:value-of select="substring(., 18, 1)"/> >+ <xslo:value-of select="substring(., 19, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ta:w"> >- <xslo:value-of select="substring(., 19, 1)"/> >+ <xslo:value-of select="substring(., 20, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Modified-code:n"> >- <xslo:value-of select="substring(., 21, 1)"/> >+ <xslo:value-of select="substring(., 22, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="char-encoding:n"> >- <xslo:value-of select="substring(., 26, 2)"/> >+ <xslo:value-of select="substring(., 27, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="char-encoding:n"> >- <xslo:value-of select="substring(., 28, 2)"/> >+ <xslo:value-of select="substring(., 29, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="char-encoding:n"> >- <xslo:value-of select="substring(., 30, 2)"/> >+ <xslo:value-of select="substring(., 31, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="script-Title:n"> >- <xslo:value-of select="substring(., 34, 2)"/> >+ <xslo:value-of select="substring(., 35, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> >@@ -540,13 +541,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ff8-18-21:w"> >- <xslo:value-of select="substring(., 0, 1)"/> >- </z:index> >- </xslo:if> >- </xslo:for-each> >- <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('a', @code)"> >- <z:index name="ff8-18-21:w"> > <xslo:value-of select="substring(., 1, 1)"/> > </z:index> > </xslo:if> >@@ -567,7 +561,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="ctype:w"> >+ <z:index name="ff8-18-21:w"> > <xslo:value-of select="substring(., 4, 1)"/> > </z:index> > </xslo:if> >@@ -595,44 +589,51 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="ff8-29:w"> >+ <z:index name="ctype:w"> > <xslo:value-of select="substring(., 8, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="ff8-30:w"> >+ <z:index name="ff8-29:w"> > <xslo:value-of select="substring(., 9, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="ff8-31:w"> >+ <z:index name="ff8-30:w"> > <xslo:value-of select="substring(., 10, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="lf:w"> >+ <z:index name="ff8-31:w"> > <xslo:value-of select="substring(., 11, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="bio:w"> >+ <z:index name="lf:w"> > <xslo:value-of select="substring(., 12, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="bio:w"> >+ <xslo:value-of select="substring(., 13, 1)"/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='106']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="ff8-23:w iff8-23:p"> >+ <z:index name="ff8-23:w ff8-23:p"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -642,63 +643,63 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ff8-21:w"> >- <xslo:value-of select="substring(., 0, 1)"/> >+ <xslo:value-of select="substring(., 1, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ff8-18:w"> >- <xslo:value-of select="substring(., 1, 1)"/> >+ <xslo:value-of select="substring(., 2, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ff8-19:w"> >- <xslo:value-of select="substring(., 2, 1)"/> >+ <xslo:value-of select="substring(., 3, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ctype:w"> >- <xslo:value-of select="substring(., 3, 1)"/> >+ <xslo:value-of select="substring(., 4, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ctype:w"> >- <xslo:value-of select="substring(., 4, 1)"/> >+ <xslo:value-of select="substring(., 5, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ff8-29:w"> >- <xslo:value-of select="substring(., 7, 1)"/> >+ <xslo:value-of select="substring(., 8, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Title-page-availability:w"> >- <xslo:value-of select="substring(., 8, 1)"/> >+ <xslo:value-of select="substring(., 9, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="ff8-31:w"> >- <xslo:value-of select="substring(., 9, 1)"/> >+ <xslo:value-of select="substring(., 10, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Cumulative-index-availability:w"> >- <xslo:value-of select="substring(., 10, 1)"/> >+ <xslo:value-of select="substring(., 11, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> >@@ -707,7 +708,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Video-mt:w"> >- <xslo:value-of select="substring(., 0, 1)"/> >+ <xslo:value-of select="substring(., 1, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> >@@ -716,21 +717,21 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Graphics-type:w"> >- <xslo:value-of select="substring(., 0, 1)"/> >+ <xslo:value-of select="substring(., 1, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Graphics-support:w"> >- <xslo:value-of select="substring(., 1, 1)"/> >+ <xslo:value-of select="substring(., 2, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> > <z:index name="Graphics-support:w"> >- <xslo:value-of select="substring(., 2, 1)"/> >+ <xslo:value-of select="substring(., 3, 1)"/> > </z:index> > </xslo:if> > </xslo:for-each> >@@ -3090,7 +3091,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:value-of select="normalize-space($raw_heading)"/> > </z:index> > </xslo:template> >- <xslo:template match="*"> >+ <xslo:template mode="index_all" match="text()"> > <z:index name="Any:w Any:p"> > <xslo:value-of select="."/> > </z:index> >-- >1.7.9.5 >
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 8252
:
15007
|
15008
|
16945
|
16946
|
17970
|
17971
|
17972
|
21057
|
21058
|
21059
|
21430
|
21437
|
21438
|
21439
|
21452
|
21454
|
21945
|
21946
|
21947
|
21948
|
21949
|
22672