Bug 4472 - Missing / in img tags breaking xslt (and other img tags)
[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" language="JavaScript">
5 //<![CDATA[
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", "");
11
12                 var theid = $("span", clone).attr("id") || "";
13                 var parts = theid.match(/^pattrodue-getready-(.*)$/);
14                 if (parts && parts.length > 1)
15                 {
16                         var appendid = "-" + Math.floor(Math.random()*1000+1);
17                         $("span", clone).attr("id",theid+appendid);
18
19                         theid = $("input", clone).attr("id");
20                         $("input", clone).attr("id",theid+appendid);
21
22                         theid = $("div[id]", clone).attr("id");
23                         $("div[id]", clone).attr("id",theid+appendid);
24
25                         var attrcode = $("script", clone).attr("x-code");
26                         var newsuffix = parts[1] + appendid;
27                         create_auto_completion_responder(newsuffix,attrcode);
28                 }
29
30         parent.parentNode.insertBefore(clone, parent.nextSibling);
31     }
32     function delete_parent(node) {
33         var parent = node.parentNode;
34         parent.parentNode.removeChild(parent);
35     }
36         function create_auto_completion_responder(uniqueid,attrcode) {
37                 YAHOO.util.Event.onContentReady("pattrodue-getready-"+uniqueid, function() {
38                         new function() {
39                                 // Define a custom formatter function
40                                 this.fnCustomFormatter = function(oResultItem, sQuery) {
41                                         var description = oResultItem[0];
42                                         var authorised_value = oResultItem[1];
43                                         var aMarkup = [
44                                                 "<div class='pattrodue-result'>",
45                                                 description,
46                                                 " (",
47                                                 authorised_value,
48                                                 ")",
49                                                 "</div>"];
50                                         return (aMarkup.join(""));
51                                 };
52
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;
58
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;
64                         }
65                 });
66         }
67 //]]>
68 </script>
69 <style type="text/css">
70     .sql {display:none;}
71 </style>
72 </head>
73 <body>
74 <!-- TMPL_INCLUDE NAME="header.inc" -->
75 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
76
77 <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>
78
79 <div id="doc3" class="yui-t2">
80
81    <div id="bd">
82         <div id="yui-main">
83         <div class="yui-b">
84
85 <!-- TMPL_IF name="noreport" -->
86
87 <h2>Overdue Report</h2>
88
89 <p>Please choose one or more filters to proceed.</p>
90
91 <!-- TMPL_ELSE -->
92
93 <h2><!-- TMPL_VAR NAME="nnoverdue" --> Item<!-- TMPL_IF NAME="noverdue_is_plural" -->s<!-- /TMPL_IF -->
94          Overdue as of <!-- TMPL_VAR NAME="todaysdate" --><!-- TMPL_IF NAME="isfiltered" --> (filtered)<!-- /TMPL_IF --></h2>
95
96 <p>
97     <!-- TMPL_IF NAME="isfiltered" -->
98       <a href="overdue.pl?op=csv&amp;<!-- TMPL_VAR name="csv_param_string" escape="HTML" -->">Download file of displayed overdues</a>
99     <!-- TMPL_ELSE -->
100       <a href="overdue.pl?op=csv">Download file of all overdues</a>
101     <!-- /TMPL_IF -->
102 </p>
103 <div class="sql"><pre><!-- TMPL_VAR NAME="sql" ESCAPE="HTML" --></pre></div>
104 <div class="searchresults">
105 <table id="overduest">
106 <thead><tr>
107     <th>Due Date</th>
108     <th>Patron</th>
109     <th>Library</th>
110     <th>Title</th>
111     <th>Barcode</th>
112     <th>Call number</th>
113 </tr></thead>
114
115 <tbody><!-- TMPL_LOOP NAME="overdueloop" -->
116     <tr>
117         <td><!-- TMPL_VAR NAME="duedate" --></td>
118         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a>
119         <!-- TMPL_IF NAME="email" -->[<a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Overdue: <!-- TMPL_VAR NAME="title" ESCAPE="html" -->">email</a>]<!-- /TMPL_IF -->
120         (<!--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>
121         <td><!-- TMPL_VAR name="branchcode" --></td>
122         <td><!-- TMPL_IF name="BiblioDefaultViewmarc" -->
123 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a>
124 <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" -->
125 <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a>
126 <!-- TMPL_ELSE -->
127 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" ESCAPE="html" -->  <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --> <!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
128         </td>
129                 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnum" -->#item<!-- TMPL_VAR NAME="itemnum" -->"><!-- TMPL_VAR name="barcode" --></a></td>
130                 <td><!-- TMPL_VAR name="itemcallnumber" --></td>
131         </tr>
132 <!-- /TMPL_LOOP --></tbody>
133 </table>
134
135 </div>
136 <!-- /TMPL_IF -->  <!-- noreport -->
137
138 </div>
139 </div>
140 <div class="yui-b">
141 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
142   <fieldset class="brief">
143 <h4>Filter On:</h4>
144         <ol>
145     <li><label>Name or cardnumber:</label><input type="text" name="borname" value="<!--TMPL_VAR Name="borname" escape="html" -->" /></li>
146     <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
147       <!-- TMPL_LOOP name="borcatloop" -->
148         <!-- 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 -->
149       <!-- /TMPL_LOOP -->
150       </select>
151     </li>
152     <li><label>Patron flags:</label>
153         <select name="borflag" size="1" id="borflag">
154             <option value="">None</option>
155             <option value="gonenoaddress"<!-- TMPL_IF NAME="borflag_gonenoaddress" --> selected="selected"<!-- /TMPL_IF -->>Address in question</option>
156             <option value="debarred"<!-- TMPL_IF NAME="borflag_debarred" --> selected="selected"<!-- /TMPL_IF -->>Debarred</option>
157             <option value="lost"<!-- TMPL_IF NAME="borflag_lost" --> selected="selected"<!-- /TMPL_IF -->>Lost Card</option>
158         </select>
159     </li>
160         <!-- TMPL_LOOP name="patron_attr_filter_loop" -->
161                 <!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
162                 <li>
163                         <label><!-- TMPL_VAR name="description" -->:</label>
164                         <!-- TMPL_IF NAME="authorised_value_category"-->
165                                 <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>
166                                 <span id="pattrodue-getready-<!-- TMPL_VAR name="domid" -->">
167                                                 <div class="pattrodue-autocomplete">
168                                                         <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" />
169                                                         <div id="pattrodue-container-<!-- TMPL_VAR name="domid" -->" class="pattrodue-container"></div>
170                                                 </div>
171                                 </span>
172                         <!-- TMPL_ELSE -->
173                                 <input name="patron_attr_filter_<!-- TMPL_VAR name="code" escape="html" -->" value="<!-- TMPL_VAR name="cgivalue" escape="html" -->"/>
174                         <!-- /TMPL_IF -->
175                         <!-- TMPL_IF NAME="repeatable"-->
176                 <a href="#" onclick="clone_parent(this); return false;">Add</a>
177                 <!-- TMPL_IF NAME="isclone" -->
178                                     <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
179                 <!-- TMPL_ELSIF NAME="ismany" -->
180                                     <a href="#" onclick="delete_parent(this); return false;" style="visibility: visible">Delete</a>
181                 <!-- TMPL_ELSE -->
182                                     <a href="#" onclick="delete_parent(this); return false;" style="visibility: hidden">Delete</a>
183                 <!-- /TMPL_IF -->
184                         <!-- /TMPL_IF -->
185                 </li>
186         <!-- /TMPL_LOOP -->
187
188     <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
189       <!-- TMPL_LOOP name="itemtypeloop" --><!-- TMPL_IF NAME="selected" -->
190         <option value="<!-- TMPL_VAR name="value" escape="html" -->" selected="selected"><!-- TMPL_VAR name="itemtypename" --></option><!-- TMPL_ELSE -->
191         <option value="<!-- TMPL_VAR name="value" escape="html" -->"><!-- TMPL_VAR name="itemtypename" --></option><!-- /TMPL_IF -->
192       <!-- /TMPL_LOOP -->
193       </select>
194     </li>
195
196     <li>
197     <label>Library of the patron:</label><select name="branch" id="branch">
198         <option value="">Any</option>
199       <!-- TMPL_LOOP name="branchloop" -->
200         <!-- TMPL_IF NAME="selected" -->
201         <option value="<!-- TMPL_VAR name="value" escape="html" -->" selected="selected"><!-- TMPL_VAR name="branchname" --></option><!-- TMPL_ELSE -->
202         <option value="<!-- TMPL_VAR name="value" escape="html" -->"><!-- TMPL_VAR name="branchname" --></option><!-- /TMPL_IF -->
203       <!-- /TMPL_LOOP -->
204       </select>
205     </li>
206
207     <li><label for="order">Sort By:</label> <select name="order" id="order">
208 <!-- TMPL_LOOP NAME="ORDER_LOOP" -->
209     <!-- TMPL_IF NAME="selected" -->
210     <option value="<!-- TMPL_VAR NAME="ordervalue" DEFAULT="" -->" selected="selected">
211     <!-- TMPL_ELSE -->
212     <option value="<!-- TMPL_VAR NAME="ordervalue" DEFAULT="" -->">
213     <!-- /TMPL_IF -->
214     <!-- TMPL_IF    NAME="order_date_due"      -->Due Date
215     <!-- TMPL_ELSIF NAME="order_borrower"      -->Patron
216     <!-- TMPL_ELSIF NAME="order_barcode"       -->Barcode
217     <!-- TMPL_ELSIF NAME="order_title"         -->Title
218     <!-- TMPL_ELSIF NAME="order_date_due_desc" -->Due Date desc
219     <!-- TMPL_ELSIF NAME="order_borrower_desc" -->Patron desc
220     <!-- TMPL_ELSIF NAME="order_barcode_desc"  -->Barcode desc
221     <!-- TMPL_ELSIF NAME="order_title_desc"    -->Title desc
222     <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="label" -->
223         <!-- TMPL_IF NAME="desc" -->desc<!-- /TMPL_IF -->
224     <!-- /TMPL_IF -->
225     </option>
226 <!-- /TMPL_LOOP -->
227         <!-- TMPL_LOOP name="patron_attr_order_loop" -->
228             <option value="<!-- TMPL_VAR name="value" escape="html" -->"<!-- TMPL_IF NAME="selected" --> selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR name="label" --></option>
229         <!-- /TMPL_LOOP -->
230 </select></li>
231
232 <li class="radio"><label for="showall">Show any items currently checked out:</label>
233         <!-- TMPL_IF NAME="showall" -->
234             <input type="checkbox" id="showall" name="showall" value="show" checked="checked" />
235     <!-- TMPL_ELSE -->
236         <input type="checkbox" id="showall" name="showall" value="show" />
237     <!-- /TMPL_IF -->
238 </li>
239 </ol>
240    <fieldset class="action">
241       <input type="submit" name="op" value="Apply Filter" class="submit" />
242    </fieldset>
243    </fieldset>
244   </form>
245 </div>
246 </div>
247
248 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->