From 0444a400389f493168806b56e8a6f11e70cbc396 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 --- 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 b67f82c838..61792e2bd1 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.34.1