From 492e0c49c2cabf356ad4bc5f1e974b6e211fb3f8 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 28 Aug 2014 13:32:35 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 12334: Make it easy to hide parts of material type and format information in results With the system preferences DisplayIconsXSLT and DisplayOPACiconsXSLT we control the visibility of the material type, format and audience information in staff and OPAC. Sometimes a library might only want to hide a part of that information - for example, hide audience but keep the material type icon. This patch adds CSS classes to make it easier to style this section of the page and hide parts of the information. To test: - Verify that OPAC and staff result lists for various types of materials still display nicely. - Take a look at the HTML and verify, that label and text are now wrapped into a new span with a results_* class. - Try hiding a part of the information, for example in OpacUserCSS: .results_material_type { display none; } Signed-off-by: Bernardo Gonzalez Kriegel Works as described... but for a missing colon on example CSS .results_material_type { display: none; } No koha-qa errors --- .../prog/en/xslt/MARC21slim2intranetResults.xsl | 27 ++++++++++++++++++---- .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 27 ++++++++++++++++++---- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index ee70d86..4e7b24a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -405,6 +405,7 @@ + Material type: book Set @@ -425,15 +426,19 @@ sound Sound music Music + - ; Format: + + ; Format: + + ; Type of continuing resource: @@ -451,11 +456,12 @@ periodical + + ; Nature of contents: - abstract or summary @@ -523,8 +529,11 @@ conference publication + + + ; Type of computer file: @@ -533,8 +542,10 @@ numeric data + + ; Nature of contents: @@ -583,8 +594,10 @@ speech + + ; Literary form: biography @@ -628,8 +641,10 @@ speech + + ; Type of visual material: @@ -671,8 +686,7 @@ microscope slide - + model @@ -691,10 +705,12 @@ toy + + ; Audience: @@ -721,7 +737,8 @@ Specialized; - + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index e5405b8..0c51ee5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -549,6 +549,7 @@ + Material type: book Set @@ -569,14 +570,18 @@ sound Sound music Music + - ; Format: + + ; Format: + + ; Type of continuing resource: @@ -600,11 +605,12 @@ web site + + ; Nature of contents: - abstract or summary @@ -676,8 +682,11 @@ conference publication + + + ; Type of computer file: @@ -695,8 +704,10 @@ game + + ; Nature of contents: @@ -748,8 +759,10 @@ speech + + ; Literary form: biography @@ -793,8 +806,10 @@ speech + + ; Type of visual material: @@ -836,8 +851,7 @@ microscope slide - + model @@ -856,10 +870,12 @@ toy + + ; Audience: @@ -886,7 +902,8 @@ Specialized; - + + -- 1.9.1