From 2916ddae4ad32886831004d8efe373a62eda198e 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 Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain --- 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 9cda52ecfc..e9999dbae9 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 fb310d5279..ec1faf31c2 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 %] -- 2.39.2