Lines 13-100
Link Here
|
13 |
</title> |
13 |
</title> |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
15 |
[% INCLUDE 'calendar.inc' %] |
15 |
[% INCLUDE 'calendar.inc' %] |
16 |
[% IF ( UseTablesortForCirc ) %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
16 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
17 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
17 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
18 |
[% INCLUDE 'datatables-strings.inc' %] |
18 |
[% INCLUDE 'datatables-strings.inc' %] |
19 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>[% END %] |
19 |
<!-- <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> --> |
20 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
20 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
21 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
21 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
22 |
[% INCLUDE 'timepicker.inc' %] |
22 |
[% INCLUDE 'timepicker.inc' %] |
23 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
23 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
|
|
24 |
<script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script> |
24 |
<script type="text/javascript"> |
25 |
<script type="text/javascript"> |
25 |
//<![CDATA[ |
26 |
//<![CDATA[ |
|
|
27 |
/* Set some variable needed in circulation.js */ |
28 |
var interface = "[% interface %]"; |
29 |
var theme = "[% theme %]"; |
30 |
var borrowernumber = "[% borrowernumber %]"; |
31 |
var branchcode = "[% branch %]"; |
32 |
var exports_enabled = "[% exports_enabled %]"; |
33 |
var AllowRenewalLimitOverride = [% CAN_user_circulate_override_renewals && AllowRenewalLimitOverride %]; |
34 |
var relatives_borrowernumbers = new Array(); |
35 |
[% FOREACH b IN relatives_borrowernumbers %] |
36 |
relatives_borrowernumbers.push("[% b %]"); |
37 |
[% END %] |
38 |
|
26 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
39 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
27 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
40 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
28 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
41 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
29 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
42 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
30 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
43 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
31 |
$(document).ready(function() { |
44 |
|
32 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
45 |
$(document).ready(function() { |
33 |
// Correct table sizing for tables hidden in tabs |
46 |
[% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
34 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
|
|
35 |
"show": function(event, ui) { |
36 |
var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable(); |
37 |
if ( oTable.length > 0 ) { |
38 |
oTable.fnAdjustColumnSizing(); |
39 |
} |
40 |
} |
41 |
}[% END %]); |
42 |
[% IF ( UseTablesortForCirc ) %] |
43 |
$("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
44 |
"sDom": 't', |
45 |
"aaSorting": [], |
46 |
"aoColumnDefs": [ |
47 |
{ "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false } |
48 |
], |
49 |
"aoColumns": [ |
50 |
{ "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %] |
51 |
], |
52 |
"bPaginate": false |
53 |
})); |
54 |
|
55 |
$("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
56 |
"sDom": 't', |
57 |
"aaSorting": [], |
58 |
"aoColumns": [ |
59 |
{ "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,{ "sType": "html" } |
60 |
], |
61 |
"bPaginate": false |
62 |
})); |
63 |
|
64 |
$("#issuest").on("sort",function() { |
65 |
$("#previous").hide(); // Don't want to see "previous checkouts" header sorted with other rows |
66 |
}); |
67 |
$("#relissuest").on("sort",function() { |
68 |
$("#relprevious").hide(); // Don't want to see "previous checkouts" header sorted with other rows |
69 |
}); |
70 |
[% END %] |
71 |
[% IF ( AllowRenewalLimitOverride ) %] |
72 |
$( '#override_limit' ).click( function () { |
73 |
if ( this.checked ) { |
74 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
75 |
} else { |
76 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
77 |
} |
78 |
} ).attr( 'checked', false ); |
79 |
[% END %][% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
80 |
// listen submit to trigger qslip on empty checkout |
47 |
// listen submit to trigger qslip on empty checkout |
81 |
$('#mainform').bind('submit',function() { |
48 |
$('#mainform').bind('submit',function() { |
82 |
if ($('#barcode').val() == '') { |
49 |
if ($('#barcode').val() == '') { |
83 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); } |
50 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); |
84 |
});[% END %] |
51 |
} |
85 |
|
52 |
}); |
86 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
|
|
87 |
[% IF ( AllowRenewalLimitOverride ) %] |
88 |
$( '#override_limit' ).click( function () { |
89 |
if ( this.checked ) { |
90 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
91 |
} else { |
92 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
93 |
} |
94 |
} ).attr( 'checked', false ); |
95 |
[% END %] |
96 |
[% END %] |
53 |
[% END %] |
97 |
}); |
54 |
}); |
98 |
//]]> |
55 |
//]]> |
99 |
</script> |
56 |
</script> |
100 |
</head> |
57 |
</head> |
Lines 516-522
No patron matched <span class="ex">[% message %]</span>
Link Here
|
516 |
[% ELSE %] |
473 |
[% ELSE %] |
517 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
474 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
518 |
[% END %] |
475 |
[% END %] |
519 |
<input type="submit" value="Check Out" /> |
476 |
<button type="submit" class="btn"><i class="icon-barcode"></i> Check out</button> |
520 |
|
477 |
|
521 |
[% IF ( SpecifyDueDate ) %]<div class="date-select"> |
478 |
[% IF ( SpecifyDueDate ) %]<div class="date-select"> |
522 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
479 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
Lines 528-534
No patron matched <span class="ex">[% message %]</span>
Link Here
|
528 |
[% ELSE %] |
485 |
[% ELSE %] |
529 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
486 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
530 |
[% END %] |
487 |
[% END %] |
531 |
<input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" /> |
488 |
<button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" ><i class="icon-remove-circle"></i> Clear</button> |
532 |
</div>[% END %] |
489 |
</div>[% END %] |
533 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> |
490 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> |
534 |
<input type="hidden" name="branch" value="[% branch %]" /> |
491 |
<input type="hidden" name="branch" value="[% branch %]" /> |
Lines 687-1032
No patron matched <span class="ex">[% message %]</span>
Link Here
|
687 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
644 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
688 |
|
645 |
|
689 |
<ul> |
646 |
<ul> |
690 |
<li> [% IF ( issuecount ) %] |
647 |
<li> |
|
|
648 |
[% IF ( issuecount ) %] |
691 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
649 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
692 |
[% ELSE %] |
650 |
[% ELSE %] |
693 |
<a href="#checkouts">0 Checkouts</a> |
651 |
<a href="#checkouts">0 Checkouts</a> |
694 |
[% END %]</li> |
652 |
[% END %] |
695 |
[% IF ( displayrelissues ) %] |
653 |
</li> |
696 |
<li><a href="#relissues">Relatives' checkouts</a></li> |
654 |
|
697 |
[% END %] |
655 |
[% IF relatives_issues_count %] |
698 |
<li>[% IF ( countreserv ) %] |
656 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
|
|
657 |
[% END %] |
658 |
|
659 |
<li> |
660 |
[% IF ( countreserv ) %] |
699 |
<a href="#reserves">[% countreserv %] Hold(s)</a> |
661 |
<a href="#reserves">[% countreserv %] Hold(s)</a> |
700 |
[% ELSE %] |
662 |
[% ELSE %] |
701 |
<a href="#reserves">0 Holds</a> |
663 |
<a href="#reserves">0 Holds</a> |
702 |
[% END %]</li> |
664 |
[% END %] |
703 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li> |
665 |
</li> |
704 |
|
666 |
|
|
|
667 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li> |
705 |
</ul> |
668 |
</ul> |
706 |
|
669 |
|
707 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
670 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
708 |
<div id="checkouts"> |
671 |
<div id="checkouts"> |
709 |
[% IF ( issuecount ) %] |
672 |
[% IF ( issuecount ) %] |
710 |
<form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed"> |
673 |
<form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post" class="checkboxed"> |
711 |
<input type="hidden" value="circ" name="destination" /> |
674 |
<table id="issues-table"> |
712 |
<input type="hidden" name="cardnumber" value="[% cardnumber %]" /> |
675 |
<thead> |
713 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
676 |
<tr> |
714 |
<input type="hidden" name="branch" value="[% branch %]" /> |
677 |
<th scope="col">Due date</th> |
715 |
<table id="issuest"> |
678 |
<th scope="col">Title</th> |
716 |
<thead><tr> |
679 |
<th scope="col">Item type</th> |
717 |
<th scope="col">Due date</th> |
680 |
<th scope="col">Checked out on</th> |
718 |
<th scope="col">Title</th> |
681 |
<th scope="col">Checked out from</th> |
719 |
<th scope="col">Item type</th> |
682 |
<th scope="col">Call no</th> |
720 |
<th scope="col">Checked out on</th> |
683 |
<th scope="col">Charge</th> |
721 |
<th scope="col">Checked out from</th> |
684 |
<th scope="col">Price</th> |
722 |
<th scope="col">Call no</th> |
685 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> |
723 |
<th scope="col">Charge</th> |
686 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> |
724 |
<th scope="col">Price</th> |
687 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> |
725 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th> |
688 |
</tr> |
726 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th> |
689 |
</thead> |
727 |
[% IF ( exports_enabled ) %] |
690 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
728 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th> |
691 |
</table> |
729 |
[% END %] |
692 |
|
730 |
</tr></thead> |
693 |
[% IF ( issuecount ) %] |
731 |
[% IF ( todayissues ) %] |
694 |
<fieldset class="action"> |
732 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
695 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
733 |
<tbody> |
696 |
[% IF ( AllowRenewalLimitOverride ) %] |
734 |
|
697 |
<label for="override_limit">Override renewal limit:</label> |
735 |
[% FOREACH todayissue IN todayissues %] |
698 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
736 |
[% IF ( loop.odd ) %] |
699 |
[% END %] |
737 |
<tr> |
|
|
738 |
[% ELSE %] |
739 |
<tr class="highlight"> |
740 |
[% END %] |
741 |
[% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
742 |
<span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span> |
743 |
|
744 |
[% IF ( todayissue.itemlost ) %] |
745 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span> |
746 |
[% END %] |
747 |
[% IF ( todayissue.damaged ) %] |
748 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span> |
749 |
[% END %] |
750 |
</td> |
751 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% todayissue.biblionumber %]&type=intra"><strong>[% todayissue.title |html %][% FOREACH subtitl IN todayissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- <span class="circ-hlt">[% todayissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% todayissue.biblionumber %]&itemnumber=[% todayissue.itemnumber %]#item[% todayissue.itemnumber %]">[% todayissue.barcode %]</a></td> |
752 |
<td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td> |
753 |
<td><span title="[% todayissue.displaydate_sort %]">[% todayissue.checkoutdate %]</span></td> |
754 |
[% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %] |
755 |
<td>[% todayissue.issuingbranchname %]</td> |
756 |
<td>[% todayissue.itemcallnumber %]</td> |
757 |
<td>[% todayissue.charge %]</td> |
758 |
<td>[% todayissue.replacementprice %]</td> |
759 |
[% IF ( todayissue.renew_failed ) %] |
760 |
<td class="problem">Renewal failed</td> |
761 |
[% ELSE %] |
762 |
<td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span> |
763 |
[% IF ( todayissue.can_renew ) %] |
764 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
765 |
[% IF ( todayissue.od ) %] |
766 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
767 |
[% ELSE %] |
768 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
769 |
[% END %] |
770 |
[% IF todayissue.renewsallowed && todayissue.renewsleft %] |
771 |
<span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> |
772 |
[% END %] |
773 |
[% ELSE %] |
774 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
775 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
776 |
[% IF ( todayissue.od ) %] |
777 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
778 |
[% ELSE %] |
779 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
780 |
[% END %] |
781 |
</span> |
782 |
[% IF todayissue.renewsallowed && todayissue.renewsleft %] |
783 |
<span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> |
784 |
[% END %] |
785 |
<span class="renewals-disabled"> |
786 |
[% END %] |
787 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
788 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
789 |
[% END %] |
790 |
[% IF ( todayissue.renew_error_too_many ) %] |
791 |
Not renewable |
792 |
[% END %] |
700 |
[% END %] |
793 |
[% IF ( todayissue.can_confirm ) %] |
701 |
<button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button> |
794 |
</span> |
702 |
<button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> |
795 |
[% END %] |
703 |
</fieldset> |
796 |
[% END %] |
|
|
797 |
</td> |
798 |
[% END %] |
799 |
[% IF ( todayissue.return_failed ) %] |
800 |
<td class="problem">Checkin failed</td> |
801 |
[% ELSE %] |
802 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
803 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
804 |
<input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" /> |
805 |
</td> |
806 |
[% ELSE %] |
807 |
<td><input type="checkbox" class="radio" name="barcodes[]" value="[% todayissue.barcode %]" /> |
808 |
<input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" /> |
809 |
</td> |
810 |
[% END %] |
811 |
[% END %] |
812 |
[% IF ( exports_enabled ) %] |
813 |
<td style="text-align:center;"> |
814 |
<input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" /> |
815 |
<input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" /> |
816 |
</td> |
817 |
[% END %] |
818 |
</tr> |
819 |
[% END %] <!-- /loop todayissues --> |
820 |
<!-- /if todayissues -->[% END %] |
821 |
|
822 |
[% IF ( previssues ) %] |
823 |
[% UNLESS ( todayissues ) %] |
824 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
825 |
<tbody> |
826 |
[% END %] |
827 |
[% IF ( UseTablesortForCirc ) %]<tr id="previous"><th><span title="">Previous checkouts</span></th><th></th><th></th><th><span title=""></span></th><th></th><th></th><th></th><th></th><th></th><th></th>[% IF ( exports_enabled ) %]<th></th>[% END %]</tr>[% ELSE %]<tr id="previous">[% IF ( exports_enabled ) %]<th colspan="11">[% ELSE %]<th colspan="10">[% END %]Previous checkouts</th></tr>[% END %] |
828 |
[% FOREACH previssue IN previssues %] |
829 |
[% IF ( loop.odd ) %] |
830 |
<tr> |
831 |
[% ELSE %] |
832 |
<tr class="highlight"> |
833 |
[% END %] |
834 |
[% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
835 |
<span title="[% previssue.dd_sort %]">[% previssue.dd %]</span> |
836 |
|
704 |
|
837 |
[% IF ( previssue.itemlost ) %] |
705 |
[% IF ( exports_enabled ) %] |
838 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span> |
706 |
<fieldset> |
839 |
[% END %] |
707 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
840 |
[% IF ( previssue.damaged ) %] |
708 |
<select name="export_formats" id="export_formats"> |
841 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span> |
709 |
<option value="iso2709_995">ISO2709 with items</option> |
842 |
[% END %] |
710 |
<option value="iso2709">ISO2709 without items</option> |
843 |
</td> |
711 |
[% IF ( export_with_csv_profile ) %] |
844 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% previssue.biblionumber %]&type=intra"><strong>[% previssue.title |html %][% FOREACH subtitl IN previssue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% previssue.biblionumber %]&itemnumber=[% previssue.itemnumber %]#item[% previssue.itemnumber %]">[% previssue.barcode %]</a></td> |
712 |
<option value="csv">CSV</option> |
845 |
<td> |
713 |
[% END %] |
846 |
[% previssue.itemtype %] |
714 |
</select> |
847 |
</td> |
715 |
|
848 |
<td><span title="[% previssue.displaydate_sort %]">[% previssue.displaydate %]</span></td> |
716 |
<label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" /> |
849 |
[% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %] |
717 |
<input type="hidden" name="op" value="export" /> |
850 |
<td>[% previssue.issuingbranchname %]</td> |
718 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
851 |
<td>[% previssue.itemcallnumber %]</td> |
719 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
852 |
<td>[% previssue.charge %]</td> |
720 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
853 |
<td>[% previssue.replacementprice %]</td> |
721 |
<button class="btn btn-small" id="export_submit"><i class="icon-download-alt"></i> Export</button> |
854 |
[% IF ( previssue.renew_failed ) %] |
722 |
</fieldset> |
855 |
<td class="problem">Renewal failed</td> |
|
|
856 |
[% ELSE %] |
857 |
<td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span> |
858 |
[% IF ( previssue.can_renew ) %] |
859 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
860 |
[% IF ( previssue.od ) %] |
861 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
862 |
[% ELSE %] |
863 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
864 |
[% END %] |
865 |
[% IF previssue.renewsallowed && previssue.renewsleft %] |
866 |
<span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> |
867 |
[% END %] |
868 |
[% ELSE %] |
869 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
870 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
871 |
[% IF ( previssue.od ) %] |
872 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
873 |
[% ELSE %] |
874 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
875 |
[% END %] |
876 |
</span> |
877 |
[% IF previssue.renewsallowed && previssue.renewsleft %] |
878 |
<span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> |
879 |
[% END %] |
880 |
<span class="renewals-disabled"> |
881 |
[% END %] |
882 |
[% IF ( previssue.renew_error_on_reserve ) %] |
883 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
884 |
[% END %] |
885 |
[% IF ( previssue.renew_error_too_many ) %] |
886 |
Not renewable |
887 |
[% END %] |
888 |
[% IF ( previssue.can_confirm ) %] |
889 |
</span> |
890 |
[% END %] |
891 |
[% END %] |
892 |
</td> |
893 |
[% END %] |
894 |
[% IF ( previssue.return_failed ) %] |
895 |
<td class="problem">Check-in failed</td> |
896 |
[% ELSE %] |
897 |
[% IF ( previssue.renew_error_on_reserve ) %] |
898 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
899 |
<input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" /> |
900 |
</td> |
901 |
[% ELSE %] |
902 |
<td><input type="checkbox" class="radio" name="barcodes[]" value="[% previssue.barcode %]" /> |
903 |
<input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" /> |
904 |
</td> |
905 |
[% END %] |
723 |
[% END %] |
906 |
[% END %] |
724 |
[% END %] |
907 |
[% IF ( exports_enabled ) %] |
|
|
908 |
<td style="text-align:center;"> |
909 |
<input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" /> |
910 |
<input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" /> |
911 |
</td> |
912 |
[% END %] |
913 |
</tr> |
914 |
<!-- /loop previssues -->[% END %] |
915 |
<!--/if previssues -->[% END %] |
916 |
</tbody> |
917 |
</table> |
918 |
[% IF ( issuecount ) %] |
919 |
<fieldset class="action"> |
920 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
921 |
[% IF ( AllowRenewalLimitOverride ) %] |
922 |
<label for="override_limit">Override renewal limit:</label> |
923 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
924 |
[% END %] |
925 |
[% END %] |
926 |
<input type="submit" name="renew_checked" value="Renew or Return checked items" /> |
927 |
<input type="submit" id="renew_all" name="renew_all" value="Renew all" /> |
928 |
</fieldset> |
929 |
[% IF ( exports_enabled ) %] |
930 |
<fieldset> |
931 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
932 |
<select name="export_formats" id="export_formats"> |
933 |
<option value="iso2709_995">ISO2709 with items</option> |
934 |
<option value="iso2709">ISO2709 without items</option> |
935 |
[% IF ( export_with_csv_profile ) %] |
936 |
<option value="csv">CSV</option> |
937 |
[% END %] |
938 |
|
939 |
</select> |
940 |
<label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" /> |
941 |
<input type="hidden" name="op" value="export" /> |
942 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
943 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
944 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
945 |
<input type="button" id="export_submit" value="Export" /> |
946 |
</fieldset> |
947 |
[% END %] |
948 |
[% END %] |
949 |
</form> |
725 |
</form> |
950 |
[% ELSE %] |
726 |
[% ELSE %] |
951 |
<p>Patron has nothing checked out.</p> |
727 |
<p>Patron has nothing checked out.</p> |
952 |
[% END %] |
728 |
[% END %] |
953 |
|
729 |
|
954 |
</div> |
730 |
</div> |
955 |
|
731 |
|
956 |
|
732 |
|
957 |
[% IF ( displayrelissues ) %] |
733 |
[% IF ( relatives_issues_count ) %] |
958 |
<div id="relissues"> |
734 |
<div id="relatives-issues"> |
959 |
<table id="relissuest"> |
735 |
<table id="relatives-issues-table"> |
960 |
<thead> |
736 |
<thead> |
961 |
<tr> |
737 |
<tr> |
962 |
<th scope="col">Due date</th> |
738 |
<th scope="col">Due date</th> |
963 |
<th scope="col">Title</th> |
739 |
<th scope="col">Title</th> |
964 |
<th scope="col">Item type</th> |
740 |
<th scope="col">Item type</th> |
965 |
<th scope="col">Checked out on</th> |
741 |
<th scope="col">Checked out on</th> |
966 |
<th scope="col">Checked out from</th> |
742 |
<th scope="col">Checked out from</th> |
967 |
<th scope="col">Call no</th> |
743 |
<th scope="col">Call no</th> |
968 |
<th scope="col">Charge</th> |
744 |
<th scope="col">Charge</th> |
969 |
<th scope="col">Price</th> |
745 |
<th scope="col">Price</th> |
970 |
<th scope="col">Patron</th> |
746 |
<th scope="col">Patron</th> |
971 |
</tr> |
747 |
</tr> |
972 |
</thead> |
748 |
</thead> |
973 |
[% IF ( relissues ) %] <tbody> |
|
|
974 |
|
975 |
[% FOREACH relissue IN relissues %] |
976 |
[% IF ( loop.odd ) %] |
977 |
<tr> |
978 |
[% ELSE %] |
979 |
<tr class="highlight"> |
980 |
[% END %] |
981 |
[% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %] |
982 |
<span title="[% relissue.dd_sort %]">[% relissue.dd %]</span></td> |
983 |
|
984 |
[% IF ( relissue.itemlost ) %] |
985 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span> |
986 |
[% END %] |
987 |
[% IF ( relissue.damaged ) %] |
988 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span> |
989 |
[% END %] |
990 |
</td> |
991 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissue.biblionumber %]&type=intra"><strong>[% relissue.title |html %][% FOREACH subtitl IN relissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- <span class="circ-hlt">[% relissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relissue.biblionumber %]&itemnumber=[% relissue.itemnumber %]#item[% relissue.itemnumber %]">[% relissue.barcode %]</a></td> |
992 |
<td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td> |
993 |
<td><span title="[% relissue.displaydate_sort %]">[% relissue.displaydate %]</span></td> |
994 |
<td>[% relissue.issuingbranchname %]</td> |
995 |
<td>[% relissue.itemcallnumber %]</td> |
996 |
<td>[% relissue.charge %]</td> |
997 |
<td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td> |
998 |
</tr> |
999 |
[% END %] <!-- /loop relissues --> |
1000 |
<!-- /if relissues -->[% END %] |
1001 |
[% IF ( relprevissues ) %] |
1002 |
[% IF ( UseTablesortForCirc ) %]<tr id="relprevious"><th><span title="">Previous checkouts</span></th><th></th><th></th><th><span title=""></span></th><th></th><th></th><th></th><th></th><th></th></tr>[% ELSE %]<tr id="relprevious"><th colspan="9">Previous checkouts</th></tr>[% END %] |
1003 |
[% FOREACH relprevissue IN relprevissues %] |
1004 |
[% IF ( loop.odd ) %] |
1005 |
<tr> |
1006 |
[% ELSE %] |
1007 |
<tr class="highlight"> |
1008 |
[% END %] |
1009 |
[% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %] |
1010 |
<span title="[% relprevissue.dd_sort %]">[% relprevissue.dd %]</span> |
1011 |
</td> |
1012 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relprevissue.biblionumber %]&type=intra"><strong>[% relprevissue.title |html %][% FOREACH subtitl IN relprevissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( relprevissue.author ) %], by [% relprevissue.author %][% END %] [% IF ( relprevissue.itemnotes ) %]- [% relprevissue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relprevissue.biblionumber %]&itemnumber=[% relprevissue.itemnumber %]#item[% relprevissue.itemnumber %]">[% relprevissue.barcode %]</a></td> |
1013 |
<td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td> |
1014 |
<td><span title="[% relprevissue.displaydate_sort %]">[% relprevissue.displaydate %]</span></td> |
1015 |
<td>[% relprevissue.issuingbranchname %]</td> |
1016 |
<td>[% relprevissue.itemcallnumber %]</td> |
1017 |
[% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %] |
1018 |
<td>[% relprevissue.charge %]</td> |
1019 |
<td>[% relprevissue.replacementprice %]</td> |
1020 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td> |
1021 |
|
1022 |
</tr> |
1023 |
<!-- /loop relprevissue -->[% END %] |
1024 |
<!--/if relprevissues -->[% END %] |
1025 |
</tbody> |
1026 |
</table> |
749 |
</table> |
1027 |
|
|
|
1028 |
</div> |
750 |
</div> |
1029 |
[% END %]<!-- end displayrelissues --> |
751 |
[% END %] |
1030 |
|
752 |
|
1031 |
[% INCLUDE borrower_debarments.inc %] |
753 |
[% INCLUDE borrower_debarments.inc %] |
1032 |
|
754 |
|
1033 |
- |
|
|