From 484067b228d5cce461c6199b85b2b87cacd3ae40 Mon Sep 17 00:00:00 2001 From: Jenny Way Date: Tue, 16 Jan 2018 20:37:37 +0000 Subject: [PATCH] Bug 18236: MARC21 - Add classes to material type on intranet detail and results pages Test plan: 1. Open a list of results 2. Use fn+f12 to inspect element 3. Without patch it should show that the image class is 'materialtype' 4. With patch there will be an additional class -Books = mt_icon_BK -Kit = mt_icon_MX -Article = mt_icon_AR -Continuous resource = mt_icon_CR -Mixed material = mt_icon_MX -Computer files = mt_icon_CF -Map = mt_icon_MP -Music = mt_icon_MU -Sound = mt_icon_MU -Score = mt_icon_PR -Visual material = mt_icon_VM OR 1. Try using the classes in css to change the style -When viewing the details of a record, the material type img should also have the same changes -Check that the material type classes in the results page is the same as the details page Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer I've squashed the patches to make chanes easier readable. Signed-off-by: Nick Clemens --- .../en/xslt/MARC21slim2intranetDetail.xsl | 2 +- .../en/xslt/MARC21slim2intranetResults.xsl | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 885a8dc48c..2c16a13f34 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -166,7 +166,7 @@ Material type: - /intranet-tmpl/prog/img/famfamfam/.png + materialtype mt_icon_/intranet-tmpl/prog/img/famfamfam/.png diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index 4edc2f2d2c..8dd6b18e84 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -491,20 +491,20 @@ book Set - book Book - serial Continuing resource - article Article + book Book + serial Continuing resource + article Article - book Book - kit Kit - mixed materialsMixed materials - computer file Computer file - map Map - visual material Visual material - score Score - sound Sound - music Music + book Book + kit Kit + mixed materialsMixed materials + computer file Computer file + map Map + visual material Visual material + score Score + sound Sound + music Music