1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Circulation › Items Overdue as of [% todaysdate %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/JavaScript" language="JavaScript">
6 function clone_parent(node) {
7 var parent = node.parentNode;
8 var clone = parent.cloneNode(true);
9 $("a", clone).attr("style", "visibility: visible");
10 $("input", clone).attr("value", "");
12 var theid = $("span", clone).attr("id") || "";
13 var parts = theid.match(/^pattrodue-getready-(.*)$/);
14 if (parts && parts.length > 1)
16 var appendid = "-" + Math.floor(Math.random()*1000+1);
17 $("span", clone).attr("id",theid+appendid);
19 theid = $("input", clone).attr("id");
20 $("input", clone).attr("id",theid+appendid);
22 theid = $("div[id]", clone).attr("id");
23 $("div[id]", clone).attr("id",theid+appendid);
25 var attrcode = $("script", clone).attr("x-code");
26 var newsuffix = parts[1] + appendid;
27 create_auto_completion_responder(newsuffix,attrcode);
30 parent.parentNode.insertBefore(clone, parent.nextSibling);
32 function delete_parent(node) {
33 var parent = node.parentNode;
34 parent.parentNode.removeChild(parent);
36 function create_auto_completion_responder(uniqueid,attrcode) {
37 YAHOO.util.Event.onContentReady("pattrodue-getready-"+uniqueid, function() {
39 // Define a custom formatter function
40 this.fnCustomFormatter = function(oResultItem, sQuery) {
41 var description = oResultItem[0];
42 var authorised_value = oResultItem[1];
44 "<div class='pattrodue-result'>",
50 return (aMarkup.join(""));
53 // Instantiate an XHR DataSource
54 this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ypattrodue-attr-search-authvalue.pl/"+attrcode, ["\n", "\t"]);
55 this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
56 this.oACDS.maxCacheEntries = 60;
57 this.oACDS.queryMatchSubset = true;
59 // Instantiate an AutoComplete Widget with uniqueid
60 var myInput = document.getElementById('pattrodue-input-'+uniqueid);
61 var myContainer = document.getElementById('pattrodue-container-'+uniqueid);
62 this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
63 this.oAutoComp.formatResult = this.fnCustomFormatter;
69 <style type="text/css">
74 [% INCLUDE 'header.inc' %]
75 [% INCLUDE 'circ-search.inc' %]
77 <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>
79 <div id="doc3" class="yui-t2">
87 <h2>Overdue Report</h2>
89 <p>Please choose one or more filters to proceed.</p>
93 <h2>[% nnoverdue %] Item[% IF ( noverdue_is_plural ) %]s[% END %]
94 Overdue as of [% todaysdate %][% IF ( isfiltered ) %] (filtered)[% END %]</h2>
97 [% IF ( isfiltered ) %]
98 <a href="overdue.pl?op=csv&[% csv_param_string |html %]">Download file of displayed overdues</a>
100 <a href="overdue.pl?op=csv">Download file of all overdues</a>
103 <div class="sql"><pre>[% sql |html %]</pre></div>
104 <div class="searchresults">
105 <table id="overduest">
115 <tbody>[% FOREACH overdueloo IN overdueloop %]
117 <td>[% overdueloo.duedate %]</td>
118 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overdueloo.borrowernumber %]">[% overdueloo.name %]</a>
119 [% IF ( overdueloo.email ) %][<a href="mailto:[% overdueloo.email %]?subject=Overdue: [% overdueloo.title |html %]">email</a>][% END %]
120 ([% IF ( overdueloo.phone ) %][% overdueloo.phone %][% ELSIF ( overdueloo.mobile ) %][% overdueloo.mobile %][% ELSIF ( overdueloo.phonepro ) %][% overdueloo.phonepro %][% END %])</td>
121 <td>[% overdueloo.branchcode %]</td>
122 <td>[% INCLUDE 'biblio-default-view.inc' %][% overdueloo.title |html %] [% overdueloo.subtitle %]</a> [% IF ( overdueloo.author ) %], by [% overdueloo.author %][% END %]
124 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% overdueloo.biblionumber %]&itemnumber=[% overdueloo.itemnum %]#item[% overdueloo.itemnum %]">[% overdueloo.barcode %]</a></td>
125 <td>[% overdueloo.itemcallnumber %]</td>
131 [% END %] <!-- noreport -->
136 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
137 <fieldset class="brief">
140 <li><label>Name or cardnumber:</label><input type="text" name="borname" value="[% borname |html %]" /></li>
141 <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
142 [% FOREACH borcatloo IN borcatloop %]
143 [% IF ( borcatloo.selected ) %]<option value="[% borcatloo.value |html %]" selected="selected">[% borcatloo.catname %]</option>[% ELSE %]<option value="[% borcatloo.value |html %]">[% borcatloo.catname %]</option>[% END %]
147 <li><label>Patron flags:</label>
148 <select name="borflag" size="1" id="borflag">
149 <option value="">None</option>
150 <option value="gonenoaddress"[% IF ( borflag_gonenoaddress ) %] selected="selected"[% END %]>Address in question</option>
151 <option value="debarred"[% IF ( borflag_debarred ) %] selected="selected"[% END %]>Debarred</option>
152 <option value="lost"[% IF ( borflag_lost ) %] selected="selected"[% END %]>Lost Card</option>
155 [% FOREACH patron_attr_filter_loo IN patron_attr_filter_loop %]
156 <!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
158 <label>[% patron_attr_filter_loo.description %]:</label>
159 [% IF ( patron_attr_filter_loo.authorised_value_category ) %]
160 <script type="text/JavaScript" language="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>
161 <span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
162 <div class="pattrodue-autocomplete">
163 <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" />
164 <div id="pattrodue-container-[% patron_attr_filter_loo.domid %]" class="pattrodue-container"></div>
168 <input type="text" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"/>
170 [% IF ( patron_attr_filter_loo.repeatable ) %]
171 <a href="#" onclick="clone_parent(this); return false;">Add</a>
172 [% IF ( patron_attr_filter_loo.isclone ) %]
173 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
174 [% ELSIF ( patron_attr_filter_loo.ismany ) %]
175 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
177 <a href="#" onclick="delete_parent(this); return false;" style="visibility: hidden">Delete</a>
183 <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
184 [% FOREACH itemtypeloo IN itemtypeloop %][% IF ( itemtypeloo.selected ) %]
185 <option value="[% itemtypeloo.value |html %]" selected="selected">[% itemtypeloo.itemtypename %]</option>[% ELSE %]
186 <option value="[% itemtypeloo.value |html %]">[% itemtypeloo.itemtypename %]</option>[% END %]
192 <label>Library of the patron:</label><select name="branch" id="branch">
193 <option value="">Any</option>
194 [% FOREACH branchloo IN branchloop %]
195 [% IF ( branchloo.selected ) %]
196 <option value="[% branchloo.value |html %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]
197 <option value="[% branchloo.value |html %]">[% branchloo.branchname %]</option>[% END %]
202 <li><label for="order">Sort By:</label> <select name="order" id="order">
203 [% FOREACH ORDER_LOO IN ORDER_LOOP %]
204 [% IF ( ORDER_LOO.selected ) %]
205 <option value="[% DEFAULT ORDER_LOO.ordervalue="" %]" selected="selected">
207 <option value="[% DEFAULT ORDER_LOO.ordervalue="" %]">
209 [% IF ( ORDER_LOO.order_date_due ) %]Due Date
210 [% ELSIF ( ORDER_LOO.order_borrower ) %]Patron
211 [% ELSIF ( ORDER_LOO.order_barcode ) %]Barcode
212 [% ELSIF ( ORDER_LOO.order_title ) %]Title
213 [% ELSIF ( ORDER_LOO.order_date_due_desc ) %]Due Date desc
214 [% ELSIF ( ORDER_LOO.order_borrower_desc ) %]Patron desc
215 [% ELSIF ( ORDER_LOO.order_barcode_desc ) %]Barcode desc
216 [% ELSIF ( ORDER_LOO.order_title_desc ) %]Title desc
217 [% ELSE %][% ORDER_LOO.label %]
218 [% IF ( ORDER_LOO.desc ) %]desc[% END %]
222 [% FOREACH patron_attr_order_loo IN patron_attr_order_loop %]
223 <option value="[% patron_attr_order_loo.value |html %]"[% IF ( patron_attr_order_loo.selected ) %] selected="selected"[% END %]>[% patron_attr_order_loo.label %]</option>
227 <li class="radio"><label for="showall">Show any items currently checked out:</label>
229 <input type="checkbox" id="showall" name="showall" value="show" checked="checked" />
231 <input type="checkbox" id="showall" name="showall" value="show" />
235 <fieldset class="action">
236 <input type="submit" name="op" value="Apply Filter" class="submit" />
243 [% INCLUDE 'intranet-bottom.inc' %]