<div id="yui-main">
<div class="yui-b">
-<h2>Pending holds placed between <!-- TMPL_VAR NAME="from" --> and <!-- TMPL_VAR NAME="to" --></h2>
+<h2>Pending holds<!-- TMPL_IF NAME="run_report" --> placed between <!-- TMPL_VAR NAME="from" --> and <!-- TMPL_VAR NAME="to" --><!-- /TMPL_IF --></h2>
+<!-- TMPL_IF NAME="run_report" -->
<h3>Reported on <!-- TMPL_VAR NAME="todaysdate" --></h3>
<p>The following holds have not been filled. Please retrieve them and check them in.</p>
<div class="searchresults">
<!-- TMPL_IF NAME="reserveloop" -->
<table id="holdst">
- <thead><tr>
+ <thead>
+ <tr>
<th>
Pull This Many Items
</th>
<th >Earliest Hold Date
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=date&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
</th>
-
- </tr></thead>
-
- <tbody> <!-- TMPL_LOOP NAME="reserveloop" -->
+ </tr>
+ </thead>
+ <tbody>
+ <!-- TMPL_IF NAME="next_or_previous" -->
+ <tr>
+ <td colspan="3" align="left">
+ <!-- TMPL_IF NAME="prev_results" -->
+ <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
+ <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
+ <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
+ <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="prev_results" -->">
+ <input type="submit" name="run_report" value="< Prev">
+ </form>
+ <!-- /TMPL_IF -->
+ </td>
+ <td colspan="3"></td>
+ <td colspan="3" align="right">
+ <!-- TMPL_IF NAME="next_results" -->
+ <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
+ <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
+ <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
+ <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="next_results" -->">
+ <input type="submit" name="run_report" value="Next >">
+ </form>
+ <!-- /TMPL_IF -->
+ </td>
+ </tr>
+ <!-- /TMPL_IF -->
+ <!-- TMPL_LOOP NAME="reserveloop" -->
<tr>
<!-- TMPL_IF name="borrowernumber" -->
<td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
<p>
<!-- TMPL_IF name="BiblioDefaultViewmarc" -->
<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
- <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
+ <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
</a>
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="BiblioDefaultViewisbd" -->
<a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
- <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
+ <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
</a>
<!-- TMPL_ELSE -->
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
- <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
+ <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
</a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</p>
- <p><!-- TMPL_VAR NAME="notes" --></p>
</td>
<!-- TMPL_ELSE -->
<td colspan="3">
<!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
</td>
</tr>
- <!-- /TMPL_LOOP --></tbody>
+ <!-- /TMPL_LOOP -->
+ <!-- TMPL_IF NAME="next_or_previous" -->
+ <tr>
+ <td colspan="3" align="left">
+ <!-- TMPL_IF NAME="prev_results" -->
+ <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
+ <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
+ <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
+ <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="prev_results" -->">
+ <input type="submit" name="run_report" value="< Prev">
+ </form>
+ <!-- /TMPL_IF -->
+ </td>
+ <td colspan="3"></td>
+ <td colspan="3" align="right">
+ <!-- TMPL_IF NAME="next_results" -->
+ <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
+ <input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
+ <input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
+ <input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="next_results" -->">
+ <input type="submit" name="run_report" value="Next >">
+ </form>
+ <!-- /TMPL_IF -->
+ </td>
+ </tr>
+ <!-- /TMPL_IF -->
+ </tbody>
</table>
<!-- TMPL_ELSE -->
<b>No items found.</b>
<!-- /TMPL_IF -->
</div>
+<!-- /TMPL_IF -->
</div>
</div>
);
</script></li>
</ol>
-<p><i>(Inclusive, default is 10 years ago to yesterday, set "to" to today as needed. )</i></p>
-<fieldset class="action"><input type="submit" value="Submit" class="submit"/></fieldset>
+<p><i>(Inclusive, default is two days ago to today, set other date ranges as needed. )</i></p>
+<fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
</fieldset>
</form>