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 <oleonard@myacpl.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4a40327452)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Lucas Gass 2023-11-29 23:19:12 +00:00 committed by Fridolin Somers
parent aeae2771ba
commit f9fe29f195
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@
<span id="logged-in-info-full">
[% SET is_superlibrarian = CAN_user_superlibrarian ? 'is_superlibrarian' : '' %]
<span class="loggedinusername [% is_superlibrarian | html %]">[% logged_in_user.userid | html %]</span>
<span class="loggedincategorycode content_hidden">[% logged_in_user.categorycode | html %]</span>
[% IF ( AutoLocation ) %]
<brand>
[% Branches.GetLoggedInBranchname | html %]