[Koha-bugs] [Bug 15752] Automatically switch patron during circulation
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 10 17:21:09 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15752
Fred <mediatheque.digne at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mediatheque.digne at gmail.com
--- Comment #11 from Fred <mediatheque.digne at gmail.com> ---
Hi,
For autoswitch, in my library we use this JavaScript code (thanks to S.D.):
/////////////////
$(document).ready(function ()
{
if (window.location.href.indexOf("cgi-bin/koha/circ/circulation.pl") > -1)
if ($("#circ_impossible ul li").html())
{
var message = $("#circ_impossible ul li").html();
var terme = message.split(' ');
var cb= terme[9];
var n= cb.length;}
if (n==5)
if (check_numerique(cb) == true)
{$("#patronsearch #findborrower").val(cb);
$("#patronsearch #autocsubmit").click();
}
else {return false;}
function check_numerique(input){
return !isNaN(input);
}
}
////////////////////
This present 1 or 2 seconds the usual yellow message : Barcode not found
we are satisfied with this solution for 1 year. Is it possible to make the same
timing in this patch ?
Thanks,
Fred
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list