From 6f350c75c6608ace95ec410c27c808f590768885 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 2 Sep 2011 16:30:18 +0200 Subject: [PATCH 4/4] Bug 6838: Add pagination and filtering on subscriptions table Use dataTables plugin --- C4/Serials.pm | 6 ++- .../prog/en/modules/serials/serials-home.tt | 36 ++++++++++++++----- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 18e0ce4..87b0943 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -613,8 +613,10 @@ sub GetSubscriptions { while ( my $line = $sth->fetchrow_hashref ) { if ( $previousbiblio eq $line->{biblionumber} ) { - $line->{title} = ""; - $line->{issn} = ""; + # Disabled for sorting and filtering on issn and title + # to work on serials-home.pl + #$line->{title} = ""; + #$line->{issn} = ""; } else { $previousbiblio = $line->{biblionumber}; $odd = -$odd; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt index 7753fd3..c68ac24 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt @@ -1,18 +1,22 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Serials [% biblionumber %] + [% INCLUDE 'doc-head-close.inc' %] - + +[% INCLUDE 'datatables-strings.inc' %] + @@ -85,9 +89,21 @@ Serials updated : [% IF ( routing ) %] Routing list [% END %] -   +   +   + + + + + + + + + + + [% FOREACH subscription IN subscriptions %] [% UNLESS ( loop.odd ) %] -- 1.7.7.3