From 9c3002df9cd772b8bf32b78c3344564e6ce94091 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sat, 4 Aug 2012 11:36:35 -0400 Subject: [PATCH] [3.8.x] Bug 6617: Improve MARC21 enhanced contents display (intranet) Content-Type: text/plain; charset="UTF-8" The display of "Enhanced" 505 (contents) fields in the MARC21 XSLT is very poor, resulting in large, unreadable blocks of text, and -- for some series -- so much unnecessary duplication in the Notes tab that important information is entirely obscured. This patch reformats "enhanced" contents fields (MARC21 505 fields with $t and $r) so as to be more readable by breaking up entries on separate lines and making titles bold (to make them stand out more). This patch does not address duplication of information in the Notes tab, per discussion on the #koha IRC channel. To test: 1) View record with enhanced 505 field before applying patch. Observe it is very unfriendly. 2) Apply patch. 3) View same record, note that display is much improved. Signed-off-by: Katrin Fischer Display in staff and OPAC is consistent and improved after applying the patch. Signed-off-by: Jared Camins-Esakov --- .../intranet-tmpl/prog/en/css/staff-global.css | 27 +++++++++ .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 56 ++++++++++--------- .../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 20 +++++++ 3 files changed, 76 insertions(+), 27 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 a2ca047..334f0ad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2249,3 +2249,30 @@ div#acqui_order_supplierlist > div.supplier > div.baskets { .authref .label { font-style: italic; } + +.contents { + width: 75%; +} + +.contentblock { + position: relative; + margin-left: 2em; +} + +.contents .t:first-child:before { + content: "→ "; +} + +.contents .t:before { + content: "\A→ "; + white-space: pre; +} + +.contents .t { + font-weight: bold; + display: inline; +} + +.contents .r { + display: inline; +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index c7fb89c..d0a15b0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -542,33 +542,35 @@ - - - - - Contents: - - - Incomplete contents: - - - Partial contents: - - - - - - tru - - - - - au - - - - - +
+ + + Contents: + + + Incomplete contents: + + + Partial contents: + + + +
+ + + + tru + + + + + atru + + + +
+
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 8c0618b..151fc7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -40,6 +40,26 @@ + + + + + + + + + + + + + + + + + + + + -- 1.7.2.5