From ac105c4a88eb716d6e325b84430f644aa9e7b594 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 14 Aug 2008 10:43:09 -0500 Subject: [PATCH] bug 2521: distinguish types of hold requests Title-level and item-level requests are now more clearly distinguished in the patron details page and the patron checkout page. Signed-off-by: Galen Charlton --- circ/circulation.pl | 2 +- members/moremember.pl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 7cfa0c473f..f2af9be0f0 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -390,12 +390,12 @@ if ($borrowernumber) { my $getbibtype = getitemtypeinfo( $getbibinfo->{'itemtype'} ); # fixme - we should have item-level reserves here ? $getreserv{color} = 'inwait'; $getreserv{title} = $getbibinfo->{'title'}; - $getreserv{waitingposition} = $num_res->{'priority'}; $getreserv{nottransfered} = 0; $getreserv{itemtype} = $getbibtype->{'description'}; $getreserv{author} = $getbibinfo->{'author'}; $getreserv{biblionumber} = $num_res->{'biblionumber'}; } + $getreserv{waitingposition} = $num_res->{'priority'}; push( @reservloop, \%getreserv ); # if we have a reserve waiting, initiate waitingreserveloop diff --git a/members/moremember.pl b/members/moremember.pl index 3919eb1b45..87a5659182 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -272,9 +272,10 @@ if ($borrowernumber) { $getreserv{$_} = 0; } $getreserv{reservedate} = C4::Dates->new($num_res->{'reservedate'},'iso')->output('syspref'); - foreach (qw(biblionumber title author barcodereserv itemcallnumber )) { + foreach (qw(biblionumber title author itemcallnumber )) { $getreserv{$_} = $getiteminfo->{$_}; } + $getreserv{barcodereserv} = $getiteminfo->{'barcode'}; $getreserv{itemtype} = $itemtypeinfo->{'description'}; # check if we have a waitin status for reservations @@ -305,12 +306,12 @@ if ($borrowernumber) { my $getbibtype = getitemtypeinfo( $getbibinfo->{'itemtype'} ); $getreserv{color} = 'inwait'; $getreserv{title} = $getbibinfo->{'title'}; - $getreserv{waitingposition} = $num_res->{'priority'}; $getreserv{nottransfered} = 0; $getreserv{itemtype} = $getbibtype->{'description'}; $getreserv{author} = $getbibinfo->{'author'}; $getreserv{biblionumber} = $num_res->{'biblionumber'}; } + $getreserv{waitingposition} = $num_res->{'priority'}; push( @reservloop, \%getreserv ); } -- 2.39.5