From f456e09291368c9704619d14635c20403bcbce13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Fri, 6 May 2011 08:43:34 +0200 Subject: [PATCH] XSL UNIMARC Improvments - Exclude 'marc' & 'item' prefix from UNIMARC util XSL to slim down result - Add missing NSB/NSE characters striping - 200 fields on result/detail page: show all subfields in order, link to detail page only on $a - 4xx display, more fields and more subfields, respects subfields order which matter - Add missing fields: 205, 500 - Add missing MARC21 syspref: - DisplayOPACiconsXSLT, not implemtable in UNIMARC - OPACURLOpenInNewWindow - URLLinkText - ShowISBD Sidenote: this should have been done by people having introduced those syspref into MARC21 XSL. --- .../prog/en/xslt/UNIMARCslim2OPACDetail.xsl | 133 ++++++-- .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 90 +++-- .../opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl | 359 ++++++++++---------- 3 files changed, 327 insertions(+), 255 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl index 2832b6b..1faa860 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl @@ -15,45 +15,89 @@ - - + + + +

- - - - - : - - - - - - [ - - ] - - - / - - - - ; - - + + + + + + + + + [ + + ] + + + = + + + + : + + + + / + + + + ; + + + + , + + + +

- +
+ + Normal View + + + MARC View + + + Expanded MARC View + + + + Card View (ISBD) + + +
+ + + 454 + Translation of + + + + 461 + Set Level + + + + 464 + Piece-Analytic Level + 700 @@ -85,9 +129,19 @@ Corporate Author (Secondary) + + 500 + Uniform Title + + + + 503 + Uniform Conventional Heading + + - - Language: + + Language: @@ -133,6 +187,11 @@ + + 205 + Edition Statement + + @@ -350,24 +409,30 @@ - Online Resources: + Online Resources: - + + _blank + - - 100 - y3z - Click here to access online + + + + + + Click here to access online + + diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl index 831724c..ada7632 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl @@ -18,7 +18,6 @@
- @@ -31,42 +30,65 @@ - - -
- - - - /cgi-bin/koha/opac-detail.pl?biblionumber= - - - - : - + + + + + + + + /cgi-bin/koha/opac-detail.pl?biblionumber= + + + + + + + [ - - - - [ - - ] - - - / - - - - ; - - - -
+ ] + + + = + + + + : + + + + / + + + + ; + + + + , + + + +
- + + 454 + Translation of + + + + 461 + Set Level + + + + 464 + Piece-Analytic Level + @@ -77,7 +99,6 @@ - @@ -85,9 +106,6 @@ - - 100 - y3z diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index 8eec0fd..18db89a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -2,7 +2,10 @@ ]> - + @@ -23,37 +26,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rtl + + + + + + + + + + : + + + + + + + + + + + [ + + ] + + + = + + + + : + + + + / + + + + ; + + + + + , + + + + + + + + + + + + + + + + + + + + : + + + + + , + + + + + + + + + + + - Publication: + Publication: - - - , - - - - : - - - - , - - - - - - - - : - - - - , - - + + + + + : + + + + + + , + + + + + @@ -62,7 +186,7 @@ - + Description: @@ -82,130 +206,6 @@ - - - - Linked with: - - - - - - : - - - / - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - rtl - - - - - - - - - : - - - - : - - - - - - - - - - / - - - - , - - - - , - - - - , - - - - , - - - - , - - - - - - - - @@ -240,7 +240,6 @@ - @@ -253,42 +252,32 @@ - /cgi-bin/koha/opac-search.pl?q=an: + + /cgi-bin/koha/opac-search.pl?q=an: + + - /cgi-bin/koha/opac-search.pl?q=au: + + /cgi-bin/koha/opac-search.pl?q=au: + + + + - - - - - , - - - - , - - - - - - - - - ( - - ) - - - - - - - - - - + + + + + + + + + + , + + -- 1.7.4