@@ -, +, @@ and make a simpler message if basket is void - delete warns - add a missing } - add a condition in template of avoiding asking to suppress orders or records if the basket is void --- acqui/basket.pl | 4 +-- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 38 ++++++++++++------- 2 files changed, 25 insertions(+), 17 deletions(-) --- a/acqui/basket.pl +++ a/acqui/basket.pl @@ -115,7 +115,6 @@ if ( $op eq 'delete_confirm' ) { #Delete all orders included in that basket, and all items received. foreach my $myorder (@orders){ DelOrder($myorder->{biblionumber},$myorder->{ordernumber}); - warn "suppression de ".$myorder->{biblionumber}.' '.$myorder->{ordernumber}; } # if $delbiblio = 1, delete the records if possible if ((defined $delbiblio)and ($delbiblio ==1)){ @@ -126,9 +125,8 @@ if ( $op eq 'delete_confirm' ) { my @subscriptions = GetSubscriptionsId ($biblionumber); my $itemcount = GetItemsCount($biblionumber); DelBiblio($myorder->{biblionumber}) if ($countbiblio == 0 && $itemcount == 0 && !(@subscriptions)); - warn "suppression de la notice ".$myorder->{biblionumber}}; + } } - # delete the basket DelBasket($basketno,); $template->param( delete_confirmed => 1 ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -191,26 +191,36 @@ [% END %]
Export this basket as CSV
- + - + [% ELSE %] [% UNLESS ( grouped ) %]
--