From eddd8b15ba351014242d4bb9d209964a118c65df Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 3 Sep 2012 11:44:21 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 8715: Receive all serials for a year. Content-Type: text/plain; charset="utf-8" This patch adds - 2 links in the table header (select all and clear all). - Datatable on these tables Test plan: Try to select all serials for a year and receive them. Test there is no regression (ergonomic) on this page Signed-off-by: Owen Leonard --- .../prog/en/modules/serials/serials-collection.tt | 57 ++++++++++++++++---- serials/serials-collection.pl | 3 +- 2 files changed, 50 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt index 23b496b..fc658c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt @@ -1,6 +1,10 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Serials › Serial collection information for [% bibliotitle %] + [% INCLUDE 'doc-head-close.inc' %] + + + @@ -193,8 +217,9 @@ $(document).ready(function() {

[% END %] - - +
+ + [% IF ( subscriptions.size > 1 ) %] [% END %] @@ -211,8 +236,21 @@ $(document).ready(function() { [% IF ( routing ) %][% END %] - [% IF ( CAN_user_serials_receive_serials ) %][% END %] + [% IF ( CAN_user_serials_receive_serials ) %] + + [% END %] + + [% FOREACH serial IN year.serials %] [% UNLESS ( loop.odd ) %][% ELSE %][% END %] [% IF ( subscriptions.size > 1 ) %] @@ -250,17 +288,18 @@ $(document).ready(function() { [% ELSE %] [% IF ( serial.checked ) %] - + [% ELSE %] - - [% END %] + + [% END %] [% END %] [% END %] [% END %] - [% END %] -
# SubsLibrary RoutingEdit + + + Select all + + + Clear all + + +
+ [% END %] + + [% END %] diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl index 610de60..7908100 100755 --- a/serials/serials-collection.pl +++ b/serials/serials-collection.pl @@ -163,7 +163,8 @@ $template->param( subscriptioncount => $subscriptioncount, location => $locationlib, callnumber => $callnumber, - uc(C4::Context->preference("marcflavour")) => 1 + uc(C4::Context->preference("marcflavour")) => 1, + dateformatmetric => C4::Context->preference("dateformat") eq "metric" ? 1 : 0, ); output_html_with_http_headers $query, $cookie, $template->output; -- 1.7.9.5