Bugzilla – Attachment 167323 Details for
Bug 37006
Highlight items available at my loggedinlibrary
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37006: Highlight items that belong to the logged in branch
Bug-37006-Highlight-items-that-belong-to-the-logge.patch (text/plain), 4.17 KB, created by
David Nind
on 2024-06-01 21:20:34 UTC
(
hide
)
Description:
Bug 37006: Highlight items that belong to the logged in branch
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-06-01 21:20:34 UTC
Size:
4.17 KB
patch
obsolete
>From 1f0cbaa2e6299daedc4a09fc1cc9427bba93b123 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../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 @@ > <ul class="[% items_loop | html %]_items"> > [% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %] > [% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %] >- <li class="result_itype_image [% items_loo.branchcode | html %]"> >+ [% IF Branches.GetLoggedInBranchcode == items_loo.branchcode %] >+ <li class="result_itype_image [% items_loo.branchcode | html %] mybranch"> >+ [% ELSE %] >+ <li class="result_itype_image [% items_loo.branchcode | html %]"> >+ [% END %] > <img src="[% items_loo.imageurl | html %]" title="[% items_loo.description | html %]" alt="[% items_loo.description | html %]" /> > [% ELSE %] >- <li class="[% items_loo.branchcode | html %]"> >+ [% IF Branches.GetLoggedInBranchcode == items_loo.branchcode %] >+ <li class="[% items_loo.branchcode | html %] mybranch"> >+ [% ELSE %] >+ <li class="[% items_loo.branchcode | html %]"> >+ [% END %] > [% END %] > [% IF ( items_loo.branchname ) %] > [% items_loo.branchname | html %] >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37006
:
167320
| 167323 |
167324