[Koha-bugs] [Bug 3534] Patron quick add form

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 11 18:19:21 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3534

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |veron at veron.ch

--- Comment #3 from Marc Véron <veron at veron.ch> ---
There was a blog entry related to this bug using jQuery for a Patron quick add
form. As far I remember it was declared as proof of concept.
The link was: http://www.myacpl.org/koha/category/koha/customizations/
(Link not valid as of today)

I tested the jQuery code in early 2012 and re-tested it today with current
master by putting it into intranetuserjs system preference. It is not really a
solution for this enhancement request, but it still works nice. That's why I
put it here.

$(document).ready(function(){
var list = "<fieldset class=\"rows\"><legend>Quick Add<ol>";
$("label.required").each(function(){
item = $(this).parent().html()
item = "<li>"+item+"</li>";
list += item;
});
list += "</ol></fieldset><fieldset class=\"action\"><input type=\"submit\"
value=\"Save\" onclick=\"return check_form_borrowers();\" name=\"save\"/><a
href=\"/cgi-bin/koha/members/member.pl\"
class=\"cancel\">Cancel</a></fieldset>";
$("#entryform").prepend(list);
});

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


More information about the Koha-bugs mailing list