More cleanup and corrections for circulation reports.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / overdue.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Items Overdue as of <!-- TMPL_VAR NAME="todaysdate" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pack.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7 $.tablesorter.addParser({
8     id: 'articles', 
9     is: function(s) {return false;  }, 
10     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
11     type: 'text' 
12 });
13         $(document).ready(function() {
14                 $('#patronlists > ul').tabs();
15                 $.tablesorter.defaults.widgets = ['zebra']; 
16                 $("#overduest").tablesorter({
17                         sortList: [[0,0]],
18                         headers: { 1: { sorter: 'articles' }}
19                 }); 
20         });
21 //]]>
22 </script>
23 </head>
24 <body>
25 <!-- TMPL_INCLUDE NAME="header.inc" -->
26 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
27
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Overdues as of <!-- TMPL_VAR NAME="todaysdate" --></div>
29
30 <div id="doc3" class="yui-t2">
31    
32    <div id="bd">
33         <div id="yui-main">
34         <div class="yui-b">
35
36 <h2>Items Overdue as of <!-- TMPL_VAR NAME="todaysdate" --></h2>
37   
38  <h3>Results</h3>
39 <a href="overdue.pl?op=csv&amp;branch=<!-- TMPL_VAR name="branchfilter" -->">Download file of all overdues</a> (for <!-- TMPL_IF name="branchfilter" -->branch <!-- TMPL_VAR name="branchfilter" --><!-- TMPL_ELSE -->all branches<!-- /TMPL_IF -->. Other filters are ignored)
40 <div class="searchresults">
41 <table id="overduest">
42 <thead><tr>
43     <th>Due Date</th>
44     <th>Patron</th>
45     <th>Branch</th>
46     <th>Title</th>
47 </tr></thead>
48
49 <tbody><!-- TMPL_LOOP NAME="overdueloop" -->
50     <tr>
51         <td><!-- TMPL_VAR NAME="duedate" --></td>
52         <!-- TMPL_IF NAME="email" -->
53         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a> <a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Overdue: <!-- TMPL_VAR NAME="title" -->">[email]</a> (<!-- TMPL_VAR NAME="phone" -->)</td>
54         <!-- TMPL_ELSE -->
55         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a> (<!--TMPL_IF NAME="phone" --><!-- TMPL_VAR NAME="phone" --><!-- TMPL_ELSE -->
56     <!--TMPL_IF NAME="mobile" --><!-- TMPL_VAR NAME="mobile" --><!-- TMPL_ELSE --><!--TMPL_IF NAME="phonepro" -->       <!-- TMPL_VAR NAME="phonepro" --><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->)</td>
57         <!-- /TMPL_IF -->
58         <td><!-- TMPL_VAR name="branchcode" --></td>
59         <td><!-- TMPL_IF name="BiblioDefaultViewmarc" -->
60 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a>
61 <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" -->
62 <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a>
63 <!-- TMPL_ELSE -->
64 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" -->  <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --> <!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
65         </td>
66     </tr>
67 <!-- /TMPL_LOOP --></tbody>
68 </table>
69 </div>
70 </div>
71 </div>
72 <div class="yui-b">
73 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
74   <fieldset class="brief">
75 <h4>Filter On:</h4>
76         <ol>
77     <li><label>Name or cardnumber:</label><input type="text" name="borname" value="<!--TMPL_VAR Name="borname"-->" /></li>
78     <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
79       <!-- TMPL_LOOP name="borcatloop" -->
80         <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="catname" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="catname" --></option><!-- /TMPL_IF -->
81       <!-- /TMPL_LOOP -->
82       </select>
83     </li>
84     <li><label>Patron flags:</label><!--TMPL_VAR Name="CGIflags" --></li>
85     <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
86       <!-- TMPL_LOOP name="itemtypeloop" --><!-- TMPL_IF NAME="selected" -->
87         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="itemtypename" --></option><!-- TMPL_ELSE -->
88         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="itemtypename" --></option><!-- /TMPL_IF -->
89       <!-- /TMPL_LOOP -->
90       </select>
91     </li>
92     <li>
93     <label>Library of the patron:</label><select name="branch" id="branch">
94         <option value="">Any</option>
95       <!-- TMPL_LOOP name="branchloop" -->
96         <!-- TMPL_IF NAME="selected" -->
97         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="itemtypename" --></option><!-- TMPL_ELSE -->
98         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="itemtypename" --></option><!-- /TMPL_IF -->
99       <!-- /TMPL_LOOP -->
100       </select>
101     </li>
102    
103     <li><label for="order">Sort By:</label> <select name="order" id="order">
104 <!-- TMPL_IF NAME="order" -->
105 <option value="">Due Date</option>
106 <!-- TMPL_ELSE --><option value="" selected="selected">Due Date</option><!-- /TMPL_IF -->
107 <option value="borrower">Patron</option>
108 <option value="title">Title</option>
109 <option value="barcode">Barcode</option>
110 <option value="date_due desc">Due Date desc</option>
111 <option value="borrower desc">Patron desc</option>
112 <option value="title desc">Title desc</option>
113 <option value="barcode desc">Barcode</option>
114 </select></li>
115 <li class="radio"><label for="showall">Show any items currently issued:</label> 
116         <!-- TMPL_IF NAME="showall" --><input type="checkbox" id="showall" name="showall" value="show" checked="checked" /><!-- TMPL_ELSE --><input type="checkbox" id="showall" name="showall" value="show" /><!-- /TMPL_IF -->
117 </li>
118 </ol>
119    <fieldset class="action">
120       <input type="submit" value="Apply Filter" class="submit" />
121    </fieldset>   
122    </fieldset>   
123   </form>
124 </div>
125 </div>
126 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->