while ( my $line = $sth->fetchrow_hashref ) {
if ($line->{planneddate} && $line->{planneddate} !~/^0+\-/) {
+ $line->{planneddateISO} = $line->{planneddate};
$line->{planneddate} = format_date( $line->{planneddate} );
}
if ($line->{claimdate} && $line->{claimdate} !~/^0+\-/) {
+ $line->{claimdateISO} = $line->{claimdate};
$line->{claimdate} = format_date( $line->{claimdate} );
}
$line->{"status".$line->{status}} = 1;
<title>Koha › Serials › Claims</title>
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'calendar.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>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
//<![CDATA[
- [% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %]
$(document).ready(function() {
[% UNLESS ( preview ) %]
var sTable = $("#claimst").dataTable($.extend(true, {}, dataTablesDefaults, {
"sDom": 't',
- "aoColumnDefs": [
- { "aTargets": [ 0,1 ], "bSortable": false, "bSearchable": false }
- ],
+ [% IF ( letter ) %]
+ "aoColumnDefs": [
+ { "aTargets": [ 0,1 ], "bSortable": false, "bSearchable": false }
+ ],
+ [% ELSE %]
+ "aoColumnDefs": [
+ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
+ ],
+ [% END %]
+ "aoColumns": [
+ [% IF ( letter ) %]null,[% END %]null,null,{ "sType": "anti-the" },null,null,{ "sType": "title-string" },{ "sType": "title-string" }
+ ],
"bPaginate": false
}));
[% END %]
[% IF ( missingissue.status7 ) %]<span class="status-claimed">Claimed</span>[% END %]
</td>
<td class="planneddate">
- [% missingissue.planneddate %]
+ [% IF ( missingissue.planneddate ) %]
+ <span title="[% missingissue.planneddateISO %]">[% missingissue.planneddate %]</span>
+ [% ELSE %]
+ <span title="0000-00-00"></span>
+ [% END %]
</td>
<td>
- [% missingissue.claimdate %]
+ [% IF ( missingissue.claimdate ) %]
+ <span title="[% missingissue.claimdateISO %]">[% missingissue.claimdate %]</span>
+ [% ELSE %]
+ <span title="0000-00-00"></span>
+ [% END %]
</td>
</tr>
[% END %]</tbody>
[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Serials › Serial collection information for [% bibliotitle %]</title>
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<script type="text/javascript">
[% USE KohaDates %]
[% USE AuthorisedValues %]
<title>Koha › Serials [% biblionumber %]</title>
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'calendar.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
dt_add_type_uk_date();
[% END %]
var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, {
-
- "aoColumnDefs": [
- { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
+ [% IF ( routing && CAN_user_serials_routing ) %]
+ "aoColumnDefs": [
+ { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
+ ],
+ [% ELSE %]
+ "aoColumnDefs": [
+ { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
+ ],
+ [% END %]
+ "aoColumns": [
+ null,{ "sType": "anti-the" },null,null,null,{ "sType": "title-string" },
+ [% IF ( routing && CAN_user_serials_routing ) %],null[% END %],null,null
],
"sPaginationType": "four_button"
} ) );
"aoColumnDefs": [
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
],
+ "aoColumns": [
+ null,{ "sType": "anti-the" },null,null,null,null,null,null
+ ],
"sPaginationType": "four_button"
} ) );
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %]
</td>
<td>
- [% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %]
+ [% IF ( subscription.enddate ) %]
+ <span title="[% subscription.enddate %]">[% subscription.enddate | $KohaDates %]</span>
+ [% ELSE %]
+ <span title="0000-00-00"></span>
+ [% END %]
</td>
[% IF ( routing && CAN_user_serials_routing ) %]
<td>