|
Lines 13-27
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="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
21 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
| 22 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
22 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
| 23 |
<script type="text/javascript"> |
23 |
<script type="text/javascript"> |
| 24 |
//<![CDATA[ |
24 |
//<![CDATA[ |
|
|
25 |
/* Set some variable needed in circulation.js */ |
| 26 |
var interface = "[% interface %]"; |
| 27 |
var theme = "[% theme %]"; |
| 28 |
var borrowernumber = "[% borrowernumber %]"; |
| 29 |
var branchcode = "[% branch %]"; |
| 30 |
|
| 25 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
31 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
| 26 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
32 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
| 27 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
33 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
|
Lines 38-56
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
Link Here
|
| 38 |
} |
44 |
} |
| 39 |
} |
45 |
} |
| 40 |
}[% END %]); |
46 |
}[% END %]); |
| 41 |
[% IF ( UseTablesortForCirc ) %] |
47 |
|
| 42 |
$("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
48 |
$("#issues-table").dataTable(/*$.extend(true, {}, dataTablesDefaults, */{ |
| 43 |
"sDom": 't', |
49 |
"sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", |
| 44 |
"aaSorting": [], |
50 |
"aaSorting": [], |
| 45 |
"aoColumnDefs": [ |
|
|
| 46 |
{ "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false } |
| 47 |
], |
| 48 |
"aoColumns": [ |
51 |
"aoColumns": [ |
| 49 |
{ "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %] |
52 |
{ |
|
|
53 |
"mDataProp": function( oObj ) { |
| 54 |
var today = new Date(); |
| 55 |
var due = new Date( oObj.date_due ); |
| 56 |
if ( today > due ) { |
| 57 |
return "<span class='overdue'>" + oObj.date_due_formatted + "</span>"; |
| 58 |
} else { |
| 59 |
return oObj.date_due_formatted; |
| 60 |
} |
| 61 |
} |
| 62 |
}, |
| 63 |
{ |
| 64 |
"mDataProp": function ( oObj ) { |
| 65 |
title = "<a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber=" |
| 66 |
+ oObj.biblionumber |
| 67 |
+ "'>" |
| 68 |
+ oObj.title |
| 69 |
+ "</a>"; |
| 70 |
|
| 71 |
if ( oObj.author ) { |
| 72 |
title += " " + _("by") + " " + oObj.author; |
| 73 |
} |
| 74 |
|
| 75 |
title += " " |
| 76 |
+ "<a href='/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=" |
| 77 |
+ oObj.biblionumber |
| 78 |
+ "&itemnumber=" |
| 79 |
+ oObj.itemnumber |
| 80 |
+ "#" |
| 81 |
+ oObj.itemnumber |
| 82 |
+ "'>" |
| 83 |
+ oObj.barcode |
| 84 |
+ "</a>"; |
| 85 |
|
| 86 |
return title; |
| 87 |
} |
| 88 |
}, |
| 89 |
{ "mDataProp": "itemtype" }, |
| 90 |
{ "mDataProp": "issuedate" }, |
| 91 |
{ "mDataProp": "branchname" }, |
| 92 |
{ "mDataProp": "itemcallnumber" }, |
| 93 |
{ "mDataProp": "charge" }, |
| 94 |
{ "mDataProp": "price" }, |
| 95 |
{ |
| 96 |
"bSortable": false, |
| 97 |
"mDataProp": function ( oObj ) { |
| 98 |
var content = ""; |
| 99 |
var span_style = ""; |
| 100 |
var span_class = ""; |
| 101 |
|
| 102 |
content += "<span style='padding: 0 1em;'>" + oObj.renewals_count + "</span>"; |
| 103 |
|
| 104 |
if ( oObj.can_renew ) { |
| 105 |
// Do nothing |
| 106 |
} else if ( oObj.can_renew_error == "on_reserve" ) { |
| 107 |
content += "<span class='renewals-disabled'>" |
| 108 |
+ "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + _("On hold") + "</a>" |
| 109 |
+ "</span>"; |
| 110 |
|
| 111 |
span_style = "display: none"; |
| 112 |
span_class = "renewals-allowed"; |
| 113 |
} else if ( oObj.can_renew_error == "too_many" ) { |
| 114 |
content += "<span class='renewals-disabled'>" |
| 115 |
+ _("Not renewable") |
| 116 |
+ "</span>"; |
| 117 |
|
| 118 |
span_style = "display: none"; |
| 119 |
span_class = "renewals-allowed"; |
| 120 |
} else { |
| 121 |
content += "<span class='renewals-disabled'>" |
| 122 |
+ oObj.can_renew_error |
| 123 |
+ "</span>"; |
| 124 |
|
| 125 |
span_style = "display: none"; |
| 126 |
span_class = "renewals-allowed"; |
| 127 |
} |
| 128 |
|
| 129 |
content += "<span class='" + span_class + "' style='" + span_style + "'>" |
| 130 |
+ "<input type='checkbox' class='renew' id='renew_" + oObj.itemnumber + "' name='renew' value='" + oObj.itemnumber +"'/>" |
| 131 |
+ "</span>"; |
| 132 |
|
| 133 |
if ( oObj.renewals_remaining ) { |
| 134 |
content += "<span class='renewals'>(" |
| 135 |
+ oObj.renewals_remaining |
| 136 |
+ " " + _("of") + " " |
| 137 |
+ oObj.renewals_allowed + " " |
| 138 |
+ _("renewals remaining") + ")</span>" |
| 139 |
} |
| 140 |
|
| 141 |
|
| 142 |
return content; |
| 143 |
} |
| 144 |
}, |
| 145 |
{ |
| 146 |
"bSortable": false, |
| 147 |
"mDataProp": function ( oObj ) { |
| 148 |
if ( oObj.can_renew_error == "on_reserve" ) { |
| 149 |
return "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + _("On hold") + "</a>"; |
| 150 |
} else { |
| 151 |
return "<input type='checkbox' class='checkin' id='checkin_" + oObj.itemnumber + "' name='checkin' value='" + oObj.itemnumber +"'></input>"; |
| 152 |
} |
| 153 |
} |
| 154 |
}, |
| 155 |
{ |
| 156 |
"bSortable": false, |
| 157 |
"mDataProp": function ( oObj ) { |
| 158 |
return "<input type='checkbox' class='export' id='export_" + oObj.biblionumber + "' name='biblionumbers' value='" + oObj.biblionumber + "' />"; |
| 159 |
} |
| 160 |
} |
| 50 |
], |
161 |
], |
| 51 |
"bPaginate": false |
162 |
"bPaginate": false, |
| 52 |
})); |
163 |
"bProcessing": true, |
| 53 |
|
164 |
"bServerSide": true, |
|
|
165 |
"sAjaxSource": '/cgi-bin/koha/api/checkouts.pl', |
| 166 |
"fnServerData": function ( sSource, aoData, fnCallback ) { |
| 167 |
aoData.push( { "name": "borrowernumber", "value": "[% borrowernumber %]" } ); |
| 168 |
|
| 169 |
$.getJSON( sSource, aoData, function (json) { |
| 170 |
fnCallback(json) |
| 171 |
} ); |
| 172 |
}, |
| 173 |
}/*)*/); |
| 174 |
|
| 175 |
[%# |
| 54 |
$("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
176 |
$("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 55 |
"sDom": 't', |
177 |
"sDom": 't', |
| 56 |
"aaSorting": [], |
178 |
"aaSorting": [], |
|
Lines 59-86
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
Link Here
|
| 59 |
], |
181 |
], |
| 60 |
"bPaginate": false |
182 |
"bPaginate": false |
| 61 |
})); |
183 |
})); |
|
|
184 |
%] |
| 62 |
|
185 |
|
| 63 |
$("#issuest").on("sort",function() { |
186 |
$("#issues-table").on("sort",function() { |
| 64 |
$("#previous").hide(); // Don't want to see "previous checkouts" header sorted with other rows |
187 |
$("#previous").hide(); // Don't want to see "previous checkouts" header sorted with other rows |
| 65 |
}); |
188 |
}); |
| 66 |
$("#relissuest").on("sort",function() { |
189 |
$("#relissuest").on("sort",function() { |
| 67 |
$("#relprevious").hide(); // Don't want to see "previous checkouts" header sorted with other rows |
190 |
$("#relprevious").hide(); // Don't want to see "previous checkouts" header sorted with other rows |
| 68 |
}); |
191 |
}); |
| 69 |
[% END %] |
192 |
|
| 70 |
[% IF ( AllowRenewalLimitOverride ) %] |
193 |
[% IF ( AllowRenewalLimitOverride ) %] |
| 71 |
$( '#override_limit' ).click( function () { |
194 |
$( '#override_limit' ).click( function () { |
| 72 |
if ( this.checked ) { |
195 |
if ( this.checked ) { |
| 73 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
196 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
| 74 |
} else { |
197 |
} else { |
| 75 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
198 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
| 76 |
} |
199 |
} |
| 77 |
} ).attr( 'checked', false ); |
200 |
} ).attr( 'checked', false ); |
| 78 |
[% END %][% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
201 |
[% END %] |
| 79 |
// listen submit to trigger qslip on empty checkout |
202 |
|
| 80 |
$('#mainform').bind('submit',function() { |
203 |
[% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
| 81 |
if ($('#barcode').val() == '') { |
204 |
// listen submit to trigger qslip on empty checkout |
| 82 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); } |
205 |
$('#mainform').bind('submit',function() { |
| 83 |
});[% END %] |
206 |
if ($('#barcode').val() == '') { |
|
|
207 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); |
| 208 |
} |
| 209 |
}); |
| 210 |
[% END %] |
| 84 |
|
211 |
|
| 85 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
212 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
| 86 |
[% IF ( AllowRenewalLimitOverride ) %] |
213 |
[% IF ( AllowRenewalLimitOverride ) %] |
|
Lines 706-953
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 706 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
833 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
| 707 |
<div id="checkouts"> |
834 |
<div id="checkouts"> |
| 708 |
[% IF ( issuecount ) %] |
835 |
[% IF ( issuecount ) %] |
| 709 |
<form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed"> |
836 |
<table id="issues-table"> |
| 710 |
<input type="hidden" value="circ" name="destination" /> |
837 |
<thead> |
| 711 |
<input type="hidden" name="cardnumber" value="[% cardnumber %]" /> |
838 |
<tr> |
| 712 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
839 |
<th scope="col">Due date</th> |
| 713 |
<input type="hidden" name="branch" value="[% branch %]" /> |
840 |
<th scope="col">Title</th> |
| 714 |
<table id="issuest"> |
841 |
<th scope="col">Item type</th> |
| 715 |
<thead><tr> |
842 |
<th scope="col">Checked out on</th> |
| 716 |
<th scope="col">Due date</th> |
843 |
<th scope="col">Checked out from</th> |
| 717 |
<th scope="col">Title</th> |
844 |
<th scope="col">Call no</th> |
| 718 |
<th scope="col">Item type</th> |
845 |
<th scope="col">Charge</th> |
| 719 |
<th scope="col">Checked out on</th> |
846 |
<th scope="col">Price</th> |
| 720 |
<th scope="col">Checked out from</th> |
847 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> |
| 721 |
<th scope="col">Call no</th> |
848 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> |
| 722 |
<th scope="col">Charge</th> |
849 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> |
| 723 |
<th scope="col">Price</th> |
850 |
</tr> |
| 724 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th> |
851 |
</thead> |
| 725 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th> |
852 |
</table> |
| 726 |
[% IF ( exports_enabled ) %] |
|
|
| 727 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th> |
| 728 |
[% END %] |
| 729 |
</tr></thead> |
| 730 |
[% IF ( todayissues ) %] |
| 731 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
| 732 |
<tbody> |
| 733 |
|
| 734 |
[% FOREACH todayissue IN todayissues %] |
| 735 |
[% IF ( loop.odd ) %] |
| 736 |
<tr> |
| 737 |
[% ELSE %] |
| 738 |
<tr class="highlight"> |
| 739 |
[% END %] |
| 740 |
[% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
| 741 |
<span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span> |
| 742 |
|
853 |
|
| 743 |
[% IF ( todayissue.itemlost ) %] |
854 |
[% IF ( issuecount ) %] |
| 744 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span> |
855 |
<fieldset class="action"> |
| 745 |
[% END %] |
856 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
| 746 |
[% IF ( todayissue.damaged ) %] |
857 |
[% IF ( AllowRenewalLimitOverride ) %] |
| 747 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span> |
858 |
<label for="override_limit">Override renewal limit:</label> |
| 748 |
[% END %] |
859 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
| 749 |
</td> |
|
|
| 750 |
<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> |
| 751 |
<td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td> |
| 752 |
<td><span title="[% todayissue.displaydate_sort %]">[% todayissue.checkoutdate %]</span></td> |
| 753 |
[% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %] |
| 754 |
<td>[% todayissue.issuingbranchname %]</td> |
| 755 |
<td>[% todayissue.itemcallnumber %]</td> |
| 756 |
<td>[% todayissue.charge %]</td> |
| 757 |
<td>[% todayissue.replacementprice %]</td> |
| 758 |
[% IF ( todayissue.renew_failed ) %] |
| 759 |
<td class="problem">Renewal failed</td> |
| 760 |
[% ELSE %] |
| 761 |
<td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span> |
| 762 |
[% IF ( todayissue.can_renew ) %] |
| 763 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
| 764 |
[% IF ( todayissue.od ) %] |
| 765 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
| 766 |
[% ELSE %] |
| 767 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
| 768 |
[% END %] |
| 769 |
[% IF todayissue.renewsallowed && todayissue.renewsleft %] |
| 770 |
<span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> |
| 771 |
[% END %] |
| 772 |
[% ELSE %] |
| 773 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
| 774 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
| 775 |
[% IF ( todayissue.od ) %] |
| 776 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
| 777 |
[% ELSE %] |
| 778 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
| 779 |
[% END %] |
| 780 |
</span> |
| 781 |
[% IF todayissue.renewsallowed && todayissue.renewsleft %] |
| 782 |
<span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> |
| 783 |
[% END %] |
| 784 |
<span class="renewals-disabled"> |
| 785 |
[% END %] |
| 786 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
| 787 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
| 788 |
[% END %] |
| 789 |
[% IF ( todayissue.renew_error_too_many ) %] |
| 790 |
Not renewable |
| 791 |
[% END %] |
860 |
[% END %] |
| 792 |
[% IF ( todayissue.can_confirm ) %] |
|
|
| 793 |
</span> |
| 794 |
[% END %] |
861 |
[% END %] |
| 795 |
[% END %] |
862 |
<button class="btn" id="RenewCheckinChecked"><i class="icon-book"></i> Renew or Return checked items</button> |
| 796 |
</td> |
863 |
<button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> |
| 797 |
[% END %] |
864 |
</fieldset> |
| 798 |
[% IF ( todayissue.return_failed ) %] |
|
|
| 799 |
<td class="problem">Checkin failed</td> |
| 800 |
[% ELSE %] |
| 801 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
| 802 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
| 803 |
<input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" /> |
| 804 |
</td> |
| 805 |
[% ELSE %] |
| 806 |
<td><input type="checkbox" class="radio" name="barcodes[]" value="[% todayissue.barcode %]" /> |
| 807 |
<input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" /> |
| 808 |
</td> |
| 809 |
[% END %] |
| 810 |
[% END %] |
| 811 |
[% IF ( exports_enabled ) %] |
| 812 |
<td style="text-align:center;"> |
| 813 |
<input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" /> |
| 814 |
<input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" /> |
| 815 |
</td> |
| 816 |
[% END %] |
| 817 |
</tr> |
| 818 |
[% END %] <!-- /loop todayissues --> |
| 819 |
<!-- /if todayissues -->[% END %] |
| 820 |
|
865 |
|
| 821 |
[% IF ( previssues ) %] |
|
|
| 822 |
[% UNLESS ( todayissues ) %] |
| 823 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
| 824 |
<tbody> |
| 825 |
[% END %] |
| 826 |
[% 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 %] |
| 827 |
[% FOREACH previssue IN previssues %] |
| 828 |
[% IF ( loop.odd ) %] |
| 829 |
<tr> |
| 830 |
[% ELSE %] |
| 831 |
<tr class="highlight"> |
| 832 |
[% END %] |
| 833 |
[% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
| 834 |
<span title="[% previssue.dd_sort %]">[% previssue.dd %]</span> |
| 835 |
|
| 836 |
[% IF ( previssue.itemlost ) %] |
| 837 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span> |
| 838 |
[% END %] |
| 839 |
[% IF ( previssue.damaged ) %] |
| 840 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span> |
| 841 |
[% END %] |
| 842 |
</td> |
| 843 |
<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> |
| 844 |
<td> |
| 845 |
[% previssue.itemtype %] |
| 846 |
</td> |
| 847 |
<td><span title="[% previssue.displaydate_sort %]">[% previssue.displaydate %]</span></td> |
| 848 |
[% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %] |
| 849 |
<td>[% previssue.issuingbranchname %]</td> |
| 850 |
<td>[% previssue.itemcallnumber %]</td> |
| 851 |
<td>[% previssue.charge %]</td> |
| 852 |
<td>[% previssue.replacementprice %]</td> |
| 853 |
[% IF ( previssue.renew_failed ) %] |
| 854 |
<td class="problem">Renewal failed</td> |
| 855 |
[% ELSE %] |
| 856 |
<td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span> |
| 857 |
[% IF ( previssue.can_renew ) %] |
| 858 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
| 859 |
[% IF ( previssue.od ) %] |
| 860 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
| 861 |
[% ELSE %] |
| 862 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
| 863 |
[% END %] |
| 864 |
[% IF previssue.renewsallowed && previssue.renewsleft %] |
| 865 |
<span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> |
| 866 |
[% END %] |
| 867 |
[% ELSE %] |
| 868 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
| 869 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
| 870 |
[% IF ( previssue.od ) %] |
| 871 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
| 872 |
[% ELSE %] |
| 873 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
| 874 |
[% END %] |
| 875 |
</span> |
| 876 |
[% IF previssue.renewsallowed && previssue.renewsleft %] |
| 877 |
<span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> |
| 878 |
[% END %] |
| 879 |
<span class="renewals-disabled"> |
| 880 |
[% END %] |
| 881 |
[% IF ( previssue.renew_error_on_reserve ) %] |
| 882 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
| 883 |
[% END %] |
| 884 |
[% IF ( previssue.renew_error_too_many ) %] |
| 885 |
Not renewable |
| 886 |
[% END %] |
| 887 |
[% IF ( previssue.can_confirm ) %] |
| 888 |
</span> |
| 889 |
[% END %] |
| 890 |
[% END %] |
| 891 |
</td> |
| 892 |
[% END %] |
| 893 |
[% IF ( previssue.return_failed ) %] |
| 894 |
<td class="problem">Check-in failed</td> |
| 895 |
[% ELSE %] |
| 896 |
[% IF ( previssue.renew_error_on_reserve ) %] |
| 897 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
| 898 |
<input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" /> |
| 899 |
</td> |
| 900 |
[% ELSE %] |
| 901 |
<td><input type="checkbox" class="radio" name="barcodes[]" value="[% previssue.barcode %]" /> |
| 902 |
<input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" /> |
| 903 |
</td> |
| 904 |
[% END %] |
| 905 |
[% END %] |
| 906 |
[% IF ( exports_enabled ) %] |
| 907 |
<td style="text-align:center;"> |
| 908 |
<input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" /> |
| 909 |
<input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" /> |
| 910 |
</td> |
| 911 |
[% END %] |
| 912 |
</tr> |
| 913 |
<!-- /loop previssues -->[% END %] |
| 914 |
<!--/if previssues -->[% END %] |
| 915 |
</tbody> |
| 916 |
</table> |
| 917 |
[% IF ( issuecount ) %] |
| 918 |
<fieldset class="action"> |
| 919 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
| 920 |
[% IF ( AllowRenewalLimitOverride ) %] |
| 921 |
<label for="override_limit">Override renewal limit:</label> |
| 922 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
| 923 |
[% END %] |
| 924 |
[% END %] |
| 925 |
<input type="submit" name="renew_checked" value="Renew or Return checked items" /> |
| 926 |
<input type="submit" id="renew_all" name="renew_all" value="Renew all" /> |
| 927 |
</fieldset> |
| 928 |
[% IF ( exports_enabled ) %] |
866 |
[% IF ( exports_enabled ) %] |
| 929 |
<fieldset> |
867 |
<fieldset> |
| 930 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
868 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
| 931 |
<select name="export_formats" id="export_formats"> |
869 |
<select name="export_formats" id="export_formats"> |
| 932 |
<option value="iso2709_995">ISO2709 with items</option> |
870 |
<option value="iso2709_995">ISO2709 with items</option> |
| 933 |
<option value="iso2709">ISO2709 without items</option> |
871 |
<option value="iso2709">ISO2709 without items</option> |
| 934 |
[% IF ( export_with_csv_profile ) %] |
872 |
[% IF ( export_with_csv_profile ) %] |
| 935 |
<option value="csv">CSV</option> |
873 |
<option value="csv">CSV</option> |
| 936 |
[% END %] |
874 |
[% END %] |
|
|
875 |
</select> |
| 937 |
|
876 |
|
| 938 |
</select> |
877 |
<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" /> |
| 939 |
<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" /> |
878 |
<input type="hidden" name="op" value="export" /> |
| 940 |
<input type="hidden" name="op" value="export" /> |
879 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
| 941 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
880 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
| 942 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
881 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
| 943 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
882 |
<input type="button" id="export_submit" value="Export" /> |
| 944 |
<input type="button" id="export_submit" value="Export" /> |
|
|
| 945 |
</fieldset> |
883 |
</fieldset> |
| 946 |
[% END %] |
884 |
[% END %] |
| 947 |
[% END %] |
885 |
[% END %] |
| 948 |
</form> |
886 |
</form> |
| 949 |
[% ELSE %] |
887 |
[% ELSE %] |
| 950 |
<p>Patron has nothing checked out.</p> |
888 |
<p>Patron has nothing checked out.</p> |
| 951 |
[% END %] |
889 |
[% END %] |
| 952 |
|
890 |
|
| 953 |
</div> |
891 |
</div> |
| 954 |
- |
|
|