From 32e13e325a80f29a39a5fbf6971debcd193a59e4 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Wed, 2 Dec 2009 17:30:58 +0100 Subject: [PATCH] (bug #3819) still fixing holds policies This patch backports more code from 3.2 to make hold policies working. --- circ/circulation.pl | 4 +- .../prog/en/modules/reserve/request.tmpl | 60 ++++++++++++-- .../prog/img/famfamfam/silk/cross.png | Bin 0 -> 655 bytes .../prog/img/famfamfam/silk/error.png | Bin 0 -> 666 bytes .../prog/en/modules/opac-reserve.tmpl | 16 +++- opac/opac-reserve.pl | 14 +++- reserve/request.pl | 76 ++++++++++++------ 7 files changed, 133 insertions(+), 37 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/cross.png create mode 100644 koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/error.png diff --git a/circ/circulation.pl b/circ/circulation.pl index e0adbf5d57..636e03717b 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -235,8 +235,8 @@ if ($borrowernumber) { # Warningdate is the date that the warning starts appearing my ( $today_year, $today_month, $today_day) = Today(); - my ($warning_year, $warning_month, $warning_day) = split /-/, $borrower->{'dateexpiry'}; - my ( $enrol_year, $enrol_month, $enrol_day) = split /-/, $borrower->{'dateenrolled'}; + my ($warning_year, $warning_month, $warning_day) = split (/-/, $borrower->{'dateexpiry'}); + my ( $enrol_year, $enrol_month, $enrol_day) = split (/-/, $borrower->{'dateenrolled'}); # Renew day is calculated by adding the enrolment period to today my ( $renew_year, $renew_month, $renew_day) = Add_Delta_YM( $enrol_year, $enrol_month, $enrol_day, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl index 6b72b8818c..64e3d6a014 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl @@ -2,7 +2,16 @@ Koha › Circulation › Holds › Place a hold on <!-- TMPL_VAR NAME="title" escape="html" -->