Bugzilla – Attachment 159380 Details for
Bug 35444
Add easy way to retrieve a logged in user's categorycode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35444: Add hidden span with information about the loggedinuser categorycode
Bug-35444-Add-hidden-span-with-information-about-t.patch (text/plain), 1.50 KB, created by
Lucas Gass (lukeg)
on 2023-11-29 23:22:26 UTC
(
hide
)
Description:
Bug 35444: Add hidden span with information about the loggedinuser categorycode
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-11-29 23:22:26 UTC
Size:
1.50 KB
patch
obsolete
>From 34a5a6a5d66cbe4a52b4000bed0ca6673263b361 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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 @@ > <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 %] >-- >2.30.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 35444
:
159380
|
159597
|
161454