From f9fe29f1955dbe71f7fbd1ec5f92b5b470b7fb1e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 29 Nov 2023 23:19:12 +0000 Subject: [PATCH] Bug 35444: Add hidden span with information about the loggedinuser categorycode To test: 1. APPLY PATCH 2. Log into the staff interface and use the browser's dev tools to look for the HTML class 'loggedincategorycode'. It should match the current logged in user's categorycode. 3. You could also use a console.log like so: console.log( $('.loggedincategorycode').text() ); Signed-off-by: Owen Leonard Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit 4a4032745293af7a3fec97c44c61b11c94e0edf7) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 996d571c4b..b08087fccf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -93,7 +93,7 @@ [% SET is_superlibrarian = CAN_user_superlibrarian ? 'is_superlibrarian' : '' %] [% logged_in_user.userid | html %] - + [% logged_in_user.categorycode | html %] [% IF ( AutoLocation ) %] [% Branches.GetLoggedInBranchname | html %] -- 2.39.5