@@ -, +, @@ dialog when checking out a reserved item when trying to checkout a reserved item. --- circ/circulation.pl | 11 +++++++++++ .../prog/en/modules/circ/circulation.tt | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -554,6 +554,17 @@ 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, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -59,6 +59,9 @@ function toggle_onsite_checkout(){ } } +function Dopop(link) { + var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); +} $(document).ready(function() { [% IF !( CircAutoPrintQuickSlip == 'clear' ) %] // listen submit to trigger qslip on empty checkout @@ -316,6 +319,24 @@ $(document).ready(function() { [% END %] +[% IF ( RESERVED ) %] +
+ + + + +
+[% END %] + +[% IF ( RESERVE_WAITING ) %] +
+ + + + +
+[% END %] +
[% IF (forceallow) %][% END %] --