From 34a5a6a5d66cbe4a52b4000bed0ca6673263b361 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() ); --- 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 b67f82c8386..61792e2bd1c 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.30.2