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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-9 / +20 lines)
Lines 64-70 Link Here
64
64
65
<div class="main container-fluid">
65
<div class="main container-fluid">
66
    <div class="row">
66
    <div class="row">
67
        [% IF ( multi_hold ) # No sidebar menu when placing multiple holds %]
67
        [% IF ( multi_hold || nobiblio ) # No sidebar menu when placing multiple holds or biblio not found %]
68
            <div class="col-md-10 col-md-offset-1">
68
            <div class="col-md-10 col-md-offset-1">
69
        [% ELSE %]
69
        [% ELSE %]
70
            <div class="col-sm-10 col-sm-push-2">
70
            <div class="col-sm-10 col-sm-push-2">
Lines 72-77 Link Here
72
72
73
        <main>
73
        <main>
74
74
75
            [% IF ( nobiblio ) %]
76
                <div class="dialog alert">
77
                [%IF (multi_hold) %]
78
                    <strong>Cannot place hold:</strong> one or more records cannot be found.
79
                [% ELSE %]
80
                    <strong>Cannot place hold:</strong> this record cannot be found.
81
                [% END %]
82
                </div>
83
            [% END %]
75
            [% IF ( noitems ) %]
84
            [% IF ( noitems ) %]
76
                <div class="dialog alert">
85
                <div class="dialog alert">
77
                [%IF (multi_hold) %]
86
                [%IF (multi_hold) %]
Lines 93-105 Link Here
93
                </div>
102
                </div>
94
            [% END %]
103
            [% END %]
95
104
96
            [% UNLESS ( multi_hold ) %]
105
            [% UNLESS ( nobiblio ) %]
97
                <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h1>
106
                [% UNLESS ( multi_hold ) %]
98
            [% ELSE %]
107
                        <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h1>
99
                <h1>Confirm holds</h1>
108
                [% ELSE %]
109
                    <h1>Confirm holds</h1>
110
                [% END %]
100
            [% END %]
111
            [% END %]
101
112
102
            [% UNLESS club OR patron OR patron.borrowernumber OR noitems %]
113
            [% UNLESS club OR patron OR patron.borrowernumber OR noitems OR nobiblio %]
103
                [% IF ( messageborrower ) %]
114
                [% IF ( messageborrower ) %]
104
                    <div class="dialog alert">
115
                    <div class="dialog alert">
105
                        <h3>Patron not found</h3>
116
                        <h3>Patron not found</h3>
Lines 323-329 Link Here
323
                        [% END %]
334
                        [% END %]
324
                    </form>
335
                    </form>
325
                </fieldset>
336
                </fieldset>
326
            [% ELSIF NOT noitems # /UNLESS patron %]
337
            [% ELSIF NOT ( noitems || nobiblio ) # /UNLESS patron %]
327
338
328
                [% IF ( checked_previously && !multi_hold ) %]
339
                [% IF ( checked_previously && !multi_hold ) %]
329
                    <div class="dialog alert">
340
                    <div class="dialog alert">
Lines 1004-1010 Link Here
1004
1015
1005
        </main>
1016
        </main>
1006
1017
1007
        [% IF ( multi_hold ) # No sidebar menu when placing multiple holds %]
1018
        [% IF ( multi_hold || nobiblio ) # No sidebar menu when placing multiple holds or biblio not found %]
1008
            </div> <!-- /.col-md-10.col-md-offset-1 -->
1019
            </div> <!-- /.col-md-10.col-md-offset-1 -->
1009
        [% ELSE %]
1020
        [% ELSE %]
1010
            </div> <!-- /.col-sm-10.col-sm-push-2 -->
1021
            </div> <!-- /.col-sm-10.col-sm-push-2 -->
Lines 1537-1543 Link Here
1537
                return false;
1548
                return false;
1538
            });
1549
            });
1539
1550
1540
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
1551
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %]
1541
                [% IF ( PatronAutoComplete ) %]
1552
                [% IF ( PatronAutoComplete ) %]
1542
                $( "#patron" ).autocomplete({
1553
                $( "#patron" ).autocomplete({
1543
                    source: "/cgi-bin/koha/circ/ysearch.pl",
1554
                    source: "/cgi-bin/koha/circ/ysearch.pl",
(-)a/reserve/request.pl (-3 / +2 lines)
Lines 309-316 foreach my $biblionumber (@biblionumbers) { Link Here
309
    my $biblio = Koha::Biblios->find( $biblionumber );
309
    my $biblio = Koha::Biblios->find( $biblionumber );
310
    unless ($biblio) {
310
    unless ($biblio) {
311
        $biblioloopiter{noitems} = 1;
311
        $biblioloopiter{noitems} = 1;
312
        $template->param('noitems' => 1);
312
        $template->param('nobiblio' => 1);
313
        next;
313
        last;
314
    }
314
    }
315
315
316
    my $force_hold_level;
316
    my $force_hold_level;
317
- 

Return to bug 28779