From b615ea932b53149cd9f3fc769542a3a854080df1 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Thu, 13 Jun 2013 20:22:51 +0200 Subject: [PATCH] Bug 10218 : Followup for UNIMARC Follow-up for UNIMARC XSLT Display This patch adds class to span markup in list and detail display. XSLT are not build in the same way in MARC21 and UNIMARC, so I had to add a parameter "spanclass" to 3 templates called in UNIMARC : tag_title, tag_7xx, tag_comma To test, apply the patch on a Koha instance with UNIMARC records, and - activate sysprefs OPACXSLTDetailsDisplay and OPACXSLTDetailsDisplay - make a search on the OPAC. In the results, check the spans with "results_summary" class have also more a precise class. Ex : span class="results_summary publication" - view some records in detailed view. If possible, a record with a series, a record with some subjects, a record with different authors, a record with a link in 856. Check the spans with "results_summary" have also a more precise class. --- .../prog/en/xslt/UNIMARCslim2OPACDetail.xsl | 43 +++++++++++++------- .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 5 ++- .../opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl | 18 ++++---- 3 files changed, 43 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl index cb365d9..700b62f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl @@ -69,61 +69,72 @@ 454 Translation of + original_title 461 Set Level + set_level 464 Piece-Analytic Level + piece_analytic_level 700 Main Author + main_author 710 Corporate Author (Main) + corporate_main_author 701 Coauthor + coauthor 702 Secondary Author + secondary_author 711 Corporate Author (Coauthor) + corporate_coauthor 712 Corporate Author (Secondary) + corporate_secondary_author 500 Uniform Title + uniform_title 503 Uniform Conventional Heading + uniform_conventional_heading - - Language: + + Language: @@ -152,7 +163,7 @@ - + Country: @@ -172,6 +183,7 @@ 205 Edition Statement + edition @@ -179,7 +191,7 @@ - ISBN: + ISBN: @@ -196,7 +208,7 @@ - + ISSN: @@ -215,10 +227,11 @@ 225 Series + series - + Dewey: @@ -238,7 +251,7 @@ - + Classification: @@ -256,7 +269,7 @@ - + Contents note: @@ -273,7 +286,7 @@ - + Abstract: @@ -290,7 +303,7 @@ - + Provenance note: @@ -299,7 +312,7 @@ - + Bibliography: @@ -309,7 +322,7 @@ - + Thesis: @@ -319,7 +332,7 @@ - + Audience: @@ -329,7 +342,7 @@ - + SUDOC serial history: : @@ -390,7 +403,7 @@ - + Online Resources: diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl index a086d31..c4ae3c1 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl @@ -79,23 +79,26 @@ 454 Translation of + original_title 461 Set Level + set_level 464 Piece-Analytic Level + piece_analytic_level - + Availability: diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index 91d9b3d..821f02f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -83,8 +83,9 @@ + - + : @@ -137,8 +138,9 @@ + - + : @@ -158,8 +160,8 @@ - - Publication: + + Publication: @@ -189,7 +191,7 @@ - + Description: @@ -293,8 +295,9 @@ + - + : @@ -312,8 +315,9 @@ + - + : -- 1.7.9.5