@@ -, +, @@ templates - Serials search results (serials/serials-search.pl): Perform a search which will return more than one subscription. The expiration date column is now sorted using the "title-string" filter for sorting based on the unformatted date. The "anti-the" filter has been added to the title column to exclude articles when sorting. - Serials collection (serials/serials-collection.pl): View the serial colection page for an existing subscription. The table of issues should be sorted correctly. - Serial claims (serials/claims.pl): The "since" and "claim date" columns have been modified to use the title-string filter for sorting based on the unformatted date. C4::Serials.pm::GetLateOrMissingIssues has been modified to pass an unformatted date along with the formatted date. The "anti-the" filter has been added to the title column to exclude articles when sorting. --- C4/Serials.pm | 2 ++ .../prog/en/modules/serials/claims.tt | 34 +++++++++++++++------- .../prog/en/modules/serials/serials-collection.tt | 6 ++-- .../prog/en/modules/serials/serials-search.tt | 30 ++++++++++++++----- 4 files changed, 50 insertions(+), 22 deletions(-) --- a/C4/Serials.pm +++ a/C4/Serials.pm @@ -2056,9 +2056,11 @@ sub GetLateOrMissingIssues { 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; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -4,20 +4,26 @@ Koha › Serials › Claims [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] - - -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'datatables-strings.inc' %] - + +[% INCLUDE 'datatables.inc' %]