From 16584258f9a3e3a99065b2aeb3ed4a631b13a04e 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. 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 Signed-off-by: Jared Camins-Esakov Signed-off-by: Katrin Fischer Passes test plan, works nicely. Signed-off-by: Galen Charlton (cherry picked from commit 75959da681ae5f78e70dfd7205a22d16fd28ae38) Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2intranetDetail.xsl | 18 +++--------------- .../en/xslt/MARC21slim2intranetResults.xsl | 19 +++---------------- .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 18 +++--------------- .../prog/en/xslt/MARC21slim2OPACResults.xsl | 19 +++---------------- 4 files changed, 12 insertions(+), 62 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index a47e6e8074..caa0ab56af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -834,18 +834,17 @@ - + - aq + abcq :,;/ - @@ -874,17 +873,6 @@ acdeq - - - - - - bc - - - - - @@ -950,7 +938,7 @@ - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index 181761a37c..cbc505d121 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -347,7 +347,7 @@ /cgi-bin/koha/catalogue/search.pl?q=au:"" - + . ; @@ -867,18 +867,17 @@ - + - aq + abcq :,;/ - @@ -903,18 +902,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 ad74c53661..fd0eb68605 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -966,7 +966,7 @@ - + @@ -992,18 +992,17 @@ . - + - aq + abcq :,;/ - @@ -1032,17 +1031,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 20fdabf935..462c250021 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -455,7 +455,7 @@ - . + . ; @@ -1180,18 +1180,17 @@ - + - aq + abcq :,;/ - @@ -1216,18 +1215,6 @@ - - - - - - bc - - - - - - -- 2.39.5