Bugzilla – Attachment 113004 Details for
Bug 26847
Make borrower category code accessible in all pages of the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26847: Add data-categorycode to opac pages
Bug-26847-Add-data-categorycode-to-opac-pages.patch (text/plain), 1.94 KB, created by
Martin Renvoize (ashimema)
on 2020-11-04 15:00:37 UTC
(
hide
)
Description:
Bug 26847: Add data-categorycode to opac pages
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-11-04 15:00:37 UTC
Size:
1.94 KB
patch
obsolete
>From 46ada955288611b4134bb4db8f77f1d16100ea22 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 4 Nov 2020 14:53:57 +0000 >Subject: [PATCH] Bug 26847: Add data-categorycode to opac pages > >This patch adds the data-categorycode attribute to the loggedinuser span >for all pages in the opac. > >Test plan >1/ Apply first patch, varify unit test fails. >2/ Apply second patch, varify unit test now passes. >3/ Navigate to opac and login >4/ Varify that data-categorycode is present in the loggedinuser span in >the client. >--- > 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 e3895a1e76..85cbb9a4b0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -109,7 +109,7 @@ > <div aria-labelledby="user-menu" role="menu" class="dropdown-menu dropdown-menu-right"> > <div id="loggedinuser-menu"> > <p> >- <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 %]" >Your account</span></a> >+ <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 %]">Your account</span></a> > </p> > [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %] > <p> >-- >2.20.1
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 26847
:
113003
|
113004
|
113012
|
113013
|
114726
|
114727
|
114872