4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Circulation › Items overdue as of [% todaysdate %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
8 <style type="text/css">
13 <body id="circ_overdue" class="circ">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'circ-search.inc' %]
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Overdues as of [% todaysdate %]</div>
19 <div id="doc3" class="yui-t2">
26 <h2>Overdue report</h2>
27 <p>Please choose one or more filters to proceed.</p>
30 [% IF ( overdueloop ) %]
32 <h2>[% nnoverdue %] [% IF ( noverdue_is_plural ) %]Items[% ELSE %]Item[% END %] overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%;">(Filtered. <a href="/cgi-bin/koha/circ/overdue.pl">Reset filter</a>)</span>[% END %]</h2>
35 [% IF ( isfiltered ) %]
36 <a href="overdue.pl?op=csv&[% csv_param_string |html %]">Download file of displayed overdues</a>
38 <a href="overdue.pl?op=csv">Download file of all overdues</a>
42 <div class="sql"><pre>[% sql |html %]</pre></div>
43 <div class="searchresults">
44 <table id="overduest">
47 <th class="title-string">Due date</th>
56 [%- BLOCK subject -%]Overdue:[%- END -%]
58 [% FOREACH overdueloo IN overdueloop %]
60 <td><span title="[% overdueloo.duedate %]">[% overdueloo.duedate | $KohaDates %]</span></td>
61 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overdueloo.borrowernumber %]">[% overdueloo.surname %][% IF (overdueloo.firstname) %], [% overdueloo.firstname %][% END %] ([% overdueloo.cardnumber %])</a>
62 [% IF ( overdueloo.email ) %][<a href="mailto:[% overdueloo.email %]?subject=[% INCLUDE subject %] [% overdueloo.title |html %]">email</a>][% END %]
63 [% IF ( overdueloo.phone ) %]([% overdueloo.phone %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro %])[% END %]</td>
64 <td>[% IF overdueloo.branchcode %][% Branches.GetName( overdueloo.branchcode ) %][% END %]</td>
65 <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = overdueloo.biblionumber %][% overdueloo.title |html %] [% overdueloo.subtitle %]</a> [% IF ( overdueloo.author ) %], by [% overdueloo.author %][% END %][% IF ( overdueloo.enumchron ) %], [% overdueloo.enumchron %][% END %]</td>
66 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% overdueloo.biblionumber %]&itemnumber=[% overdueloo.itemnum %]#item[% overdueloo.itemnum %]">[% overdueloo.barcode %]</a></td>
67 <td>[% overdueloo.itemcallnumber %]</td>
68 <td>[% overdueloo.replacementprice %]</td>
77 <h2>Overdue report</h2>
78 [% IF ( isfiltered ) %]
79 <p>There are no overdues matching your search. <a href="/cgi-bin/koha/circ/overdue.pl">Reset filter</a></p>
81 <p>There are no overdues.</p>
84 [% END %] <!-- overdueloop -->
85 [% END %] <!-- noreport -->
90 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
91 <fieldset class="brief">
93 <fieldset><legend>Date due:</legend>
95 <li><label for="from">From:</label>
96 <input type="text" id="from" name="dateduefrom" size="10" value="[% dateduefrom | $KohaDates %]" class="datepickerfrom" />
99 <label for="to">To:</label>
100 <input type="text" id="to" name="datedueto" size="10" value="[% datedueto | $KohaDates %]" class="datepickerto" />
104 <li><label>Name or cardnumber:</label><input type="text" name="borname" value="[% borname |html %]" /></li>
105 <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
106 [% FOREACH borcatloo IN borcatloop %]
107 [% IF ( borcatloo.selected ) %]<option value="[% borcatloo.value |html %]" selected="selected">[% borcatloo.catname %]</option>[% ELSE %]<option value="[% borcatloo.value |html %]">[% borcatloo.catname %]</option>[% END %]
111 <li><label>Patron flags:</label>
112 <select name="borflag" size="1" id="borflag">
113 <option value="">None</option>
114 [% IF ( borflag_gonenoaddress ) %]<option value="gonenoaddress" selected="selected">Address in question</option>
115 [% ELSE %]<option value="gonenoaddress">Address in question</option>[% END %]
116 [% IF ( borflag_debarred ) %]<option value="debarred" selected="selected">Restricted</option>
117 [% ELSE %]<option value="debarred">Restricted</option>[% END %]
118 [% IF ( borflag_lost ) %]<option value="lost" selected="selected">Lost card</option>
119 [% ELSE %]<option value="lost">Lost card</option>[% END %]
122 [% FOREACH patron_attr_filter_loo IN patron_attr_filter_loop %]
123 <!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
125 <label>[% patron_attr_filter_loo.description %]:</label>
126 [% IF ( patron_attr_filter_loo.authorised_value_category ) %]
127 <script type="text/javascript" x-code="[% patron_attr_filter_loo.code |html %]">create_auto_completion_responder([% patron_attr_filter_loo.domid %],"[% patron_attr_filter_loo.code |html %]");</script>
128 <span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
129 <div class="pattrodue-autocomplete">
130 <input autocomplete="off" id="pattrodue-input-[% patron_attr_filter_loo.domid %]" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]" class="pattrodue-input" type="text" />
134 <input type="text" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"/>
136 [% IF ( patron_attr_filter_loo.repeatable ) %]
137 <a href="#" onclick="clone_parent(this); return false;">Add</a>
138 [% IF ( patron_attr_filter_loo.isclone ) %]
139 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
140 [% ELSIF ( patron_attr_filter_loo.ismany ) %]
141 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
143 <a href="#" onclick="delete_parent(this); return false;" style="visibility: hidden">Delete</a>
149 <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
150 [% FOREACH itemtypeloo IN itemtypeloop %][% IF ( itemtypeloo.selected ) %]
151 <option value="[% itemtypeloo.value |html %]" selected="selected">[% itemtypeloo.itemtypename %]</option>[% ELSE %]
152 <option value="[% itemtypeloo.value |html %]">[% itemtypeloo.itemtypename %]</option>[% END %]
158 <label>Item home library:</label>
159 <select name="homebranch" id="homebranch">
160 <option value="">Any</option>
161 [% PROCESS options_for_libraries libraries => Branches.all( selected => homebranchfilter ) %]
166 <label>Item holding library:</label>
167 <select name="holdingbranch" id="holdingbranch">
168 <option value="">Any</option>
169 [% PROCESS options_for_libraries libraries => Branches.all( selected => holdingbranchfilter ) %]
174 <label>Library of the patron:</label>
175 <select name="branch" id="branch">
176 <option value="">Any</option>
177 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %]
181 <li class="radio"><label for="showall">Show any items currently checked out:</label>
183 <input type="checkbox" id="showall" name="showall" value="show" checked="checked" />
185 <input type="checkbox" id="showall" name="showall" value="show" />
189 <fieldset class="action">
190 <input type="submit" value="Apply filter" class="submit" />
191 <input type="hidden" name="op" value="apply filter" />
198 [% MACRO jsinclude BLOCK %]
199 [% INCLUDE 'calendar.inc' %]
200 [% INCLUDE 'datatables.inc' %]
201 <script type="text/javascript">
202 function clone_parent(node) {
203 var parent = node.parentNode;
204 var clone = parent.cloneNode(true);
205 parent.parentNode.insertBefore(clone, parent.nextSibling);
206 $("a", clone).attr("style", "visibility: visible");
207 $("input", clone).attr("value", "");
209 var theid = $("span", clone).attr("id") || "";
210 var theid = $("span", clone).attr("id") || "";
211 var parts = theid.match(/^pattrodue-getready-(.*)$/);
212 if (parts && parts.length > 1){
213 var appendid = "-" + Math.floor(Math.random()*1000+1);
214 $("span", clone).attr("id",theid+appendid);
216 theid = $("input", clone).attr("id");
217 $("input", clone).attr("id",theid+appendid);
219 theid = $("div[id]", clone).attr("id");
220 $("div[id]", clone).attr("id",theid+appendid);
222 var attrcode = $("script", clone).attr("x-code");
223 var newsuffix = parts[1] + appendid;
224 create_auto_completion_responder(newsuffix,attrcode);
229 function delete_parent(node) {
230 var parent = node.parentNode;
231 parent.parentNode.removeChild(parent);
234 function create_auto_completion_responder(uniqueid,attrcode) {
235 $("#pattrodue-getready-" + uniqueid).ready(function(){
236 $( "#pattrodue-input-" + uniqueid ).autocomplete({
237 source: "/cgi-bin/koha/circ/ypattrodue-attr-search-authvalue.pl/"+attrcode,
238 select: function( event, ui ) {
239 $( "#pattrodue-input-"+uniqueid ).val( ui.item.description );
243 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
244 return $( "<li></li>" )
245 .data( "ui-autocomplete-item", item )
246 .append( "<a>" + item.description + " (" + item.authorised_value + ")</a>" )
248 .css("font-size","90%").css("width","13em");
253 $(document).ready(function(){
254 $("#overduest").dataTable($.extend(true, {}, dataTablesDefaults, {
255 "sPaginationType": "four_button",
256 "aaSorting": [[0, 'asc']],
258 { "sType": "title-string", "aTargets": [ "title-string" ] }
265 [% INCLUDE 'intranet-bottom.inc' %]