From 73706c24f780aa22e9642be5556954604c4cf98e Mon Sep 17 00:00:00 2001
From: finlayt
Date: Sat, 18 May 2002 05:07:26 +0000
Subject: [PATCH] improoved layout and branch and printer settings are
displayed
---
circ/returns.pl | 93 +++++++++++++++++++++++++++++++++----------------
1 file changed, 63 insertions(+), 30 deletions(-)
diff --git a/circ/returns.pl b/circ/returns.pl
index c04c850e74..952797dfcd 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -20,6 +20,7 @@ my $backgroundimage="/images/background-mem.gif";
my $query=new CGI;
my $branches = getbranches();
+my $printers = getprinters(\%env);
my $branch = $query->param("branch");
my $printer = $query->param("printer");
@@ -27,6 +28,8 @@ my $printer = $query->param("printer");
($branch) || ($branch=$query->cookie('branch')) ;
($printer) || ($printer=$query->cookie('printer')) ;
+
+
#
# Some code to handle the error if there is no branch or printer setting.....
#
@@ -66,7 +69,7 @@ my $messages;
if (my $barcode = $query->param('barcode')) {
# decode cuecat
$barcode = cuecatbarcodedecode($barcode);
- ($returned, $messages, $iteminformation, $borrower) = returnbook2(\%env, $barcode);
+ ($returned, $messages, $iteminformation, $borrower) = returnbook($barcode, $branch);
if ($returned) {
$returneditems{0} = $barcode;
$riborrowernumber{0} = $borrower->{'borrowernumber'};
@@ -81,13 +84,22 @@ if (my $barcode = $query->param('barcode')) {
# HTML code....
# title....
my $title = <<"EOF";
-
+
+
+
+
+
EOF
my $itemtable;
@@ -111,7 +123,7 @@ EOF
}
# Barcode entry box, with hidden inputs attached....
-my $barcodeentrytext= << "EOF";
+my $barcodeentrytext = << "EOF";