[Koha] Problem with patrons holds
Vitor Fernandes
vitorfernandes87 at gmail.com
Thu Jan 13 03:43:20 NZDT 2011
Thanks Nicole for your answer.
The fact of being a bug it's quite a problem for my work...
Before your answer i've checked opac-reserves.pl... The conclusion is
that I've have to change this code:
my @reserves = GetReservesFromBorrowernumber( $borrowernumber );
$template->param( RESERVES => \@reserves );
if ( $MAXIMUM_NUMBER_OF_RESERVES && (scalar(@reserves) >=
$MAXIMUM_NUMBER_OF_RESERVES) ) {
$template->param( message => 1 );
$noreserves = 1;
$template->param( too_many_reserves => scalar(@reserves));
}
foreach my $res (@reserves) {
foreach my $biblionumber (@biblionumbers) {
if ( $res->{'biblionumber'} == $biblionumber &&
$res->{'borrowernumber'} == $borrowernumber) {
# $template->param( message => 1 );
# $noreserves = 1;
# $template->param( already_reserved => 1 );
$biblioDataHash{$biblionumber}->{already_reserved} = 1;
}
}
}
unless ($noreserves) {
$template->param( select_item_types => 1 );
}
Instead of using $MAXIMUM_NUMBER_OF_RESERVES should be the number of
holds allowed of circulation matrix.
I'll try to implement it...
Regards.
Vitor Fernandes
2011/1/12 Nicole Engard <nengard at gmail.com>:
> Vitor,
>
> This looks like a known bug:
> http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4045
>
> Thanks
> Nicole
>
> On Wed, Jan 12, 2011 at 3:12 AM, Vitor Fernandes
> <vitorfernandes87 at gmail.com> wrote:
>> Hi there.
>>
>> I've a serious problem... The patrons can exceed the number of holds allowed.
>> This is my circulation matrix.
>>
>> Alunos CET Monografia Geral 3 10 0.50 1 0 0 2
>> 3 0.000000
>> Alunos Doutoramento Monografia Geral 6 10 0.50 1 0 0 2 6 0.000000
>> Alunos Erasmus Monografia Geral 3 10 0.50 1 0 0 2 3 0.000000
>> Alunos Erasmus Monografia Referência 3 10 0.50 1 0 0 2 0 0.000000
>> Alunos Licenciatura Monografia Geral 3 10 0.50 1 0 0 2
>> 3 0.000000
>> Alunos Mestrado Monografia Geral 6 10 0.50 1 0 0 2 6 0.000000
>> Alunos Pós-graduação Monografia Geral 6 10 0.50 1 0 0 2 6 0.000000
>> Docentes Monografia Geral 6 10 0.50 1 0
>> 0 2 6 0.000000
>> Docentes Monografia Handbook 3 2 0.50 1 0 0
>> 2 0 0.000000
>> Funcionários Monografia Geral 3 10 0.50 1 0 0
>> 2 3 0.000000
>> Investigadores Monografia Geral 6 10 0.50 1 0 0
>> 2 6 0.000000
>>
>> For example the holds allowed for one patron with category "Alunos
>> Licenciatura" for item types "Monografia Geral" are 3 holds, but in
>> the OPAC the users can put on hold more than 3 items of that type.
>> Who I can solve it?
>> Which is the perl function, library for holding? Perl is not a problem
>> for me and maybe a can solve it changing the code.
>> Is a Koha bug?
>>
>> Regards.
>> Vitor Fernandes
>> _______________________________________________
>> Koha mailing list http://koha-community.org
>> Koha at lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha
>>
>
More information about the Koha
mailing list