From 68727e747dc59531e4d5c94bde6d1ae33508ad34 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 29 Jul 2024 18:28:00 +0000 Subject: [PATCH] Bug 37515: Add common class to all places where an item type image is shown This patch adds an "itemtype-image" class to templates in all places where we show itemtype images. This patch affects both the OPAC and the staff client. To test you should have icons associated with multiple item types. - Apply the patch and go to Administration -> System preferences - Search for "itemtype" - noItemTypeImages should be set to "Show" - OpacNoItemTypeImages should be set to "Show" - BiblioItemtypeInfo should be set to "Show" - Search for "usercss" - Add an obvious style rule for item type images to IntranetUserCSS and OPACUserCSS, e.g. .itemtype-image { border: 3px solid orange; } - In the staff interface, check the following pages to confirm that your custom style is visible: - Administration -> Item types -> Edit - Administration -> Authorized values -> CCODE -> Edit a CCODE - Advanced search - Search results - Bibliographic details - Place hold - Lists -> List contents view (must set the item-level_itypes preference to "bibliographic record") - In the OPAC: - Advanced search - Search results - Bibliographic details - Place hold - Log in as a user with checkouts -> - View the checkouts tab on the patron summary page - Lists -> List contents view (must set the item-level_itypes preference to "bibliographic record") Sponsored-by: Athens County Public Libraries Signed-off-by: Roman Dolny --- .../intranet-tmpl/prog/en/includes/admin-icon-selection.inc | 2 +- .../includes/html_helpers/tables/items/catalogue_detail.inc | 2 +- .../prog/en/modules/admin/authorised_values.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 4 ++-- .../intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 4 ++-- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++-- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++--- 15 files changed, 23 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc index 826ca3ea95..905b5b5496 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-icon-selection.inc @@ -48,7 +48,7 @@ [% FOREACH image IN imageset.images %]