From 77d57d06acabe80f83ec79fc5c725b7faeedfb55 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 21 Sep 2011 21:17:16 +0200 Subject: [PATCH] Bug 6901: Add classes to XSLT detail view in STAFF Content-Type: text/plain; charset="utf-8" This patch adds css classes to the fields in XSLT intranet views. Use OpacUserCss and IntranetUserCss system preferences for altering the styling of 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: This patch also fixes the display of additional authors in field 880 (original scripts like Hebrew). This small additional problem was found as a side effect of testing, where the existence of an author in 880 would break the XSLT. Also moves some CSS from a style attribute into the CSS file for 880 fields. Signed-off-by: Liz Rea -- minor commit message edits (requested by KF) --- .../intranet-tmpl/prog/en/css/staff-global.css | 8 +++ .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 54 ++++++++++---------- .../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 25 +++++---- 3 files changed, 48 insertions(+), 39 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 36cef19..2763dd2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1981,6 +1981,14 @@ fieldset.rows+h3 {clear:both;padding-top:.5em;} padding-bottom: 10px; } +.m880 { + display:block; + text-align:right; + float:right; + width:50%; + padding-left:20px +} + #advanced-search fieldset { border : 1px solid #EEE; -moz-border-radius : 3px; diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 4af47bd..112a809 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -15,8 +15,7 @@ - - + ,complete-subfield @@ -119,6 +118,7 @@ 100,110,111,700,710,711 abc au + @@ -129,7 +129,7 @@ - Type: + Type: /intranet-tmpl/prog/img/famfamfam/.png @@ -141,7 +141,7 @@ 440,490 av - results_summary + results_summary series Series: se @@ -149,7 +149,7 @@ - Series: + Series: @@ -218,7 +218,7 @@ - Analytics: + Analytics: @@ -235,7 +235,7 @@ - Volumes: + Volumes: @@ -252,7 +252,7 @@ - Set: + Set: @@ -278,13 +278,13 @@ 260 abcg - results_summary + results_summary publisher Publisher: - Publisher: + Publisher: @@ -311,13 +311,13 @@ 250 ab - results_summary + results_summary edition Edition: - Edition: + Edition: @@ -336,13 +336,13 @@ 300 abceg - results_summary + results_summary description Description: - Description: + Description: @@ -357,7 +357,7 @@ - ISBN: + ISBN: @@ -367,7 +367,7 @@ - ISSN: + ISSN: .; @@ -380,13 +380,13 @@ 246 abhfgnp - results_summary + results_summary other_title Other Title: - Other Title: + Other Title: @@ -405,13 +405,13 @@ 130,240 adfklmor - results_summary + results_summary uniform_title Uniform Title: - Uniform titles: + Uniform titles: @@ -433,7 +433,7 @@ - Subject(s): + Subject(s): @@ -473,7 +473,7 @@ - Online Resources: + Online Resources: @@ -508,7 +508,7 @@ - + Contents: @@ -540,7 +540,7 @@ - + In: @@ -583,7 +583,7 @@ - Other Editions: + Other Editions: @@ -616,7 +616,7 @@ - + Continues: @@ -673,7 +673,7 @@ - + Continued by: diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 05a1d83..cfc434e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -101,7 +101,7 @@ - displays every field on a separate line (to switch between rtl and ltr) * Pitfalls: (!) output might be empty - --> + --> @@ -109,23 +109,24 @@ + - - - - - - display:block; text-align:right; float:right; width:50%; padding-left:20px - rtl - - - display:block; - + + m880 + rtl + + + + display:block; + + + m880 + -- 1.7.2.5