From 000678224988731e236eed402ccc6c54b137e233 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 2 Sep 2011 16:30:18 +0200 Subject: [PATCH 2/3] Bug 6838: Add pagination and filtering on subscriptions table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use dataTables plugin Signed-off-by: Frédéric Demians It works as described in serials-home.pl page. And with Owen styling patch, it looks great. --- C4/Serials.pm | 6 ++- .../prog/en/modules/serials/serials-home.tt | 37 ++++++++++++++------ 2 files changed, 30 insertions(+), 13 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..6fbf31f 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,21 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Serials [% biblionumber %] + [% INCLUDE 'doc-head-close.inc' %] - + + @@ -73,7 +76,7 @@ Serials updated : [% IF ( done_searched ) %]

Serials subscriptions

- +
@@ -85,9 +88,21 @@ Serials updated : [% IF ( routing ) %] [% END %] - + + + + + + + + + + + + + [% FOREACH subscription IN subscriptions %] [% UNLESS ( loop.odd ) %] -- 1.7.6.1
ISSNRouting list