[Koha-bugs] [Bug 20921] Expose borrowernumber and branch when user is logged in to OPAC
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 22 23:00:09 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20921
Maryse Simard <maryse.simard at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #76200|0 |1
is obsolete| |
--- Comment #8 from Maryse Simard <maryse.simard at inlibro.com> ---
Created attachment 76310
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76310&action=edit
Bug 20921: Add borrowernumber and branchcode as html attributes
To test:
1 - Apply patch
2 - Visit the opac
3 - Sign in
4 - You should not see any difference
5 - Inspect the element 'Welcome, {username}'
6 - Note the attributes for borrowernumber and branchcode
7 - Add to OPACUserJS:
$(document).ready(function(){
console.log( $(".loggedinusername").attr('data-branchcode'));
console.log( $(".loggedinusername").attr('data-borrowernumber'));
});
8 - Check the console and note you can see the info expected
Signed-off-by: Maryse Simard <maryse.simard at inlibro.com>
Followed the test plan and it works.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list