Koha/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt
Owen Leonard 3c0b1f6225 Bug 9469 - Use Datatables in serials statistics wizard
Replace the tablesorter plugin with the DataTables plugin on the
serials staitsics wizard report.

To test, run the serials statistics wizard (Reports -> Serials). Confirm
that table sorting works correctly.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>

Works with DataTables as it used to work with tablesorter.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-02-12 08:59:43 -05:00

133 lines
4.3 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Reports &rsaquo; Serials subscriptions stats</title>
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
.sql {display: none;}
</style>
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
[% INCLUDE 'datatables-strings.inc' %]
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
<script type="text/javascript">
//<![CDATA[
[% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %]
$(document).ready(function() {
$("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
"sDom": 't',
"bPaginate": false
}));
});
//]]>
</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> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; 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>
<th>Expired? / Closed?</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>
<td>
[% IF data.closed %]
Closed
[% ELSIF data.expired %]
Expired
[% END %]
</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' %]