|
Lines 438-471
$(document).ready(function() {
Link Here
|
| 438 |
|
438 |
|
| 439 |
[% IF ( UNKNOWN_BARCODE ) %] |
439 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 440 |
<li>The barcode was not found: <span class="ex">[% barcode |html %]</span> |
440 |
<li>The barcode was not found: <span class="ex">[% barcode |html %]</span> |
| 441 |
[% IF ( fast_cataloging ) %] |
|
|
| 442 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
| 443 |
<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Add record using fast cataloging</a> |
| 444 |
[% END %] |
| 445 |
[% END %] |
| 446 |
|
441 |
|
| 447 |
[% IF ( FALLBACK ) %] |
442 |
<div> |
| 448 |
[% IF options %] |
443 |
[% IF ( FALLBACK ) %] |
| 449 |
<br />The following items were found by searching: |
444 |
[% IF options %] |
| 450 |
[% FOREACH book IN options %] |
445 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
| 451 |
<br /> |
446 |
[% ELSE %] |
| 452 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
447 |
<div>No items were found by searching.</div> |
| 453 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
448 |
[% END %] |
| 454 |
<input type="hidden" name="restoreduedatespec" /> |
449 |
[% END %] |
| 455 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
|
|
| 456 |
<input type="hidden" name="duedatespec" value="[% duedatespec %]" /> |
| 457 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate %]" /> |
| 458 |
<input type="hidden" name="branch" value="[% branch %]" /> |
| 459 |
<input type="hidden" name="barcode" value="[% book.barcode %]" /> |
| 460 |
<button type="submit" name="x"><i class="fa fa-check"></i> Check out [% book.barcode %]: [% book.title %]</button> |
| 461 |
</form> |
| 462 |
[% END %] |
| 463 |
[% ELSE %] |
| 464 |
<br />No items were found by searching. |
| 465 |
[% END %] |
| 466 |
[% END %] |
| 467 |
|
450 |
|
| 468 |
</li> |
451 |
[% IF ( fast_cataloging ) %] |
|
|
452 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
| 453 |
<a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a> |
| 454 |
[% END %] |
| 455 |
[% END %] |
| 456 |
</div> |
| 457 |
|
| 458 |
</li> |
| 469 |
[% END %] |
459 |
[% END %] |
| 470 |
|
460 |
|
| 471 |
[% IF ( NOT_FOR_LOAN ) %] |
461 |
[% IF ( NOT_FOR_LOAN ) %] |
|
Lines 545-550
$(document).ready(function() {
Link Here
|
| 545 |
[% END %] |
535 |
[% END %] |
| 546 |
|
536 |
|
| 547 |
</div></div> |
537 |
</div></div> |
|
|
538 |
|
| 539 |
[% IF ( FALLBACK ) %] |
| 540 |
[% IF options %] |
| 541 |
|
| 542 |
<!-- Modal --> |
| 543 |
<div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel"> |
| 544 |
<div class="modal-dialog modal-wide" role="document"> |
| 545 |
<div class="modal-content"> |
| 546 |
<div class="modal-header"> |
| 547 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 548 |
<h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3> |
| 549 |
</div> |
| 550 |
<div class="modal-body"> |
| 551 |
<table class="table_borrowers"> |
| 552 |
[% FOREACH book IN options %] |
| 553 |
<tr> |
| 554 |
<td> |
| 555 |
<a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber %]">[% book.title %]</a> |
| 556 |
[% book.barcode %] |
| 557 |
</td> |
| 558 |
<td> |
| 559 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
| 560 |
[% IF (forceallow) %] |
| 561 |
<input type="hidden" name="forceallow" value="1"> |
| 562 |
[% END %] |
| 563 |
<input type="hidden" name="restoreduedatespec" /> |
| 564 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
| 565 |
<input type="hidden" name="duedatespec" value="[% duedatespec %]" /> |
| 566 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate %]" /> |
| 567 |
<input type="hidden" name="branch" value="[% branch %]" /> |
| 568 |
<input type="hidden" name="barcode" value="[% book.barcode %]" /> |
| 569 |
<button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button> |
| 570 |
</form> |
| 571 |
</td> |
| 572 |
</tr> |
| 573 |
[% END %] |
| 574 |
</table> |
| 575 |
</div> |
| 576 |
<div class="modal-footer"> |
| 577 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
| 578 |
</div> |
| 579 |
</div> |
| 580 |
</div> |
| 581 |
</div> |
| 582 |
[% END %] |
| 583 |
[% END %] |
| 584 |
|
| 548 |
[% ELSE %] |
585 |
[% ELSE %] |
| 549 |
[% IF (forceallow) %] |
586 |
[% IF (forceallow) %] |
| 550 |
<div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div> |
587 |
<div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div> |