[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 11:05:23 CET 2023


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

paxed <pasi.kallinen at koha-suomi.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pasi.kallinen at koha-suomi.fi

--- Comment #16 from paxed <pasi.kallinen at koha-suomi.fi> ---
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() + "&notext=1";
    $('li#patron-cardnumber').append('<br><img src="' + barcodeurl + '">');
  }
});

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list