1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Circulation › Items Overdue as of <!-- TMPL_VAR NAME="todaysdate" --></title>
3 <!-- TMPL_INCLUDE NAME="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">
72 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
75 <!-- TMPL_INCLUDE NAME="header.inc" -->
76 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
78 <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 <!-- TMPL_VAR NAME="todaysdate" --></div>
80 <div id="doc3" class="yui-t2">
86 <!-- TMPL_IF name="noreport" -->
88 <h2>Overdue Report</h2>
90 <p>Please choose one or more filters to proceed.</p>
94 <h2><!-- TMPL_VAR NAME="nnoverdue" --> Item<!-- TMPL_IF NAME="noverdue_is_plural" -->s<!-- /TMPL_IF -->
95 Overdue as of <!-- TMPL_VAR NAME="todaysdate" --><!-- TMPL_IF NAME="isfiltered" --> (filtered)<!-- /TMPL_IF --></h2>
98 <!-- TMPL_IF NAME="isfiltered" -->
99 <a href="overdue.pl?op=csv&<!-- TMPL_VAR name="csv_param_string" escape="HTML" -->">Download file of displayed overdues</a>
101 <a href="overdue.pl?op=csv">Download file of all overdues</a>
104 <div class="sql"><pre><!-- TMPL_VAR NAME="sql" ESCAPE="HTML" --></pre></div>
105 <div class="searchresults">
106 <table id="overduest">
116 <tbody><!-- TMPL_LOOP NAME="overdueloop" -->
118 <td><!-- TMPL_VAR NAME="duedate" --></td>
119 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a>
120 <!-- TMPL_IF NAME="email" -->[<a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Overdue: <!-- TMPL_VAR NAME="title" ESCAPE="html" -->">email</a>]<!-- /TMPL_IF -->
121 (<!--TMPL_IF NAME="phone" --><!-- TMPL_VAR NAME="phone" --><!-- TMPL_ELSIF NAME="mobile" --><!-- TMPL_VAR NAME="mobile" --><!-- TMPL_ELSIF NAME="phonepro" --><!-- TMPL_VAR NAME="phonepro" --><!-- /TMPL_IF -->)</td>
122 <td><!-- TMPL_VAR name="branchcode" --></td>
123 <td><!-- TMPL_INCLUDE NAME="biblio-default-view.inc" --><!-- TMPL_VAR NAME="title" ESCAPE="html" --> <!-- TMPL_VAR NAME="subtitle" --></a> <!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
125 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber=<!-- TMPL_VAR NAME="itemnum" -->#item<!-- TMPL_VAR NAME="itemnum" -->"><!-- TMPL_VAR name="barcode" --></a></td>
126 <td><!-- TMPL_VAR name="itemcallnumber" --></td>
128 <!-- /TMPL_LOOP --></tbody>
132 <!-- /TMPL_IF --> <!-- noreport -->
137 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
138 <fieldset class="brief">
141 <li style="border: dashed; border-width:1px;">Date due:
142 <label for="dateduefrom">From:
143 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateduefrom_button" alt="Show Calendar" />
145 <input type="text" id="dateduefrom" name="dateduefrom" size="20" value="<!-- TMPL_VAR NAME="dateduefrom" -->" />
146 <script language="JavaScript" type="text/javascript">
149 inputField : "dateduefrom",
150 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
151 button : "dateduefrom_button"
156 <label for="datedueto">To:
157 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datedueto_button" alt="Show Calendar" />
159 <input type="text" id="datedueto" name="datedueto" size="20" value="<!-- TMPL_VAR NAME="datedueto" -->" />
160 <script language="JavaScript" type="text/javascript">
163 inputField : "datedueto",
164 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
165 button : "datedueto_button"
170 <li><label>Name or cardnumber:</label><input type="text" name="borname" value="<!--TMPL_VAR Name="borname" escape="html" -->" /></li>
171 <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
172 <!-- TMPL_LOOP name="borcatloop" -->
173 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="value" escape="html" -->" selected="selected"><!-- TMPL_VAR name="catname" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="value" escape="html" -->"><!-- TMPL_VAR name="catname" --></option><!-- /TMPL_IF -->
177 <li><label>Patron flags:</label>
178 <select name="borflag" size="1" id="borflag">
179 <option value="">None</option>
180 <option value="gonenoaddress"<!-- TMPL_IF NAME="borflag_gonenoaddress" --> selected="selected"<!-- /TMPL_IF -->>Address in question</option>
181 <option value="debarred"<!-- TMPL_IF NAME="borflag_debarred" --> selected="selected"<!-- /TMPL_IF -->>Debarred</option>
182 <option value="lost"<!-- TMPL_IF NAME="borflag_lost" --> selected="selected"<!-- /TMPL_IF -->>Lost Card</option>
185 <!-- TMPL_LOOP name="patron_attr_filter_loop" -->
186 <!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
188 <label><!-- TMPL_VAR name="description" -->:</label>
189 <!-- TMPL_IF NAME="authorised_value_category"-->
190 <script type="text/JavaScript" language="JavaScript" x-code="<!-- TMPL_VAR name="code" escape="html" -->">create_auto_completion_responder(<!-- TMPL_VAR name="domid" -->,"<!-- TMPL_VAR name="code" escape="html" -->");</script>
191 <span id="pattrodue-getready-<!-- TMPL_VAR name="domid" -->">
192 <div class="pattrodue-autocomplete">
193 <input autocomplete="off" id="pattrodue-input-<!-- TMPL_VAR name="domid" -->" name="patron_attr_filter_<!-- TMPL_VAR name="code" escape="html" -->" value="<!-- TMPL_VAR name="cgivalue" escape="html" -->" class="pattrodue-input" type="text" />
194 <div id="pattrodue-container-<!-- TMPL_VAR name="domid" -->" class="pattrodue-container"></div>
198 <input type="text" name="patron_attr_filter_<!-- TMPL_VAR name="code" escape="html" -->" value="<!-- TMPL_VAR name="cgivalue" escape="html" -->"/>
200 <!-- TMPL_IF NAME="repeatable"-->
201 <a href="#" onclick="clone_parent(this); return false;">Add</a>
202 <!-- TMPL_IF NAME="isclone" -->
203 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
204 <!-- TMPL_ELSIF NAME="ismany" -->
205 <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
207 <a href="#" onclick="delete_parent(this); return false;" style="visibility: hidden">Delete</a>
213 <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
214 <!-- TMPL_LOOP name="itemtypeloop" --><!-- TMPL_IF NAME="selected" -->
215 <option value="<!-- TMPL_VAR name="value" escape="html" -->" selected="selected"><!-- TMPL_VAR name="itemtypename" --></option><!-- TMPL_ELSE -->
216 <option value="<!-- TMPL_VAR name="value" escape="html" -->"><!-- TMPL_VAR name="itemtypename" --></option><!-- /TMPL_IF -->
222 <label>Library of the patron:</label><select name="branch" id="branch">
223 <option value="">Any</option>
224 <!-- TMPL_LOOP name="branchloop" -->
225 <!-- TMPL_IF NAME="selected" -->
226 <option value="<!-- TMPL_VAR name="value" escape="html" -->" selected="selected"><!-- TMPL_VAR name="branchname" --></option><!-- TMPL_ELSE -->
227 <option value="<!-- TMPL_VAR name="value" escape="html" -->"><!-- TMPL_VAR name="branchname" --></option><!-- /TMPL_IF -->
232 <li><label for="order">Sort By:</label> <select name="order" id="order">
233 <!-- TMPL_LOOP NAME="ORDER_LOOP" -->
234 <!-- TMPL_IF NAME="selected" -->
235 <option value="<!-- TMPL_VAR NAME="ordervalue" DEFAULT="" -->" selected="selected">
237 <option value="<!-- TMPL_VAR NAME="ordervalue" DEFAULT="" -->">
239 <!-- TMPL_IF NAME="order_date_due" -->Due Date
240 <!-- TMPL_ELSIF NAME="order_borrower" -->Patron
241 <!-- TMPL_ELSIF NAME="order_barcode" -->Barcode
242 <!-- TMPL_ELSIF NAME="order_title" -->Title
243 <!-- TMPL_ELSIF NAME="order_date_due_desc" -->Due Date desc
244 <!-- TMPL_ELSIF NAME="order_borrower_desc" -->Patron desc
245 <!-- TMPL_ELSIF NAME="order_barcode_desc" -->Barcode desc
246 <!-- TMPL_ELSIF NAME="order_title_desc" -->Title desc
247 <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="label" -->
248 <!-- TMPL_IF NAME="desc" -->desc<!-- /TMPL_IF -->
252 <!-- TMPL_LOOP name="patron_attr_order_loop" -->
253 <option value="<!-- TMPL_VAR name="value" escape="html" -->"<!-- TMPL_IF NAME="selected" --> selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR name="label" --></option>
257 <li class="radio"><label for="showall">Show any items currently checked out:</label>
258 <!-- TMPL_IF NAME="showall" -->
259 <input type="checkbox" id="showall" name="showall" value="show" checked="checked" />
261 <input type="checkbox" id="showall" name="showall" value="show" />
265 <fieldset class="action">
266 <input type="submit" name="op" value="Apply Filter" class="submit" />
273 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->