diff --git a/circ/circulation.pl b/circ/circulation.pl index f66b32d3d6..5a6d8f8554 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -8,6 +8,10 @@ use DBI; my %env; my $headerbackgroundcolor='#990000'; +my $circbackgroundcolor='#555555'; +my $circbackgroundcolor='#550000'; +my $linecolor1='#bbbbbb'; +my $linecolor2='#dddddd'; my $query=new CGI; my $branches=getbranches(\%env); my $printers=getprinters(\%env); @@ -30,6 +34,7 @@ my $branchoptions; my $printeroptions; foreach (keys %$branches) { (next) unless ($_); + (next) if (/^TR$/); $branchcount++; my $selected=''; ($selected='selected') if ($_ eq $oldbranch); @@ -69,21 +74,25 @@ print startmenu('circulation'); print << "EOF";
-
\n"; + } print << "EOF"; -
+EOF + } + if (($nosuchitem) && ($barcode)) { + print << "EOF"; +
\n"; + print "Invalid Due Date Specified. Book was not issued. Only 30 days in $month month.
\n"; $invalidduedate=1; } elsif (($day>29) && ($month==2)) { - print "Invalid Due Date Specified. Book was not issued.
\n"; + print "Invalid Due Date Specified. Book was not issued. Never that many days in February!
\n"; $invalidduedate=1; - } elsif (($day>28) && (($year%4) && ((!($year%100) || ($year%400))))) { - print "Invalid Due Date Specified. Book was not issued.
\n"; + } elsif (($month==2) && ($day>28) && (($year%4) && ((!($year%100) || ($year%400))))) { + print "Invalid Due Date Specified. Book was not issued. $year is not a leap year.
\n"; $invalidduedate=1; } else { $env{'datedue'}="$year-$month-$day"; @@ -288,7 +399,7 @@ sub issues { my ($iteminformation, $duedate, $rejected, $question, $questionnumber, $defaultanswer, $message) = issuebook(\%env, $borrower, $barcode, \%responses); unless ($iteminformation) { print << "EOF"; -
EOF } else { @@ -517,20 +641,20 @@ EOF if ($#borrowers == -1) { $query->param('findborrower', ''); print "No borrower matched '$findborrower'
\n"; - issues(); + issues(1); return; } if ($#borrowers == 0) { $query->param('borrnumber', $borrowers[0]->{'borrowernumber'}); - issues(); + issues(1); return; } else { print "