From 2bbdd93946013716ce4a038f3c615f065c9ae5d5 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 2 Sep 2011 16:30:18 +0200 Subject: [PATCH] Bug 6838: Add pagination and filtering on subscriptions table Use dataTables plugin Signed-off-by: Jared Camins-Esakov --- C4/Serials.pm | 2 - .../prog/en/modules/serials/serials-home.tt | 40 +++++++++++++------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 9cda52e..e9999db 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -608,8 +608,6 @@ sub GetSubscriptions { $sth = $dbh->prepare($sql); $sth->execute(@bind_params); my @results; - my $previousbiblio = ""; - my $odd = 1; while ( my $line = $sth->fetchrow_hashref ) { $line->{'cannotedit'} = 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 fb310d5..ec1faf3 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,16 +89,24 @@ Serials updated : [% IF ( routing ) %] Routing list [% END %] -   +   +   + + + + + + + + + + + [% FOREACH subscription IN subscriptions %] - [% UNLESS ( loop.odd ) %] - - [% ELSE %] - [% END %] [% IF ( subscription.issn ) %][% subscription.issn %] [% END %] -- 1.7.8.3