|
Lines 206-219
Link Here
|
| 206 |
|
206 |
|
| 207 |
[% IF ( multi_hold ) %] |
207 |
[% IF ( multi_hold ) %] |
| 208 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/> |
208 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/> |
| 209 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
|
|
| 210 |
<input type="hidden" name="request" value="any"/> |
209 |
<input type="hidden" name="request" value="any"/> |
| 211 |
[% FOREACH biblioloo IN biblioloop %] |
210 |
[% FOREACH biblioloo IN biblioloop %] |
| 212 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
211 |
[% UNLESS biblioloo.none_avail %] |
| 213 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
212 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/> |
|
|
213 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
| 214 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
| 215 |
[% END %] |
| 214 |
[% END %] |
216 |
[% END %] |
| 215 |
[% ELSE %] |
217 |
[% ELSE %] |
| 216 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
218 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
|
|
219 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblio.biblionumber | html %]"/> |
| 217 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
220 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
| 218 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
221 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
| 219 |
[% END # /IF multi_hold %] |
222 |
[% END # /IF multi_hold %] |
|
Lines 403-408
Link Here
|
| 403 |
<li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li> |
406 |
<li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li> |
| 404 |
[% END %] |
407 |
[% END %] |
| 405 |
[% END %] |
408 |
[% END %] |
|
|
409 |
[% ELSIF ( none_available ) %] |
| 410 |
<li><strong>No items available: </strong>One or more records have no items that can be held</li> |
| 406 |
[% END # /IF exceeded_maxreserves %] |
411 |
[% END # /IF exceeded_maxreserves %] |
| 407 |
[% END # /UNLESS multi_hold %] |
412 |
[% END # /UNLESS multi_hold %] |
| 408 |
</div> |
413 |
</div> |
|
Lines 450-463
Link Here
|
| 450 |
[% IF ( multi_hold ) %] |
455 |
[% IF ( multi_hold ) %] |
| 451 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/> |
456 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/> |
| 452 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
457 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
| 453 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
|
|
| 454 |
<input type="hidden" name="request" value="any"/> |
458 |
<input type="hidden" name="request" value="any"/> |
| 455 |
[% FOREACH biblioloo IN biblioloop %] |
459 |
[% FOREACH biblioloo IN biblioloop %] |
| 456 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
460 |
[% UNLESS biblioloo.none_avail %] |
| 457 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
461 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/> |
|
|
462 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
| 463 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
| 464 |
[% END %] |
| 458 |
[% END %] |
465 |
[% END %] |
| 459 |
[% ELSE %] |
466 |
[% ELSE %] |
| 460 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
467 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
|
|
468 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblio.biblionumber | html %]"/> |
| 461 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
469 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
| 462 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
470 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
| 463 |
[% END # /IF multi_hold %] |
471 |
[% END # /IF multi_hold %] |
|
Lines 666-671
Link Here
|
| 666 |
Library is not a pickup location |
674 |
Library is not a pickup location |
| 667 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
675 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
| 668 |
No valid pickup location |
676 |
No valid pickup location |
|
|
677 |
[% ELSIF itemloo.not_holdable == 'notforloan' %] |
| 678 |
Not for loan |
| 669 |
[% ELSE %] |
679 |
[% ELSE %] |
| 670 |
[% itemloo.not_holdable | html %] |
680 |
[% itemloo.not_holdable | html %] |
| 671 |
[% END %] |
681 |
[% END %] |
|
Lines 760-765
Link Here
|
| 760 |
|
770 |
|
| 761 |
[% IF ( itemloo.notforloan ) %] |
771 |
[% IF ( itemloo.notforloan ) %] |
| 762 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
772 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
|
|
773 |
[% ELSIF ( itemloo.notforloanitype ) %] |
| 774 |
<span class="nfl">Not for loan (Itemtype not for loan)</span> |
| 763 |
[% END %] |
775 |
[% END %] |
| 764 |
</td> |
776 |
</td> |
| 765 |
<td> |
777 |
<td> |
|
Lines 886-898
Link Here
|
| 886 |
|
898 |
|
| 887 |
<fieldset class="action"> |
899 |
<fieldset class="action"> |
| 888 |
[% IF ( patron AND patron.borrowernumber ) %] |
900 |
[% IF ( patron AND patron.borrowernumber ) %] |
| 889 |
[% IF ( override_required ) %] |
901 |
[% IF ( multi_hold ) %] |
| 890 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
902 |
[% IF ( override_required ) %] |
| 891 |
[% ELSIF ( none_available ) %] |
903 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
| 892 |
<button class="btn btn-default" type="submit">Place holds</button> |
904 |
[% ELSIF ( no_bibs_available ) %] |
| 893 |
[% ELSE %] |
905 |
<button type="submit" class="btn btn-default btn-disabled" disabled="disabled">Place holds</button> |
| 894 |
[% IF ( multi_hold ) %] |
906 |
[% ELSIF ( none_available ) %] |
|
|
907 |
<button type="submit" class="btn btn-default">Place holds</button> |
| 908 |
[% ELSE %] |
| 895 |
<button type="submit" class="btn btn-default" id="multi_hold_submit">Place holds</button> |
909 |
<button type="submit" class="btn btn-default" id="multi_hold_submit">Place holds</button> |
|
|
910 |
[% END %] |
| 911 |
[% ELSE %] |
| 912 |
[% IF ( override_required ) %] |
| 913 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
| 914 |
[% ELSIF ( none_available ) %] |
| 915 |
<button type="submit" class="btn btn-default btn-disabled" disabled="disabled">Place hold</button> |
| 896 |
[% ELSE %] |
916 |
[% ELSE %] |
| 897 |
<button type="submit" class="btn btn-default">Place hold</button> |
917 |
<button type="submit" class="btn btn-default">Place hold</button> |
| 898 |
[% END %] |
918 |
[% END %] |
|
Lines 1383-1397
Link Here
|
| 1383 |
return false; |
1403 |
return false; |
| 1384 |
} |
1404 |
} |
| 1385 |
|
1405 |
|
| 1386 |
var badSpans = $(".not_holdable"); |
|
|
| 1387 |
var badBibs = ""; |
| 1388 |
$(badSpans).each(function() { |
| 1389 |
var bibnum = $(this).attr("title"); |
| 1390 |
badBibs += bibnum + "/"; |
| 1391 |
}); |
| 1392 |
|
| 1393 |
$("#multi_hold_bibs").val(biblionumbers); |
1406 |
$("#multi_hold_bibs").val(biblionumbers); |
| 1394 |
$("#bad_bibs").val(badBibs); |
|
|
| 1395 |
|
1407 |
|
| 1396 |
$('#hold-request-form').preventDoubleFormSubmit(); |
1408 |
$('#hold-request-form').preventDoubleFormSubmit(); |
| 1397 |
|
1409 |
|