Bugzilla – Attachment 159597 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.56 KB, created by
Owen Leonard
on 2023-12-05 16:43:14 UTC
(
hide
)
Description:
Bug 35444: Add hidden span with information about the loggedinuser categorycode
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-12-05 16:43:14 UTC
Size:
1.56 KB
patch
obsolete
>From 60c526c7db08c43a56b7104eaa822289d8726764 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() ); > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > 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 @@ > <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