Bug 23648: The logged in link (class "loggedinusername") needs data-patroncategory
authorOwen Leonard <oleonard@myacpl.org>
Wed, 25 Sep 2019 11:58:38 +0000 (11:58 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 1 Oct 2019 06:49:43 +0000 (07:49 +0100)
commit15b5767aaed52364f9c32afb1df2272f00fca75b
treea4c6e7d7574cc8b3cbe1aadd930e921644fe74dd
parent2cfc7c4c284aa40f62fe7992a9e2eca51d1f95b4
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc