[Koha-patches] [PATCH] Bug # 2368 Change holds to pull default date range

Joe Atzberger joe.atzberger at liblime.com
Fri Jun 26 03:58:48 CEST 2009


I suspect someone will protest that the notes field is absolutely necessary
to their use of the report.  Perhaps you can just impose an arbitrary limit
on the field size to prevent overload?

--Joe

On Fri, Jun 19, 2009 at 9:10 AM, Jane Wagner <jwagner at ptfs.com> wrote:

> Delivered range was 10 years ago to yesterday; changed default
> to be two days ago to today.  Also removed notes field from report
> output; 5xx fields can be quite large and including them in the
> display resulted in a very lengthy printout for staff.
> ---
>  circ/pendingreserves.pl                            |    8 ++++----
>  .../prog/en/modules/circ/pendingreserves.tmpl      |    3 +--
>  2 files changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl
> index 1c866eb..7fc02a1 100755
> --- a/circ/pendingreserves.pl
> +++ b/circ/pendingreserves.pl
> @@ -66,9 +66,9 @@ my $author;
>  my ( $year, $month, $day ) = Today();
>  my $todaysdate     = sprintf("%-04.4d-%-02.2d-%02.2d", $year, $month,
> $day);
>  my $yesterdaysdate = sprintf("%-04.4d-%-02.2d-%02.2d",
> Add_Delta_YMD($year, $month, $day,   0, 0, -1));
> -# Find 10 years ago for the default shelf pull start and end dates
> -#    A default of the prior day's holds is a reasonable way to pull holds
> -my $pastdate       = sprintf("%-04.4d-%-02.2d-%02.2d",
> Add_Delta_YMD($year, $month, $day, -10, 0,  0));
> +#changed from delivered range of 10 years-yesterday to 2 days ago-today
> +# Find two days ago for the default shelf pull start and end dates
> +my $pastdate       = sprintf("%-04.4d-%-02.2d-%02.2d",
> Add_Delta_YMD($year, $month, $day, 0, 0, -2));
>
>  #              Predefine the start and end dates if they are not already
> defined
>  $startdate =~ s/^\s+//;
> @@ -80,7 +80,7 @@ if (!defined($startdate) or $startdate eq "") {
>        $startdate = format_date($pastdate);
>  }
>  if (!defined($enddate) or $enddate eq "") {
> -       $enddate = format_date($yesterdaysdate);
> +       $enddate = format_date($todaysdate);
>  }
>
>
> diff --git
> a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
> b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
> index a1ffed5..0876ae7 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
> @@ -107,7 +107,6 @@ $.tablesorter.addParser({
>                         <!-- /TMPL_IF -->
>                     <!-- /TMPL_IF -->
>                     </p>
> -                    <p><!-- TMPL_VAR NAME="notes" --></p>
>                 </td>
>             <!-- TMPL_ELSE -->
>                 <td colspan="3">
> @@ -206,7 +205,7 @@ Calendar.setup(
>         );
>  </script></li>
>  </ol>
> -<p><i>(Inclusive, default is 10 years ago to yesterday, set "to" to today
> as needed. )</i></p>
> +<p><i>(Inclusive, default is two days ago to today, set other date ranges
> as needed. )</i></p>
>  <fieldset class="action"><input type="submit" value="Submit"
> class="submit"/></fieldset>
>  </fieldset>
>  </form>
> --
> 1.5.6.5
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090625/0907b498/attachment-0002.htm>


More information about the Koha-patches mailing list