From 1e5097d0fa62037ab9fad093f42629064f97b610 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 28 Aug 2014 13:32:35 +0200 Subject: [PATCH] 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 Signed-off-by: Brendan Gallagher Signed-off-by: Tomas Cohen Arazi --- .../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 605b70f322..585b81a15a 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 6bac2462dd..a5bd5bbf1b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -543,6 +543,7 @@ + Material type: book Set @@ -563,14 +564,18 @@ sound Sound music Music + - ; Format: + + ; Format: + + ; Type of continuing resource: @@ -594,11 +599,12 @@ web site + + ; Nature of contents: - abstract or summary @@ -670,8 +676,11 @@ conference publication + + + ; Type of computer file: @@ -689,8 +698,10 @@ game + + ; Nature of contents: @@ -742,8 +753,10 @@ speech + + ; Literary form: biography @@ -787,8 +800,10 @@ speech + + ; Type of visual material: @@ -830,8 +845,7 @@ microscope slide - + model @@ -850,10 +864,12 @@ toy + + ; Audience: @@ -880,7 +896,8 @@ Specialized; - + + -- 2.11.0