javascript redirect when selecting a patron on circulation.pl Patron Selection Screen
authorMichael Hafen <mdhafen@tech.washk12.org>
Wed, 27 Aug 2008 22:46:57 +0000 (16:46 -0600)
committerHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 27 Jan 2009 11:19:44 +0000 (12:19 +0100)
This adds a little javascript to the Patron Selection form input after searching for a patron to check out to.
On click it redirects to checking out to the clicked patron.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
circ/circulation.pl

index 9aa6e57..f165eae 100755 (executable)
@@ -523,6 +523,7 @@ if ($borrowerslist) {
         -id       => 'borrowernumber',
         -values   => \@values,
         -labels   => \%labels,
+       -onclick  => "window.location = '/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + this.value;",
         -size     => 7,
         -tabindex => '',
         -multiple => 0