From 086dde04186084aa093720e51b6b2cd240ff6219 Mon Sep 17 00:00:00 2001 From: Galen Charlton 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 --- .../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 @@ - aq + abcdq :,;/ - @@ -871,17 +870,6 @@ acdeq - - - - - - bc - - - - - 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 @@ - aq + abcdq :,;/ - @@ -899,18 +898,6 @@ - - - - - - bc - - - - - - 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 @@ - aq + abcdq :,;/ - @@ -1031,17 +1030,6 @@ acdeq - - - - - - bc - - - - - 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 @@ - aq + abcdq :,;/ - @@ -1199,18 +1198,6 @@ - - - - - - bc - - - - - - -- 1.7.2.5