Owen Leonard
491c02f2e1
Rebase of a patch originally submitted by gcollum@gmail.com Original commit message: Improvement on the previous patch through the use of GetBranchesLoop. Added code so that the logged in location will be the location that is selected by default. Fixed a couple of minor xhtml errors. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
120 lines
3.6 KiB
Text
120 lines
3.6 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Reports › Serials subscriptions stats</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style type="text/css">
|
|
.sql {display: none;}
|
|
</style>
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
|
<script type="text/JavaScript" language="JavaScript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#resulttable").tablesorter({
|
|
widgets : ['zebra']
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="rep_serials_stats" class="rep">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> › Serials subscriptions stats</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>Serials subscriptions</h1>
|
|
[% IF ( do_it ) %]
|
|
<table id="resulttable">
|
|
<thead>
|
|
<tr>
|
|
<th>Vendor</th>
|
|
<th>Title</th>
|
|
<th>Subscription id</th>
|
|
<th>Branch</th>
|
|
<th>Call number</th>
|
|
<th>Subscription begin</th>
|
|
<th>Subscription end</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
[% FOREACH data IN datas %]
|
|
<td>[% data.name %]</td>
|
|
<td>[% data.title |html %]</td>
|
|
<td>[% data.subscriptionid %]</td>
|
|
<td>[% data.branchcode %]</td>
|
|
<td>[% data.callnumber %]</td>
|
|
<td>[% data.startdate %]</td>
|
|
<td>[% data.enddate %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
[% ELSE %]
|
|
<form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
|
|
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li>
|
|
|
|
<label for="bookseller">
|
|
Vendor:
|
|
</label>
|
|
<select name="bookseller" id="bookseller">
|
|
<option value="">Any Vendor</option>
|
|
[% FOREACH bookseller IN booksellers %]
|
|
<option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
|
|
[% END %]
|
|
</select>
|
|
</li><li>
|
|
<label for="branchcode">
|
|
Library:
|
|
</label>
|
|
<select name="branchcode" id="branchcode">
|
|
<option value="">Any library</option>
|
|
[% FOREACH branche IN branches %]
|
|
[% IF ( branche.selected ) %]
|
|
<option value="[% branche.value %]" selected="selected">[% branche.branchname %]</option>
|
|
[% ELSE %]
|
|
<option value="[% branche.value %]">[% branche.branchname %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
|
|
</li>
|
|
<li>
|
|
<label for="expired">Include expired subscriptions: </label>
|
|
<input type="checkbox" name="expired" id="expired" />
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
|
|
|
|
<fieldset class="rows">
|
|
<legend>Output</legend>
|
|
<ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
|
|
<li><label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" /> <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
|
|
<label class="inline" for="MIME">Into an application</label>[% CGIextChoice %]
|
|
[% CGIsepChoice %]</li></ol>
|
|
</fieldset>
|
|
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" />
|
|
<input type="hidden" name="report_name" value="[% report_name %]" />
|
|
<input type="hidden" name="do_it" value="1" />
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'reports-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|