From 98c0bce2778197f17ef096c3e48572edb9361f9f 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 (cherry picked from commit 16584258f9a3e3a99065b2aeb3ed4a631b13a04e) Signed-off-by: Bernardo Gonzalez Kriegel (cherry picked from commit 16584258f9a3e3a99065b2aeb3ed4a631b13a04e) --- .../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 06de78aab9..b83b2664d0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -795,18 +795,17 @@ - + - aq + abcq :,;/ - @@ -835,17 +834,6 @@ acdeq - - - - - - bc - - - - - @@ -911,7 +899,7 @@ - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index ca517cd87a..eee9887b88 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -346,7 +346,7 @@ /cgi-bin/koha/catalogue/search.pl?q=au:"" - + . ; @@ -863,18 +863,17 @@ - + - aq + abcq :,;/ - @@ -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 9175a759f9..3d8ffc665f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -905,7 +905,7 @@ - + @@ -931,18 +931,17 @@ . - + - aq + abcq :,;/ - @@ -971,17 +970,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 85f0cd4b6d..bff8027b57 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -453,7 +453,7 @@ - . + . ; @@ -1122,18 +1122,17 @@ - + - aq + abcq :,;/ - @@ -1158,18 +1157,6 @@ - - - - - - bc - - - - - - -- 2.39.5