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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-48 / +6 lines)
Lines 105-121 Link Here
105
                </div>
105
                </div>
106
            [% END %]
106
            [% END %]
107
107
108
            [% IF ( messagetransfert ) %]
109
                <div class="dialog message">
110
                    <h2>Hold found for ([% nextreservtitle | html %]), please transfer</h2>
111
                    <p>Hold placed by : <strong> [% nextreservsurname | html %] [% nextreservfirstname | html %]</strong> at : <strong> [% branchname | html %] </strong>, Please transfer this item.
112
                    </p>
113
                    <form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
114
                        <input type="submit" class="button" />
115
                    </form>
116
                </div>
117
            [% END %]
118
119
            [% UNLESS ( multi_hold ) %]
108
            [% UNLESS ( multi_hold ) %]
120
                <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h1>
109
                <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h1>
121
            [% ELSE %]
110
            [% ELSE %]
Lines 325-354 Link Here
325
                                            [% IF ( biblioloo.checked_previously ) %]
314
                                            [% IF ( biblioloo.checked_previously ) %]
326
                                                <span>Patron has previously checked out this title</span><br/>
315
                                                <span>Patron has previously checked out this title</span><br/>
327
                                            [% END %]
316
                                            [% END %]
328
                                            [% IF ( biblioloo.alreadyres ) %]
317
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
329
                                                <ul>
318
                                                <ul>
330
                                            [% ELSE %]
