From 3fe0c347c2a90dc65837a4653c24f40de9e7ce3d 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 (cherry picked from commit 2916ddae4ad32886831004d8efe373a62eda198e) Signed-off-by: Chris Nighswonger (cherry picked from commit e13db856d4ceac1bb9b195dd10391cd239c19296) Signed-off-by: Chris Nighswonger --- 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 cf1d9ee4f5..076958c0e9 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 ) { if ( $previousbiblio eq $line->{biblionumber} ) { 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 7753fd33aa..1248365986 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.5