Adding new report templates
authoroleonard <oleonard>
Thu, 1 Apr 2004 21:35:58 +0000 (21:35 +0000)
committeroleonard <oleonard>
Thu, 1 Apr 2004 21:35:58 +0000 (21:35 +0000)
koha-tmpl/intranet-tmpl/npl/en/reports/inventory.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/reports/issues_by_borrower_category.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/reports/itemtypes.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/reports/reports-home.tmpl

diff --git a/koha-tmpl/intranet-tmpl/npl/en/reports/inventory.tmpl b/koha-tmpl/intranet-tmpl/npl/en/reports/inventory.tmpl
new file mode 100644 (file)
index 0000000..6cb1acd
--- /dev/null
@@ -0,0 +1,99 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Reports: Inventory<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!-- TMPL_INCLUDE NAME="masthead.inc" -->
+<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
+
+<div id="main">
+<h1>Inventory Report</h1>
+<form method="post">
+       <div class="table"><div class="details"><table>
+       <caption>Select items you want to check</caption>
+               <tr>
+                       <th>Item Location (items.bulk) between:</th>
+                       <td><input type="text" name="minlocation" value="<!-- TMPL_VAR name="minlocation" -->" /></td>
+               </tr>
+               <tr>
+               <th>...and:</th><td><input type="text" name="maxlocation" value="<!-- TMPL_VAR name="maxlocation" -->" /></td>
+               </tr>
+               <tr>
+                       <th>Not seen since:</th>
+                       <td>
+                               <input type="text" name="datelastseen" value="<!-- TMPL_VAR name="datelastseen" -->" />
+                       </td>
+               </tr>
+               <tr>
+                       <th>Show:</th>
+                       <td><input type="text" name="pagesize" value="<!-- TMPL_VAR name="pagesize" -->" /></td>
+               </tr>
+               <tr><th>Beginning at offset: </th><td><input type="text" name="offset" value="<!-- TMPL_VAR name="offset" -->" /></td></tr>
+       </table><input type="submit" value="Submit" class="submit" /></div></div>
+</form>
+
+<form method="post">
+<input type="hidden" name="markseen" value="1" />
+<input type="hidden" name="minlocation" value="<!-- TMPL_VAR name="minlocation" -->" />
+<input type="hidden" name="maxlocation" value="<!-- TMPL_VAR name="maxlocation" -->" />
+<input type="hidden" name="datelastseen" value="<!-- TMPL_VAR name="datelastseen" -->" />
+<input type="hidden" name="pagesize" value="<!-- TMPL_VAR name="pagesize" -->" />
+<input type="hidden" name="offset" value="<!-- TMPL_VAR name="offset" -->" />
+<!-- TMPL_IF name="loop" -->
+<table width="100%">
+       <tr>
+               <th>Seen</th>
+               <th>Barcode</th>
+               <th>Bulk</th>
+               <th>Title</th>
+               <th>Author</th>
+       </tr>
+<!-- TMPL_LOOP name="loop" -->
+       <tr>
+               <td>
+                       <input type="checkbox" name="SEEN-<!-- TMPL_VAR name="itemnumber" -->" value="1" />
+               </td>
+               <td>
+                       <!-- TMPL_VAR name="barcode" -->
+               </td>
+               <td>
+                       <!-- TMPL_VAR name="bulk" -->
+               </td>
+               <td>
+                       <!-- TMPL_VAR name="title" -->
+               </td>
+               <td>
+                       <!-- TMPL_VAR name="author" -->
+               </td>
+       </tr>
+<!-- /TMPL_LOOP -->
+</table>
+<input type="submit" value="Mark seen" class="submit" />
+</form>
+<!-- /TMPL_IF -->
+
+<table>
+<tr>
+       <td>
+               <!-- TMPL_IF name="offset" -->
+               <form method="post">
+                       <input type="hidden" name="minlocation" value="<!-- TMPL_VAR name="minlocation" -->" />
+                       <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR name="maxlocation" -->" />
+                       <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR name="datelastseen" -->" />
+                       <input type="hidden" name="pagesize" value="<!-- TMPL_VAR name="pagesize" -->" />
+                       <input type="hidden" name="offset" value="<!-- TMPL_VAR name="prevoffset" -->" />
+                       <input type="submit" value="&lt;&lt;&lt;" class="submit" />
+               </form>
+               <!-- /TMPL_IF -->
+       </td>
+       <td>
+               <!-- TMPL_IF name="nextoffset" -->
+               <form method="post">
+                       <input type="hidden" name="minlocation" value="<!-- TMPL_VAR name="minlocation" -->" />
+                       <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR name="maxlocation" -->" />
+                       <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR name="datelastseen" -->" />
+                       <input type="hidden" name="pagesize" value="<!-- TMPL_VAR name="pagesize" -->" />
+                       <input type="hidden" name="offset" value="<!-- TMPL_VAR name="nextoffset" -->" />
+                       <input type="submit" value="&gt;&gt;&gt;" class="submit" />
+               </form>
+               <!-- /TMPL_IF -->
+       </td>
+</tr>
+</table></div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
diff --git a/koha-tmpl/intranet-tmpl/npl/en/reports/issues_by_borrower_category.tmpl b/koha-tmpl/intranet-tmpl/npl/en/reports/issues_by_borrower_category.tmpl
new file mode 100644 (file)
index 0000000..08a9b47
--- /dev/null
@@ -0,0 +1,52 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Reports<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!-- TMPL_INCLUDE NAME="masthead.inc" -->
+<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
+<div id="main">
+<!-- TMPL_IF name="do_it" -->
+<!-- TMPL_LOOP name="mainloop" -->
+       <h1>Koha : Issues by borrower category <!--TMPL_IF name="borrower_category" --> for category = <!-- TMPL_VAR name="borrower_category" --><!-- /TMPL_IF --></h1>
+       <table>
+               <tr>
+                       <th>&nbsp;</th>
+                       <!-- TMPL_LOOP name="categorycodeloop" -->
+                               <th><!-- TMPL_VAR name="categorycode" --></th>
+                       <!-- /TMPL_LOOP -->
+                       <th>TOTAL</th>
+               </tr>
+                       <!-- TMPL_LOOP name="loopborrowertype" -->
+                               <tr>
+                                       <td>
+                                       <!-- TMPL_VAR name="itemtype" --></td>
+                                       <!-- TMPL_LOOP name="loopitemtype" -->
+                                               <td>
+                                                       <!-- TMPL_VAR name="issues" -->
+                                               </td>
+                                       <!-- /TMPL_LOOP -->
+                                       <td>
+                                               <!-- TMPL_VAR name="totalitemtype" -->
+                                       </td>
+                               </tr>
+                       <!-- /TMPL_LOOP name="loopitemtype" -->
+                       <tr>
+                               <th>TOTAL</th>
+                               <!-- TMPL_LOOP name="loopborrowertotal" -->
+                                       <th>
+                                               <!-- TMPL_VAR name="issues" -->
+                                       </th>
+                               <!-- /TMPL_LOOP -->
+                               <th>&nbsp;</th>
+                       </tr>
+       </table>
+<!-- /TMPL_LOOP -->
+<!-- TMPL_ELSE -->
+       <h1>Issues by patron category</h1>
+       <form method="post">
+               <p>Select a patron category (leave blank to select all) <input type="text" name="value" /></p>
+               <p>Select a branch : <!-- TMPL_VAR name="CGIbranch" --></p>
+               <input type="submit" value="Submit" class="submit" />
+               <input type="hidden" name="report_name" value="<!--TMPL_VAR name="report_name" -->" />
+               <input type="hidden" name="do_it" value="1" />
+       </form>
+<!-- /TMPL_IF -->
+</div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
diff --git a/koha-tmpl/intranet-tmpl/npl/en/reports/itemtypes.tmpl b/koha-tmpl/intranet-tmpl/npl/en/reports/itemtypes.tmpl
new file mode 100644 (file)
index 0000000..5e0c468
--- /dev/null
@@ -0,0 +1,32 @@
+<!-- TMPL_INCLUDE NAME="reports-top.inc" -->
+<div id="mainbloc">
+<!-- TMPL_IF name="do_it" -->
+<!-- TMPL_LOOP name="mainloop" -->
+       <h1>Koha : Reports on itemtypes <!--TMPL_IF name="branch" --> for branch = <!-- TMPL_VAR name="branch" --><!-- /TMPL_IF --></h1>
+       <table>
+               <tr>
+                       <th>Item type</th>
+                       <th>count</th>
+               </tr>
+                       <!-- TMPL_LOOP name="loopitemtype" -->
+                               <tr>
+                                       <td><!-- TMPL_VAR name="itemtype" --></td>
+                                       <td><!-- TMPL_VAR name="count" --></td>
+                               </tr>
+                       <!-- /TMPL_LOOP name="loopitemtype" -->
+                       <tr>
+                               <th>TOTAL</th>
+                               <th><!-- TMPL_VAR name="total" --></th>
+       </table>
+<!-- /TMPL_LOOP -->
+<!-- TMPL_ELSE -->
+       <h1>View catalogue group by itemtypes</h1>
+       <form method="post">
+               Select a branch (or don't if you want the report for all branches) <!-- TMPL_VAR name="CGIbranch" -->
+               <input type="submit" value="OK" class="button">
+               <input type="hidden" name="report_name" value="<!--TMPL_VAR name="report_name" -->">
+               <input type="hidden" name="do_it" value="1">
+       </form>
+<!-- /TMPL_IF -->
+</div>
+<!-- TMPL_INCLUDE NAME="reports-bottom.inc" -->
index 22260d6..785955e 100644 (file)
@@ -8,6 +8,9 @@
 <li><a href="/cgi-bin/koha/stats.pl?time=today">Till Reconciliation:</a> Daily
 Report (today)</li>
 <li><a href="/cgi-bin/koha/overdue.pl">Overdue items</a></li>
+       <li><a href="/cgi-bin/koha/reports/inventory.pl">Inventory/Stocktaking</a></li>
+       <li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalogue by itemtype</a></li>
+       <li><a href="/cgi-bin/koha/reports/manager.pl?report_name=issues_by_borrower_category">Issues by borrower category</a></li>
 </ul></div></div>
 
 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->