331
                                                [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
332
                                                    <ul>
333
                                                [% END %]
334
                                            [% END %]
319
                                            [% END %]
335
320
336
                                            [% IF ( biblioloo.alreadyres ) %]
337
                                                <li>
338
                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a>
339
                                                    <strong>already has a hold</strong> on this item
340
                                                </li>
341
                                            [% END %]
342
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
321
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
343
                                                <li> <strong>No items are available</strong> to be placed on hold</li>
322
                                                <li> <strong>No items are available</strong> to be placed on hold</li>
344
                                            [% END %]
323
                                            [% END %]
345
324
346
                                            [% IF ( biblioloo.alreadyres ) %]
325
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
347
                                                </ul>
326
                                                </ul>
348
                                            [% ELSE %]
349
                                                [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
350
                                                    </ul>
351
                                                [% END %]
352
                                            [% END %]
327
                                            [% END %]
353
                                        </td>
328
                                        </td>
354
                                    </tr>
329
                                    </tr>
Lines 367-373 Link Here
367
                    </div>
342
                    </div>
368
                [% END %]
343
                [% END %]
369
344
370
                [% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
345
                [% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || none_available || alreadypossession || ageRestricted ) %]
371
                    <div class="dialog alert">
346
                    <div class="dialog alert">
372
347
373
                        [% UNLESS ( multi_hold ) %]
348
                        [% UNLESS ( multi_hold ) %]
Lines 381-388 Link Here
381
                                    <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
356
                                    <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
382
                                [% ELSIF ( alreadypossession ) %]
357
                                [% ELSIF ( alreadypossession ) %]
383
                                    <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>is already in possession</strong> of one item.</li>
358
                                    <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>is already in possession</strong> of one item.</li>
384
                                [% ELSIF ( alreadyreserved ) %]
385
                                    <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>already has a hold</strong> on this item.</li>
386
                                [% ELSIF ( ageRestricted ) %]
359
                                [% ELSIF ( ageRestricted ) %]
387
                                    <li><strong>Age restricted</strong></li>
360
                                    <li><strong>Age restricted</strong></li>
388
                                [% ELSIF ( none_available ) %]
361
                                [% ELSIF ( none_available ) %]
Lines 539-545 Link Here
539
                                        <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
512
                                        <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
540
                                    [% END %]
513
                                    [% END %]
541
                                    <input type="hidden" name="biblioitem" value="[% biblioitemnumber | html %]" />
514
                                    <input type="hidden" name="biblioitem" value="[% biblioitemnumber | html %]" />
542
                                    <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
543
                                </li>
515
                                </li>
544
516
545
                                [% IF remaining_holds_for_record > 1 %]
517
                                [% IF remaining_holds_for_record > 1 %]
Lines 838-867 Link Here
838
                                            [% IF ( biblioloo.checked_previously ) %]
810
                                            [% IF ( biblioloo.checked_previously ) %]
839
                                                <span>Patron has previously checked out this title</span><br/>
811
                                                <span>Patron has previously checked out this title</span><br/>
840
                                            [% END %]
812
                                            [% END %]
841
                                            [% IF ( biblioloo.alreadyres ) %]
813
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
842
                                                <ul>
814
                                                <ul>
843
                                            [% ELSE %]
844
                                                [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
845
                                                    <ul>
846
                                                [% END %]
847
                                            [% END %]
815
                                            [% END %]
848
816
849
                                            [% IF ( biblioloo.alreadyres ) %]
850
                                                <li>
851
                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a>
852
                                                    <strong>already has a hold</strong> on this item
853
                                                </li>
854
                                            [% END %]
855
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
817
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
856
                                                <li> <strong>No items are available</strong> to be placed on hold</li>
818
                                                <li> <strong>No items are available</strong> to be placed on hold</li>
857
                                            [% END %]
819
                                            [% END %]
858
820
859
                                            [% IF ( biblioloo.alreadyres ) %]
821
                                            [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
860
                                                </ul>
822
                                                </ul>
861
                                            [% ELSE %]
862
                                                [% IF ( biblioloo.none_avail || biblioloo.noitems ) %]
863
                                                    </ul>
864
                                                [% END %]
865
                                            [% END %]
823
                                            [% END %]
866
                                        </td>
824
                                        </td>
867
                                        <td>
825
                                        <td>
Lines 905-911 Link Here
905
863
906
            [% UNLESS ( patron ) %]
864
            [% UNLESS ( patron ) %]
907
                [% IF ( reserveloop ) %]
865
                [% IF ( reserveloop ) %]
908
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
866
                    <form id="existing_holds" name="form_existing_holds" action="modrequest.pl" method="post" style="display:block">
909
                        [% IF ( multi_hold ) %]
867
                        [% IF ( multi_hold ) %]
910
                            <input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
868
                            <input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
911
                        [% END %]
869
                        [% END %]
(-)a/reserve/request.pl (-19 / +1 lines)
Lines 328-334 foreach my $biblionumber (@biblionumbers) { Link Here
328
    }
328
    }
329
329
330
    my $count = Koha::Holds->search( { biblionumber => $biblionumber } )->count();
330
    my $count = Koha::Holds->search( { biblionumber => $biblionumber } )->count();
331
    my $totalcount = $count;
332
331
333
    # adding a fixed value for priority options
332
    # adding a fixed value for priority options
334
    my $fixedRank = $count+1;
333
    my $fixedRank = $count+1;
Lines 354-366 foreach my $biblionumber (@biblionumbers) { Link Here
354
        $biblioloopiter{title} = $biblio->title;
353
        $biblioloopiter{title} = $biblio->title;
355
        $biblioloopiter{rank} = $fixedRank;
354
        $biblioloopiter{rank} = $fixedRank;
356
355
357
        # get the time for the form name...
356
        $template->param( fixedRank => $fixedRank );
358
        my $time = time();
359
360
        $template->param(
361
                         time        => $time,
362
                         fixedRank   => $fixedRank,
363
                        );
364
357
365
    unless( $patron ){
358
    unless( $patron ){
366
359
Lines 775-787 $template->param( Link Here
775
768
776
# printout the page
769
# printout the page
777
output_html_with_http_headers $input, $cookie, $template->output;
770
output_html_with_http_headers $input, $cookie, $template->output;
778
779
sub sort_borrowerlist {
780
    my $borrowerslist = shift;
781
    my $ref           = [];
782
    push @{$ref}, sort {
783
        uc( $a->{surname} . $a->{firstname} ) cmp
784
          uc( $b->{surname} . $b->{firstname} )
785
    } @{$borrowerslist};
786
    return $ref;
787
}
788
- 

Return to bug 29043