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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt (-1 / +2 lines)
Lines 13-22 Link Here
13
<body id="lists_addbybiblionumber" class="lists">
13
<body id="lists_addbybiblionumber" class="lists">
14
<div class="container-fluid">
14
<div class="container-fluid">
15
    [% UNLESS (authorized) %]
15
    [% UNLESS (authorized) %]
16
        <h1>Error adding to list</h1>
16
        <div class="alert alert-warning">
17
        <div class="alert alert-warning">
17
            <h1>Error adding to list</h1>
18
            [% IF (errcode==1) %]<p>Could not create a new list. Please check the name.</p>[% END %]
18
            [% IF (errcode==1) %]<p>Could not create a new list. Please check the name.</p>[% END %]
19
            [% IF (errcode==2) %]<p>Sorry, you do not have permission to add items to this list.</p>[% END %]
19
            [% IF (errcode==2) %]<p>Sorry, you do not have permission to add items to this list.</p>[% END %]
20
            [% IF (errcode==3) %]<p>The titles selected were not found</p>[% END %]
20
            <button class="btn btn-default close_window focus">Close window</button>
21
            <button class="btn btn-default close_window focus">Close window</button>
21
        </div>
22
        </div>
22
    [% ELSE %]
23
    [% ELSE %]
(-)a/virtualshelves/addbybiblionumber.pl (-6 / +8 lines)
Lines 202-214 for my $biblionumber (@biblionumbers) { Link Here
202
        }
202
        }
203
    );
203
    );
204
}
204
}
205
$template->param(
205
206
    multiple => ( scalar(@biblios) > 1 ),
206
if ( scalar(@biblios) < 1 ) {
207
    total    => scalar @biblios,
207
    $errcode    = 3;
208
    biblios  => \@biblios,
208
    $authorized = 0;    # trigger error screen
209
);
209
}
210
210
211
$template->param(
211
$template->param(
212
    multiple   => ( scalar(@biblios) > 1 ),
213
    total      => scalar @biblios,
214
    biblios    => \@biblios,
212
    newshelf   => $newshelf || 0,
215
    newshelf   => $newshelf || 0,
213
    authorized => $authorized,
216
    authorized => $authorized,
214
    errcode    => $errcode,
217
    errcode    => $errcode,
215
- 

Return to bug 40585