From 1c69c063dc88809956d875f3c68b4a372a35cd3d 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 1ea3a49fe3..e6a92d9218 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 40209515ab..478969b099 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