Bugzilla – Attachment 5702 Details for
Bug 6968
Show items expired before today in check expiration of serials page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-checkboxexpirationserials.patch (text/plain), 3.08 KB, created by
Maxime Pelletier
on 2011-10-04 17:53:57 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Maxime Pelletier
Created:
2011-10-04 17:53:57 UTC
Size:
3.08 KB
patch
obsolete
>From 639ebe37a186bb012d279593aa500d904bb21b42 Mon Sep 17 00:00:00 2001 >From: Maxime Pelletier <maxime.pelletier@libeo.com> >Date: Tue, 4 Oct 2011 13:23:23 -0400 >Subject: [PATCH] =?utf-8?q?V3.6=20de=20checkbox=20pour=20affich=C3=A9=20items=20expir=C3=A9=20avant=20ajd?= >MIME-Version: 1.0 >Content-Type: text/plain; charset=utf-8 >Content-Transfer-Encoding: 8bit > >--- > .../prog/en/modules/serials/checkexpiration.tt | 10 +++++++--- > serials/checkexpiration.pl | 4 +++- > 2 files changed, 10 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt >index 246eb49..41f5c00 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt >@@ -45,7 +45,7 @@ > <fieldset class="rows"> > <legend>Filter results :</legend> > >- <ol> >+ <ol> > <li><label for="title">Title:</label> > <input id="title" type="text" name="title" size="15" value="[% title %]" /></li> > >@@ -65,8 +65,12 @@ > ); > </script> <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li> >- </ol> >- >+ <li> >+ <label for="showexpiredtoday">Show items expired before today:</label> >+ <input id="showexpiredtoday" type="checkbox" name="showexpiredtoday" >+ [% IF ( showexpiredtoday ) %] checked="checked" [% END %]/> >+ </li> >+ </ol> > </fieldset> > <fieldset class="action"><input type="submit" value="Search" /></fieldset> > </form> >diff --git a/serials/checkexpiration.pl b/serials/checkexpiration.pl >index 02a4fbc..ba283a0 100755 >--- a/serials/checkexpiration.pl >+++ b/serials/checkexpiration.pl >@@ -68,6 +68,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( > my $title = $query->param('title'); > my $issn = $query->param('issn'); > my $date = format_date_in_iso($query->param('date')); >+my $showexpiredtoday = $query->param('showexpiredtoday'); > > if ($date) { > my @subscriptions = GetSubscriptions( $title, $issn ); >@@ -80,7 +81,7 @@ if ($date) { > $subscription->{expirationdate} = $expirationdate; > next if $expirationdate !~ /\d{4}-\d{2}-\d{2}/; # next if not in ISO format. > if ( Date_to_Days(split "-",$expirationdate) < Date_to_Days(split "-",$date) && >- Date_to_Days(split "-",$expirationdate) > Date_to_Days(&Today) ) { >+ ($showexpiredtoday == 'on' || (Date_to_Days(split "-",$expirationdate) > Date_to_Days(&Today))) ) { > $subscription->{expirationdate}=format_date($subscription->{expirationdate}); > push @subscriptions_loop,$subscription; > } >@@ -89,6 +90,7 @@ if ($date) { > $template->param ( > title => $title, > issn => $issn, >+ showexpiredtoday => $showexpiredtoday, > numsubscription => scalar @subscriptions_loop, > date => format_date($date), > subscriptions_loop => \@subscriptions_loop, >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6968
:
5702
|
5703
|
7038
|
7435
|
30703
|
35314