From bd57161afadaa92fd88702ec88e0719053df6e1d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 31 May 2024 22:04:57 +0000 Subject: [PATCH] Bug 37006: Highlight items that belong to the logged in branch To test: 1. Apply patch and regenerate CSS. (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface) 2. Do a catalog search. 3. Notice that items from the logged in branch are highlighted in beige. 4. Flip the noItemTypeImages system preference and make sure this still works. --- .../intranet-tmpl/prog/css/src/staff-global.scss | 4 ++++ .../prog/en/modules/catalogue/results.tt | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index f63558b8fb..bf5aa32499 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1972,6 +1972,10 @@ li { td { ul { + .mybranch { + background: beige; + border: 1px solid rgb(0, 0, 0); + } li { clear: left; color: #000; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 19e987ff7c..064dd7cf63 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -5,6 +5,7 @@ [% USE Biblio %] [% USE KohaDates %] [% USE KohaPlugins %] +[% USE Branches %] [% USE To %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] @@ -631,10 +632,18 @@