From fd84f8c2bcdc01fc753c6b281f13e387586199cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Fri, 6 May 2011 08:43:34 +0200 Subject: [PATCH] Bug 6314 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 - Improve RAMEAU authorities linkings to subdivisions (pure XSLT) - 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. Suite http://bugs.koha-community.org/show_bug.cgi?id=6314 Signed-off-by: Alex Arnaud Signed-off-by: Paul Poulain --- .../prog/en/xslt/UNIMARCslim2OPACDetail.xsl | 133 +++-- .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 90 ++-- .../prog/en/xslt/UNIMARCslimUtils.xsl | 475 ++++++++++-------- 3 files changed, 415 insertions(+), 283 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl index 61054ea3c7..97e9aca8f0 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 831724ce01..e7ff9da4a6 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 8eec0fd1cd..146b88c380 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,219 +206,144 @@ - - - - Linked with: - - - - - - : - - - / - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - rtl - - - - - - - - - : - - - - : - - - - - - - - - - / - - - - , - - - - , - - - - , - - - - , - - - - , - + + + + + + + + + + + + , + + + + + + + + + + 1000 + + + + + + + + , + + + + + + /cgi-bin/koha/opac-search.pl?q=an: + + + + + + + -- + - + + + + + /cgi-bin/koha/opac-search.pl?q=su: + + + + + + abcdfijkmnpvxyz + ijknpxyz + -- + + + + + + + + |
- - : - - - - - /cgi-bin/koha/opac-search.pl?q=an: - - - /cgi-bin/koha/opac-search.pl?q=su: - - - - - - abcdjpvxyz - jpxyz - -- - - + + + : + + + + - - - | - - + + - - : - - - + + + : + + + - /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: + + + + - - - - - , - - - - , - - - - - - - - - ( - - ) - - - - - - - - - - + + + + + + + + + + , + + - - - ; - - + + + ; + + + + -- 2.39.5