Bugzilla – Attachment 16172 Details for
Bug 9820
Missing space between 100/700 $a and $c (MARC21/XSLT)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 9820: display titles in MARC21 name headings better in XSLT mode
bug-9820-display-titles-in-MARC21-name-headings-be.patch (text/plain), 8.48 KB, created by
Galen Charlton
on 2013-03-15 21:26:50 UTC
(
hide
)
Description:
bug 9820: display titles in MARC21 name headings better in XSLT mode
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-03-15 21:26:50 UTC
Size:
8.48 KB
patch
obsolete
>From 086dde04186084aa093720e51b6b2cd240ff6219 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Fri, 15 Mar 2013 14:17:09 -0700 >Subject: [PATCH] bug 9820: display titles in MARC21 name headings better in XSLT mode > >Prior to this patch, if a 100/700 had a $c, it would be >displayed with no space between the contents of $a and $c in XSLT mode. > >For example, > >100 1#$aSeuss,$cDr. > >would be displayed as > >SeussDr > >The problem was caused by the original version of the stylesheets >drawing a bit too much from the MARC21 to MODS transformation. > >This patch also has the side effect of causing the author's >dates from the $d to appear, which based on the name of the >"nameABCDQ" stylesheet function was the original intent. > >To test: > >[1] In a MARC21 database, turn on XSLT display mode for > staff and OPAC. >[2] Create or identify a bib that has a 100 or 700 field > with both a $a and a $c. >[3] Before applying the patch, verify that the name is > displayed in bib details and search results with the > name and title squashed together. For example, "SeussDr" >[3] After applying the patch, verify that the name displays > in bib details and search results with a space and > intervening punctuation between the name and the title. For > example, "Seuss, Dr." > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 14 +------------- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 15 +-------------- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 14 +------------- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 15 +-------------- > 4 files changed, 4 insertions(+), 54 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 1ce9d00..e5907fa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -835,14 +835,13 @@ > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">aq</xsl:with-param> >+ <xsl:with-param name="codes">abcdq</xsl:with-param> > </xsl:call-template> > </xsl:with-param> > <xsl:with-param name="punctuation"> > <xsl:text>:,;/ </xsl:text> > </xsl:with-param> > </xsl:call-template> >- <xsl:call-template name="termsOfAddress"/> > </xsl:template> > > <xsl:template name="nameABCDN"> >@@ -871,17 +870,6 @@ > <xsl:with-param name="codes">acdeq</xsl:with-param> > </xsl:call-template> > </xsl:template> >- <xsl:template name="termsOfAddress"> >- <xsl:if test="marc:subfield[@code='b' or @code='c']"> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">bc</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >- </xsl:if> >- </xsl:template> > > <xsl:template name="part"> > <xsl:variable name="partNumber"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index ca517cd..9bc0915 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -867,14 +867,13 @@ > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">aq</xsl:with-param> >+ <xsl:with-param name="codes">abcdq</xsl:with-param> > </xsl:call-template> > </xsl:with-param> > <xsl:with-param name="punctuation"> > <xsl:text>:,;/ </xsl:text> > </xsl:with-param> > </xsl:call-template> >- <xsl:call-template name="termsOfAddress"/> > </xsl:template> > > <xsl:template name="nameABCDN"> >@@ -899,18 +898,6 @@ > </xsl:call-template> > </xsl:template> > >- <xsl:template name="termsOfAddress"> >- <xsl:if test="marc:subfield[@code='b' or @code='c']"> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">bc</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >- </xsl:if> >- </xsl:template> >- > <xsl:template name="nameDate"> > <xsl:for-each select="marc:subfield[@code='d']"> > <xsl:call-template name="chopPunctuation"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index 5130e8b..1e86482 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -995,14 +995,13 @@ > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">aq</xsl:with-param> >+ <xsl:with-param name="codes">abcdq</xsl:with-param> > </xsl:call-template> > </xsl:with-param> > <xsl:with-param name="punctuation"> > <xsl:text>:,;/ </xsl:text> > </xsl:with-param> > </xsl:call-template> >- <xsl:call-template name="termsOfAddress"/> > </xsl:template> > > <xsl:template name="nameABCDN"> >@@ -1031,17 +1030,6 @@ > <xsl:with-param name="codes">acdeq</xsl:with-param> > </xsl:call-template> > </xsl:template> >- <xsl:template name="termsOfAddress"> >- <xsl:if test="marc:subfield[@code='b' or @code='c']"> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">bc</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >- </xsl:if> >- </xsl:template> > > <xsl:template name="part"> > <xsl:variable name="partNumber"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 4335e50..812d221 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -1167,14 +1167,13 @@ > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">aq</xsl:with-param> >+ <xsl:with-param name="codes">abcdq</xsl:with-param> > </xsl:call-template> > </xsl:with-param> > <xsl:with-param name="punctuation"> > <xsl:text>:,;/ </xsl:text> > </xsl:with-param> > </xsl:call-template> >- <xsl:call-template name="termsOfAddress"/> > </xsl:template> > > <xsl:template name="nameABCDN"> >@@ -1199,18 +1198,6 @@ > </xsl:call-template> > </xsl:template> > >- <xsl:template name="termsOfAddress"> >- <xsl:if test="marc:subfield[@code='b' or @code='c']"> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">bc</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >- </xsl:if> >- </xsl:template> >- > <xsl:template name="nameDate"> > <xsl:for-each select="marc:subfield[@code='d']"> > <xsl:call-template name="chopPunctuation"> >-- >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 9820
:
16172
|
16822
|
20117
|
20118
|
20591
|
20592