From 6dab0986f9374f9bd3888a8290b6b7dd634318d1 Mon Sep 17 00:00:00 2001 From: wolfpac444 Date: Thu, 8 May 2003 12:26:14 +0000 Subject: [PATCH] Bug fixes --- koha-tmpl/opac-tmpl/default/en/opac-detail.tmpl | 2 +- .../opac-tmpl/default/en/opac-reserve.tmpl | 2 +- koha-tmpl/opac-tmpl/default/en/opac-search.tmpl | 2 +- .../default/en/opac-searchresults.tmpl | 2 +- .../opac-tmpl/default/en/opac-userupdate.tmpl | 2 +- opac/opac-reserve.pl | 6 ++++-- updater/updatedatabase | 17 +++++++++++++++++ 7 files changed, 26 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/default/en/opac-detail.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-detail.tmpl index 3e5ab0d915..75125f16b0 100644 --- a/koha-tmpl/opac-tmpl/default/en/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/default/en/opac-detail.tmpl @@ -1,6 +1,6 @@ - +

Logged in as: [Members Home][Log Out]

Log In to Koha

diff --git a/koha-tmpl/opac-tmpl/default/en/opac-reserve.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-reserve.tmpl index 1439a2721e..b3eab0e076 100644 --- a/koha-tmpl/opac-tmpl/default/en/opac-reserve.tmpl +++ b/koha-tmpl/opac-tmpl/default/en/opac-reserve.tmpl @@ -2,7 +2,7 @@
- +

Logged in as: [Members Home][Log Out]

Log In to Koha

diff --git a/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl index 8905c176d0..b8f693ea34 100644 --- a/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl +++ b/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl @@ -1,6 +1,6 @@ - +

Logged in as: [Members Home][Log Out]

Log In to Koha

diff --git a/koha-tmpl/opac-tmpl/default/en/opac-searchresults.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-searchresults.tmpl index 5518e7d232..d5ca11c739 100644 --- a/koha-tmpl/opac-tmpl/default/en/opac-searchresults.tmpl +++ b/koha-tmpl/opac-tmpl/default/en/opac-searchresults.tmpl @@ -2,7 +2,7 @@
- +

Logged in as: [Members Home][Log Out]

Log In to Koha

diff --git a/koha-tmpl/opac-tmpl/default/en/opac-userupdate.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-userupdate.tmpl index 0213ccda76..9bbd08d796 100644 --- a/koha-tmpl/opac-tmpl/default/en/opac-userupdate.tmpl +++ b/koha-tmpl/opac-tmpl/default/en/opac-userupdate.tmpl @@ -1,6 +1,6 @@ - +

Logged in as: [Log Out]

Log In to Koha

diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 58015da747..c9518664b3 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -13,8 +13,9 @@ use C4::Reserves2; use C4::Interface::CGI::Output; use HTML::Template; use C4::Date; +use C4::Context; -my $MAXIMUM_NUMBER_OF_RESERVES = 5; +my $MAXIMUM_NUMBER_OF_RESERVES = C$::Context->preference("maxreserves"); my $query = new CGI; my ($template, $borrowernumber, $cookie) @@ -227,7 +228,8 @@ if ($query->param('item_types_selected')) { } else { # Here we check that the borrower can actually make reserves Stage 1. my $noreserves = 0; - if ($borr->{'amountoutstanding'} > 5) { + my $maxoutstanding = C4::Context->preference("maxoustanding"); + if ($borr->{'amountoutstanding'} > $maxoutstanding) { my $amount = sprintf "\$%.02f", $borr->{'amountoutstanding'}; $template->param(message => 1); $noreserves = 1; diff --git a/updater/updatedatabase b/updater/updatedatabase index 0688e3abe4..6a7447033c 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -433,6 +433,20 @@ my %tabledata = ( explanation => 'date format (US mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy/mm/dd) ' }, + { + uniquefieldrequired => 'variable', + variable => 'maxoutstanding', + value => '5', + explanation => + 'maximum amount withstanding to be able make reserves ' + }, + { + uniquefieldrequired => 'variable', + variable => 'maxreserves', + value => '5', + explanation => + 'maximum number of reserves a member can make ' + }, { uniquefieldrequired => 'variable', variable => 'KohaAdminEmailAddress', @@ -757,6 +771,9 @@ $sth->finish; exit; # $Log$ +# Revision 1.45 2003/05/08 12:26:16 wolfpac444 +# Bug fixes +# # Revision 1.44 2003/05/03 05:39:57 rangi # Fixing bug 429 # (Wording changes in the explanation fields in system preferences) -- 2.39.5