[Koha-bugs] [Bug 35131] Add scan-able barcode to the patron sidebar (patroninfo)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 1 18:10:42 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131
--- Comment #17 from Lucas Gass <lucas at bywatersolutions.com> ---
(In reply to paxed from comment #16)
> This can be done with just javascript without needing to change Koha code,
> something like
>
> $(document).ready(function () {
> if (window.location.pathname == '/cgi-bin/koha/members/moremember.pl') {
> cardnumber =
> document.getElementById('patron-cardnumber').childNodes[2].nodeValue.trim();
> barcodeurl = "/cgi-bin/koha/svc/barcode?barcode=" +
> cardnumber.toUpperCase() + "¬ext=1";
> $('li#patron-cardnumber').append('<br><img src="' + barcodeurl + '">');
> }
> });
Sure, but we'd rather see this get into Koha as a feature instead of having to
upkeep any custom javascript.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list