Owen Leonard
8c3d3eb01a
I noticed this template used a hidden span to allow correct sorting of titles--a relic of the previous table sorting plugin. I have removed that and added an improved DataTables configuration. To test apply the patch and view the transfers to receive report for a library which has multiple transfers to receive. Sorting should work correctly on all columns, including correct date sorting regardless of dateformat system preference. Title sorting should correctly exclude articles. Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and works nicely. Tested with different date formats. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
102 lines
4.5 KiB
Text
102 lines
4.5 KiB
Text
[% USE KohaDates %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Circulation › Transfers to your library</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
|
|
<script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
|
[% INCLUDE 'datatables-strings.inc' %]
|
|
<script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
[% IF (dateformat == 'metric') %]
|
|
dt_add_type_uk_date();
|
|
[% END %]
|
|
$(document).ready(function() {
|
|
[% FOREACH branchesloo IN branchesloop %]
|
|
$("#transferst[% branchesloo.branchcode %]").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
|
],
|
|
"aoColumns": [
|
|
{ "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null
|
|
],
|
|
"sDom": 't',
|
|
"bPaginate": false
|
|
}));
|
|
[% END %]
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="circ_transferstoreceive" class="circ">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'circ-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Transfers to your library</div>
|
|
|
|
<div id="doc" class="yui-t7">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-g">
|
|
|
|
<h1>Transfers made to your library as of [% show_date %]</h1>
|
|
[% IF ( branchesloop ) %]
|
|
<p>Your library is the destination for the following transfer(s)</p>
|
|
[% IF ( latetransfers ) %]<p>Transfers are <span class="error">considered late</span> after [% TransfersMaxDaysWarning %] days.</p>[% END %]
|
|
<div id="resultlist">
|
|
[% FOREACH branchesloo IN branchesloop %]
|
|
[% IF ( branchesloo.branchcode ) %]
|
|
<table style="width: 100%" id="transferst[% branchesloo.branchcode %]">
|
|
<caption>Coming from [% branchesloo.branchname %]</caption>
|
|
<thead><tr>
|
|
<th>Date of transfer</th>
|
|
<th>Title</th>
|
|
<th>On hold for</th>
|
|
<th>Home library</th>
|
|
<th>Call no.</th>
|
|
<th> </th>
|
|
</tr></thead>
|
|
<tbody>[% FOREACH reser IN branchesloo.reserv %]
|
|
[% IF ( reser.messcompa ) %]
|
|
<tr class="problem">
|
|
[% ELSE %]
|
|
<tr>
|
|
[% END %]
|
|
<td><p><span title="[% reser.datetransfer %]">[% reser.datetransfer | $KohaDates %]</span></p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff %] days late</span>[% END %]</td>
|
|
<td>
|
|
[% INCLUDE 'biblio-default-view.inc' biblionumber = reser.biblionumber %][% reser.title |html %] [% IF ( reser.subtitle ) %] [% FOREACH subtitl IN reser.subtitle %][% subtitl.subfield %][% END %][% END %]</a> [% IF ( reser.author ) %]by [% reser.author %][% END %]
|
|
[% IF ( reser.itemtype ) %] (<b>[% reser.itemtype %]</b>)[% END %]
|
|
<br />Barcode: [% reser.barcode %]
|
|
</td>
|
|
<td>[% IF ( reser.borrowername ) %]
|
|
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.borrowernum %]">
|
|
[% reser.borrowername %] [% reser.borrowerfirstname %]
|
|
</a>
|
|
<br />[% reser.borrowerphone %]<br />
|
|
[% IF ( reser.borrowermail ) %]
|
|
<a href="mailto:[% reser.email %]?subject=Reservation: [% reser.title |html %]">
|
|
[% reser.borrowermail %]
|
|
</a>
|
|
[% END %]
|
|
[% ELSE %]
|
|
<p>None</p>
|
|
[% END %]
|
|
</td>
|
|
<td>[% reser.homebranch %]</td>
|
|
<td>[% reser.itemcallnumber %]</td>
|
|
<td><a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% reser.itemnumber %]&canceltransfer=1&dest=ttr">Cancel transfer</a></td>
|
|
</tr>
|
|
[% END %]</tbody>
|
|
</table>
|
|
[% END %]
|
|
[% END %]
|
|
</div>
|
|
[% ELSE %]
|
|
<p>No transfers to receive</p>
|
|
[% END %]
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|