From: Katrin Fischer Date: Wed, 21 Sep 2011 20:39:51 +0000 (+0200) Subject: Bug 6901: Add classes to XSLT detail view in OPAC X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=5ecbdcab931117733f68f2ae4fc8c3aeda8653a0;p=koha.git Bug 6901: Add classes to XSLT detail view in OPAC 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 Signed-off-by: Chris Cormack --- diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 60afea755b..09ed022150 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 d4f763f8b2..404293fbe6 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 4ffc031940..27d08913a0 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 +