Bugzilla – Attachment 13086 Details for
Bug 8665
DOM indexing fails to index some bib records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8665 follow-up: add missing line to XSLT
SIGNED-OFF-Bug-8665-follow-up-add-missing-line-to-.patch (text/plain), 2.48 KB, created by
Elliott Davis
on 2012-10-26 19:14:26 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8665 follow-up: add missing line to XSLT
Filename:
MIME Type:
Creator:
Elliott Davis
Created:
2012-10-26 19:14:26 UTC
Size:
2.48 KB
patch
obsolete
>From 4182c960e5f5bbeecbb23f0ca622482841b3499c Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Thu, 25 Oct 2012 14:00:42 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 8665 follow-up: add missing line to XSLT > >The DOM transformer was missing a line from a previous development, >resulting in the MARC21 authorities DOM indexing stylesheet being >regenerated with a missing line. This patch readds the missing line >to the transformer, and provides the corrected authority-zebra-indexdefs. > >Signed-off-by: Elliott Davis <elliott@bywatersolutions.com> >--- > .../authorities/authority-zebra-indexdefs.xsl | 2 +- > etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 1 + > 2 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >index 5c80c2c..02509b3 100644 >--- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >@@ -1122,7 +1122,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 mode="index_heading_conditional"> >+ <xslo:template mode="index_heading_conditional" match="marc:datafield[@tag='450']"> > <xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)"> > <z:index name="Previous-heading-see-from:p"> > <xslo:variable name="raw_heading"> >diff --git a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl >index 47c47a7..42b334f 100644 >--- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl >+++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl >@@ -288,6 +288,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xsl:template name="handle-index-heading-conditional"> > <xsl:for-each select="//kohaidx:index_heading_conditional[generate-id() = generate-id(key('index_heading_conditional_tag', @tag)[1])]"> > <xslo:template mode="index_heading_conditional"> >+ <xsl:attribute name="match">marc:datafield[@tag='<xsl:value-of select="@tag"/>']</xsl:attribute> > <xslo:if> > <xsl:attribute name="test"><xsl:value-of select="@test"/></xsl:attribute> > <xsl:for-each select="key('index_heading_conditional_tag', @tag)"> >-- >1.7.2.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 8665
:
12684
|
12734
|
12877
|
13058
|
13085
| 13086