1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Circulation › Items overdue as of [% todaysdate %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
6 <script type="text/javascript">
8 function clone_parent(node) {
9 var parent = node.parentNode;
10 var clone = parent.cloneNode(true);
11 parent.parentNode.insertBefore(clone, parent.nextSibling);
12 $("a", clone).attr("style", "visibility: visible");
13 $("input", clone).attr("value", "");
16 var theid = $("span", clone).attr("id") || "";
17 var theid = $("span", clone).attr("id") || "";
18 var parts = theid.match(/^pattrodue-getready-(.*)$/);
19 if (parts && parts.length > 1)
21 var appendid = "-" + Math.floor(Math.random()*1000+1);
22 $("span", clone).attr("id",theid+appendid);
24 theid = $("input", clone).attr("id");
25 $("input", clone).attr("id",theid+appendid);
27 theid = $("div[id]", clone).attr("id");
28 $("div[id]", clone).attr("id",theid+appendid);
30 var attrcode = $("script", clone).attr("x-code");
31 var newsuffix = parts[1] + appendid;
32 create_auto_completion_responder(newsuffix,attrcode);
38 function delete_parent(node) {
39 var parent = node.parentNode;
40 parent.parentNode.removeChild(parent);
43 function create_auto_completion_responder(uniqueid,attrcode) {
44 $("#pattrodue-getready-" + uniqueid).ready(function(){
45 $( "#pattrodue-input-" + uniqueid ).autocomplete({
46 source: "/cgi-bin/koha/circ/ypattrodue-attr-search-authvalue.pl/"+attrcode,
47 select: function( event, ui ) {
48 $( "#pattrodue-input-"+uniqueid ).val( ui.item.description );
52 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
53 return $( "<li></li>" )
54 .data( "ui-autocomplete-item", item )
55 .append( "<a>" + item.description + " (" + item.authorised_value + ")</a>" )
57 .css("font-size","90%").css("width","13em");
63 <style type="text/css">
67 <body id="circ_overdue" class="circ">
68 [% INCLUDE 'header.inc' %]
69 [% INCLUDE 'circ-search.inc' %]
71 <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>
73 <div id="doc3" class="yui-t2">
81 <h2>Overdue report</h2>
83 <p>Please choose one or more filters to proceed.</p>
87 <h2>[% nnoverdue %] [% IF ( noverdue_is_plural ) %]Items[% ELSE %]Item[% END %]
88 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>
91 [% IF ( isfiltered ) %]
92 <a href="overdue.pl?op=csv&[% csv_param_string |html %]">Download file of displayed overdues</a>
94 <a href="overdue.pl?op=csv">Download file of all overdues</a>
97 <div class="sql"><pre>[% sql |html %]</pre></div>
98 <div class="searchresults">
99 <table id="overduest">
110 [%- BLOCK subject -%]Overdue:[%- END -%]
112 <tbody>[% FOREACH overdueloo IN overdueloop %]
114 <td>[% overdueloo.duedate %]</td>
115 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overdueloo.borrowernumber %]">[% overdueloo.surname %][% IF (overdueloo.firstname) %], [% overdueloo.firstname %][% END %] ([% overdueloo.cardnumber %])</a>
116 [% IF ( overdueloo.email ) %][<a href="mailto:[% overdueloo.email %]?subject=[% INCLUDE subject %] [% overdueloo.title |html %]">email</a>][% END %]
117 [% IF ( overdueloo.phone ) %]([% overdueloo.phone %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro %])[% END %]</td>
118 <td>[% IF overdueloo.branchcode %][% Branches.GetName( overdueloo.branchcode ) %][% END %]</td>
119 <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 %]
121 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% overdueloo.biblionumber %]&itemnumber=[% overdueloo.itemnum %]#item[% overdueloo.itemnum %]">[% overdueloo.barcode %]</a></td>
122 <td>[% overdueloo.itemcallnumber %]</td>
123 <td>[% overdueloo.replacementprice %]</td>
129 [% END %] <!-- noreport -->
134 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
135 <fieldset class="brief">
137 <fieldset><legend>Date due:</legend>
139 <li><label for="from">From:</label>
140 <input type="text" id="from" name="dateduefrom" size="10" value="[% dateduefrom %]" class="datepickerfrom" />
143 <label for="to">To:</label>
144 <input type="text" id="to" name="datedueto" size="10" value="[% datedueto %]" class="datepickerto" />
148 <li><label>Name or cardnumber:</label><input type="text" name="borname" value="[% borname |html %]" /></li>
149 <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
150 [% FOREACH borcatloo IN borcatloop %]
151 [% IF ( borcatloo.selected ) %]<option value="[% borcatloo.value |html %]" selected="selected">[% borcatloo.catname %]</option>[% ELSE %]<option value="[% borcatloo.value |html %]">[% borcatloo.catname %]</option>[% END %]
155 <li><label>Patron flags:</label>
156 <select name="borflag" size="1" id="borflag">
157 <option value="">None</option>
158 [% IF ( borflag_gonenoaddress ) %]<option value="gonenoaddress" selected="selected">Address in question</option>
159 [% ELSE %]<option value="gonenoaddress">Address in question</option>[% END %]
160 [% IF ( borflag_debarred ) %]<option value="debarred" selected="selected">Restricted</option>
161 [% ELSE %]<option value="debarred">Restricted</option>[% END %]
162 [% IF ( borflag_lost ) %]<option value="lost" selected="selected">Lost card</option>
163 [% ELSE %]<option value="lost">Lost card</option>[% END %]
166 [% FOREACH patron_attr_filter_loo IN patron_attr_filter_loop %]
167 <!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
169 <label>[% patron_attr_filter_loo.description %]:</label>
170 [% IF ( patron_attr_filter_loo.authorised_value_category ) %]
171 <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>
172 <span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
173 <div class="pattrodue-autocomplete">
174 <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" />
178 <input type="text" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"/>
180 [% IF ( patron_attr_filter_loo.repeatable ) %]
181 <a href="#" onclick="clone_parent(this); return false;">Add</a>
182 [% IF ( patron_attr_filter_loo.isclone ) %]
183 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
184 [% ELSIF ( patron_attr_filter_loo.ismany ) %]
185 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
187 <a href="#" onclick="delete_parent(this); return false;" style="visibility: hidden">Delete</a>
193 <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
194 [% FOREACH itemtypeloo IN itemtypeloop %][% IF ( itemtypeloo.selected ) %]
195 <option value="[% itemtypeloo.value |html %]" selected="selected">[% itemtypeloo.itemtypename %]</option>[% ELSE %]
196 <option value="[% itemtypeloo.value |html %]">[% itemtypeloo.itemtypename %]</option>[% END %]
202 <label>Item home library:</label>
203 <select name="homebranch" id="homebranch">
204 <option value="">Any</option>
205 [% FOREACH homebranchloo IN homebranchloop %][% IF ( homebranchloo.selected ) %]
206 <option value="[% homebranchloo.value |html %]" selected="selected">[% homebranchloo.branchname %]</option>[% ELSE %]
207 <option value="[% homebranchloo.value |html %]">[% homebranchloo.branchname %]</option>[% END %]
213 <label>Item holding library:</label>
214 <select name="holdingbranch" id="holdingbranch">
215 <option value="">Any</option>
216 [% FOREACH holdingbranchloo IN holdingbranchloop %][% IF ( holdingbranchloo.selected ) %]
217 <option value="[% holdingbranchloo.value |html %]" selected="selected">[% holdingbranchloo.branchname %]</option>[% ELSE %]
218 <option value="[% holdingbranchloo.value |html %]">[% holdingbranchloo.branchname %]</option>[% END %]
224 <label>Library of the patron:</label><select name="branch" id="branch">
225 <option value="">Any</option>
226 [% FOREACH branchloo IN branchloop %]
227 [% IF ( branchloo.selected ) %]
228 <option value="[% branchloo.value |html %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]
229 <option value="[% branchloo.value |html %]">[% branchloo.branchname %]</option>[% END %]
234 <li><label for="order">Sort by:</label> <select name="order" id="order">
235 [% FOREACH ORDER_LOO IN ORDER_LOOP %]
236 [% IF ( ORDER_LOO.selected ) %]
237 <option value="[% ORDER_LOO.ordervalue %]" selected="selected">
239 <option value="[% ORDER_LOO.ordervalue %]">
241 [% IF ( ORDER_LOO.order_date_due ) %]Due date
242 [% ELSIF ( ORDER_LOO.order_borrower ) %]Patron
243 [% ELSIF ( ORDER_LOO.order_barcode ) %]Barcode
244 [% ELSIF ( ORDER_LOO.order_title ) %]Title
245 [% ELSIF ( ORDER_LOO.order_date_due_desc ) %]Due date desc
246 [% ELSIF ( ORDER_LOO.order_borrower_desc ) %]Patron desc
247 [% ELSIF ( ORDER_LOO.order_barcode_desc ) %]Barcode desc
248 [% ELSIF ( ORDER_LOO.order_title_desc ) %]Title desc
249 [% ELSE %][% ORDER_LOO.label %]
250 [% IF ( ORDER_LOO.desc ) %]desc[% END %]
254 [% FOREACH patron_attr_order_loo IN patron_attr_order_loop %]
255 [% IF ( patron_attr_order_loo.selected ) %]<option value="[% patron_attr_order_loo.value |html %]" selected="selected">[% patron_attr_order_loo.label %]</option>
256 [% ELSE %]<option value="[% patron_attr_order_loo.value |html %]">[% patron_attr_order_loo.label %]</option>[% END %]
260 <li class="radio"><label for="showall">Show any items currently checked out:</label>
262 <input type="checkbox" id="showall" name="showall" value="show" checked="checked" />
264 <input type="checkbox" id="showall" name="showall" value="show" />
268 <fieldset class="action">
269 <input type="submit" value="Apply filter" class="submit" />
270 <input type="hidden" name="op" value="apply filter" />
277 [% INCLUDE 'intranet-bottom.inc' %]