From b53f11ba971e2c31fb2b57ce006f8563f42d97fc Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 21 Sep 2011 22:39:51 +0200 Subject: [PATCH] [Signed Off] Bug 6901: Add classes to XSLT detail view in OPAC Content-Type: text/plain; charset="utf-8" This patch adds css classes to the fields in XSLT OPAC view so you can use OpacUserCss system preference for formatting and hiding fields. The css classes are named like the labels with additional underscores where necessary. Example: .publisher { display:none; } .other_title { font-weight: bold; } Note: Patch also moves some hard-coded CSS from Utils into the CSS file (only apples for 880 fields) Signed-off-by: Liz Rea --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 10 +++- .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 54 ++++++++++---------- .../opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 22 ++++---- 3 files changed, 47 insertions(+), 39 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 60afea7..09ed022 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1275,6 +1275,14 @@ padding-left : .4em; padding : 0 0 .5em 0; } +.m880 { + display:block; + text-align:right; + float:right; + width:50%; + padding-left:20px +} + .searchresults .tagstatus { display: block; color: #707070; @@ -2038,4 +2046,4 @@ div.bibmessage { background-color : #ffffb0; border-radius : 5px; padding : 3px; #renewall_link { background-image : url(../../images/checks.png); -} \ No newline at end of file +} diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index d4f763f..404293f 100755 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -187,7 +187,7 @@ - Type: + Type: /opac-tmpl/prog/famfamfam/.pngmaterialTypeLabelmaterialtype @@ -199,7 +199,7 @@ 440,490 av - results_summary + results_summary series Series: se @@ -207,7 +207,7 @@ - Series: + Series: @@ -275,7 +275,7 @@ - Analytics: + Analytics: @@ -292,7 +292,7 @@ - Volumes: + Volumes: @@ -309,7 +309,7 @@ - Set: + Set: @@ -335,13 +335,13 @@ 260 abcg - results_summary + results_summary publisher Publisher: - Publisher: + Publisher: @@ -373,13 +373,13 @@ 250 ab - results_summary + results_summary edition Edition: - Edition: + Edition: @@ -398,13 +398,13 @@ 300 abceg - results_summary + results_summary description Description: - Description: + Description: @@ -419,7 +419,7 @@ - ISBN: + ISBN: @@ -429,7 +429,7 @@ - ISSN: + ISSN: .; @@ -442,13 +442,13 @@ 246 abhfgnp - results_summary + results_summary other_title Other Title: - Other Title: + Other Title: @@ -467,13 +467,13 @@ 130,240 adfklmor - results_summary - Uniform Title: + results_summary uniform_title + Uniform titles: - Uniform titles: + Uniform titles: @@ -495,7 +495,7 @@ - Subject(s): + Subject(s): @@ -536,7 +536,7 @@ - Online Resources: + Online Resources: @@ -654,7 +654,7 @@ - + In: @@ -696,7 +696,7 @@ - + Subject: Review: @@ -714,7 +714,7 @@ - Holdings Note: + Holdings Note: .; @@ -724,7 +724,7 @@ - Other Editions: + Other Editions: @@ -757,7 +757,7 @@ - + Continues: @@ -815,7 +815,7 @@ - + Continued by: diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 4ffc031..27d0891 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -114,18 +114,18 @@ - - - - - - display:block; text-align:right; float:right; width:50%; padding-left:20px - rtl - - - display:block; - + + m880 + rtl + + + + display:block; + + + m880 + -- 1.7.2.5