https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20921

--- Comment #1 from Nick Clemens <[email protected]> ---
Created attachment 76005
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76005&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('branchcode'));
    console.log( $(".loggedinusername").attr('borrowernumber'));
});
8 - Check the console and note you can see the info expected

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to