From d1ea23e9046c378e90b6e35e403840cf81aba6a0 Mon Sep 17 00:00:00 2001 From: Winona Salesky Date: Wed, 16 Sep 2015 12:37:54 -0400 Subject: [PATCH] Bug 14734: Enhance 264 display in OPAC and Staff XSLT. Makes 264 repeatable, prefer 264 over 260. If 264/ind1=3 is present in the record the xslt uses ind1 to determine latest 264, if no ind1=3 then all 264 fields are displayed. Test Plan: 1) Apply this patch 2) Ensure you are using the default XSLT setting for the staff and opac record details 3) Find or create a record with multiple MARC tags 264 4) Perform a search that would show the record in the search results. 5) Review results for correct 264 display. 6) Click title to review record details. Signed-off-by: Hector Castro Works as advertised. 260 not showed when 264 exists, tested with multiple records. If ind1=3 is present shows the current/latest data Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2intranetDetail.xsl | 66 +++++++-------- .../en/xslt/MARC21slim2intranetResults.xsl | 62 +++++++------- .../prog/en/xslt/MARC21slimUtils.xsl | 79 ++++++++---------- .../en/xslt/MARC21slim2OPACDetail.xsl | 82 +++++++++---------- .../en/xslt/MARC21slim2OPACResults.xsl | 58 +++++++------ .../bootstrap/en/xslt/MARC21slimUtils.xsl | 82 ++++++++----------- 6 files changed, 193 insertions(+), 236 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index bda73df2c9..8ad6047bf9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -313,43 +313,37 @@ - - Publisher: - - - - a - - - - - - - b - - - - - - - - cg - - - - ; - - - ; + - - - - - - - - + + + Publisher: + + + + a + + + + + + + b + + + + + + + + cg + + + + ; + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index e913ce5e5c..51af8ddbd4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -774,41 +774,35 @@ - - Publisher: - - - - a - - - - - - b - - - - - - - cg - - - - ; - - - ; - - - - - - + - - + + + Publisher: + + + + a + + + + + + b + + + + + + + cg + + + + ; + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 4e799de713..38d1acd6ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -1,6 +1,6 @@ ]> - + @@ -217,60 +217,49 @@ Publisher-latest or Publisher or 'Other'-latest or 'Other' The preferred tag is saved in the fav variable and passed to a helper named-template --> + - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - + + + + + - - - Producer: - - - Publisher: - - - Distributor: - - - Manufacturer: - - - - - - - + + + + Producer: + + + Publisher: + + + Distributor: + + + Manufacturer: + + + Copyright Date: + + + + abc + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index a92ef6af08..466b41f89e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -337,51 +337,45 @@ - - Publisher: - - - - - - a - - - - - - - - b - - - - - - - - - - - cg - - - - - - ; - - - ; - - - - - - + - - + + + Publisher: + + + + + + a + + + + + + + + b + + + + + + + + + + + cg + + + + + + ; + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 4623dff3fc..ddeb1ca80f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -924,39 +924,37 @@ + + + - Publisher: - - - - a - - - - - - b + Publisher: + + + + a + + + + + + b + + + + + + + cg + + + ; + + + ; + - - - - - cg - - - - ; - - - ; - - - - - - - diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl index 4f7efeddbe..bc68f37b38 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl @@ -1,6 +1,6 @@ ]> - + @@ -209,68 +209,56 @@ - + - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - + + + + + - - - Producer: - - - Publisher: - - - Distributor: - - - Manufacturer: - - - - - - - + + + + Producer: + + + Publisher: + + + Distributor: + + + Manufacturer: + + + Copyright Date: + + + + abc + + -