Bugzilla – Attachment 93158 Details for
Bug 23648
The logged in link (class "loggedinusername") needs data-patroncategory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23648: The logged in link (class "loggedinusername") needs data-patroncategory
Bug-23648-The-logged-in-link-class-loggedinusernam.patch (text/plain), 2.24 KB, created by
ByWater Sandboxes
on 2019-09-25 15:57:19 UTC
(
hide
)
Description:
Bug 23648: The logged in link (class "loggedinusername") needs data-patroncategory
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2019-09-25 15:57:19 UTC
Size:
2.24 KB
patch
obsolete
>From f2f6d5835447fdcff58a5beb2317e32d0d96de3c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 25 Sep 2019 11:58:38 +0000 >Subject: [PATCH] Bug 23648: The logged in link (class "loggedinusername") > needs data-patroncategory > >This patch adds a "data-categorycode" attribte to the logged in link in >the global header of the OPAC. This will allow access to the patron >category for use in customization and whatnot. > >To test, apply the patch and log in to the OPAC. Use the browser's DOM >inspector tool to examine the logged-in user's name in the header. It >should have a "data-categorycode" attribute with the correct value. > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 184a60527d..a1ca8fc568 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -100,7 +100,7 @@ > [% END %] > [% END %] > [% IF ( loggedinusername ) %] >- <li><p class="members navbar-text">Welcome, <a class="login-link" href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername" data-borrowernumber="[% logged_in_user.borrowernumber | html %]" data-branchcode="[% logged_in_user.branchcode | html %]" >[% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span></a></p></li> >+ <li><p class="members navbar-text">Welcome, <a class="login-link" href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername" data-borrowernumber="[% logged_in_user.borrowernumber | html %]" data-branchcode="[% logged_in_user.branchcode | html %]" data-categorycode="[% logged_in_user.categorycode | html %]">[% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span></a></p></li> > <li class="divider-vertical"></li> > [% END %] > [% END %] >-- >2.11.0
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 23648
:
93152
|
93158
|
93252