From 45d747347dcffb1c94186599e1abfc69d5aab01c Mon Sep 17 00:00:00 2001 From: simith Date: Thu, 15 Jan 2015 14:29:49 -0500 Subject: [PATCH] Fix comment 9 and 19 http://bugs.koha-community.org/show_bug.cgi?id=11882 --- circ/circulation.pl | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index d117b3c..ab5e301 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -377,6 +377,13 @@ if ($barcode) { my ( $od, $issue, $fines ) = GetMemberIssuesAndFines($borrowernumber); $template->param( issuecount => $issue ); + + if ($question->{RESERVE_WAITING} or $question->{RESERVED}){ + $template->param( + reserveborrowernumber => $question->{'resborrowernumber'}, + itembiblionumber => $getmessageiteminfo->{'biblionumber'} + ); + } } # reload the borrower info for the sake of reseting the flags..... @@ -551,17 +558,6 @@ my $relatives_issues_count = Koha::Database->new()->schema()->resultset('Issue') ->count( { borrowernumber => \@relatives } ); -(my $returned, my $messages) = AddReturn( $barcode, $branch); -if ( $messages->{'ResFound'}) { - my $reserve = $messages->{'ResFound'}; - # get biblio description - my $biblio = GetBiblioFromItemNumber($reserve->{'itemnumber'}); - $template->param( - reserveborrowernumber => $reserve->{'borrowernumber'}, - itembiblionumber => $biblio->{'biblionumber'} - ); -} - $template->param( lib_messages_loop => $lib_messages_loop, bor_messages_loop => $bor_messages_loop, -- 1.9.1