Bugzilla – Attachment 93252 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.30 KB, created by
Katrin Fischer
on 2019-09-30 13:28:05 UTC
(
hide
)
Description:
Bug 23648: The logged in link (class "loggedinusername") needs data-patroncategory
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-09-30 13:28:05 UTC
Size:
2.30 KB
patch
obsolete
>From 35af6aa8528a9d0de5d1d6fd54da9caf90adb4d2 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> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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