View | Details | Raw Unified | Return to bug 8521
Collapse All | Expand All

(-)a/C4/VirtualShelves/Page.pm (-3 / +3 lines)
Lines 384-396 sub shelfpage { Link Here
384
                }
384
                }
385
                my $contents;
385
                my $contents;
386
                ( $contents, $totshelves ) = GetShelfContents( $number, $shelveslimit, $shelvesoffset );
386
                ( $contents, $totshelves ) = GetShelfContents( $number, $shelveslimit, $shelvesoffset );
387
                if ( my $count = scalar @$contents ) {
387
                if ( $totshelves > 0 ) {
388
                    unless ( scalar grep { /^CONFIRM-$number$/ } $query->param() ) {
388
                    unless ( scalar grep { /^CONFIRM-$number$/ } $query->param() ) {
389
                        if ( defined $shelflist->{$number} ) {
389
                        if ( defined $shelflist->{$number} ) {
390
                            push( @paramsloop, { need_confirm => $shelflist->{$number}->{shelfname}, count => $count, single => ($count eq 1 ? 1:0) } );
390
                            push( @paramsloop, { need_confirm => $shelflist->{$number}->{shelfname}, count => $totshelves, single => ($totshelves eq 1 ? 1:0) } );
391
                            $shelflist->{$number}->{confirm} = $number;
391
                            $shelflist->{$number}->{confirm} = $number;
392
                        } else {
392
                        } else {
393
                            push( @paramsloop, { need_confirm => $privshelflist->{$number}->{shelfname}, count => $count } );
393
                            push( @paramsloop, { need_confirm => $privshelflist->{$number}->{shelfname}, count => $totshelves } );
394
                            $privshelflist->{$number}->{confirm} = $number;
394
                            $privshelflist->{$number}->{confirm} = $number;
395
                        }
395
                        }
396
                        $stay = 0;
396
                        $stay = 0;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +5 lines)
Lines 234-240 function placeHold () { Link Here
234
        [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No list number given.</div>[% END %]
234
        [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No list number given.</div>[% END %]
235
		[% IF ( paramsloo.need_confirm ) %]
235
		[% IF ( paramsloo.need_confirm ) %]
236
		<div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
236
		<div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
237
			<br />It has <b>[% paramsloo.count %]</b> entries.
237
            [% IF ( paramsloo.single ) %]
238
                <br />It has <b>[% paramsloo.count %]</b> entry.
239
            [% ELSE %]
240
                <br />It has <b>[% paramsloo.count %]</b> entries.
241
            [% END %]
238
			<br />Use the "Confirm" button below to confirm deletion.
242
			<br />Use the "Confirm" button below to confirm deletion.
239
		</div>
243
		</div>
240
		[% END %]
244
		[% END %]
241
- 

Return to bug 8521