[Koha-patches] [PATCH] excised hard-coded reference to HLT

Michael Hafen mdhafen at tech.washk12.org
Mon May 11 23:37:13 CEST 2009


Looks to me like a good candidate for a custom Sys. Pref.  Something
like

if ( C4::Context->preference("PatronCatIgnoreError") ) {
        if ( $borrower->{'categorycode'} eq C4::Context->preference("PatronCatIgnoreError") ) {
            return ( {}, \%needsconfirmation );
        }
}

Good luck.

On Mon, 2009-05-11 at 16:23 -0500, Galen Charlton wrote:
> Note to Chris Cormack: I suspect the current ability
> to override most circulation conditions is sufficient,
> but if HLT still needs to establish a patron category
> that can ignore issuingimpossible limitations, needs
> to be done in a more flexible way.
> ---
>  C4/Circulation.pm |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
> 
> diff --git a/C4/Circulation.pm b/C4/Circulation.pm
> index e6389ee..fe28409 100644
> --- a/C4/Circulation.pm
> +++ b/C4/Circulation.pm
> @@ -845,12 +845,6 @@ sub CanBookBeIssued {
>  "$res->{'reservedate'} : $resborrower->{'firstname'} $resborrower->{'surname'} ($resborrower->{'cardnumber'})";
>          }
>      }
> -    if ( C4::Context->preference("LibraryName") eq "Horowhenua Library Trust" ) {
> -        if ( $borrower->{'categorycode'} eq 'W' ) {
> -            my %emptyhash;
> -            return ( \%emptyhash, \%needsconfirmation );
> -        }
> -	}
>  	return ( \%issuingimpossible, \%needsconfirmation );
>  }
>  
-- 
Michael Hafen
Systems Analyst and Programmer
Washington County School District
Utah, USA

for Koha checkout
http://development.washk12.org/gitweb/
or
git://development.washk12.org/koha




More information about the Koha-patches mailing list