+[% USE KohaDates %]
+[% USE Branches %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Reports › serials subscriptions stats</title>
+<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">
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
+<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
- $("#resulttable").tablesorter({
- widgets : ['zebra']
- });
+ $("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "sDom": 't',
+ "bPaginate": false,
+ "aoColumns": [
+ null,{ "sType": "anti-the" },null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null
+ ],
+ }));
});
//]]>
</script>
</head>
-<body>
+<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> › Items with no checkouts</div>
+<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">
<th>Title</th>
<th>Subscription id</th>
<th>Branch</th>
- <th>Call Number</th>
- <th>Subscription Begin</th>
- <th>Subscription End</th>
+ <th>Call number</th>
+ <th>Subscription begin</th>
+ <th>Subscription end</th>
+ <th>Expired? / Closed?</th>
</tr>
</thead>
<tbody>
<tr>
[% FOREACH data IN datas %]
- <td>[% data.name %]</td>
- <td>[% data.title |html %]</td>
+ <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% data.aqbooksellerid %]">[% data.name %]</a></td>
+ <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% data.subscriptionid %]">[% data.title |html %]</a></td>
<td>[% data.subscriptionid %]</td>
- <td>[% data.branchcode %]</td>
+ <td>[% Branches.GetName( data.branchcode ) %]</td>
<td>[% data.callnumber %]</td>
- <td>[% data.startdate %]</td>
- <td>[% data.enddate %]</td>
+ <td><span title="[% data.startdate %]">[% data.startdate | $KohaDates %]</span></td>
+ <td><span title="[% data.enddate %]">[% data.enddate | $KohaDates %]</span></td>
+ <td>
+ [% IF data.closed %]
+ Closed
+ [% ELSIF data.expired %]
+ Expired
+ [% END %]
+ </td>
</tr>
[% END %]
</tr>
Vendor:
</label>
<select name="bookseller" id="bookseller">
- <option value="">Any Vendor</option>
+ <option value="">Any vendor</option>
[% FOREACH bookseller IN booksellers %]
<option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
[% END %]
</select>
</li><li>
- <label for="branch">
+ <label for="branchcode">
Library:
</label>
<select name="branchcode" id="branchcode">
<option value="">Any library</option>
- [% FOREACH branche IN branches %]
- <option value="[% branche.branchcode %]">[% branche.branchname %]</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" />
+ <input type="checkbox" name="expired" id="expired" />
</li>
</ol>
</fieldset>