bug 3344: display in-transit status on holds priority list

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2010-02-21 22:22:43 -05:00
parent fcb21ec94c
commit 39c177e3f2
2 changed files with 6 additions and 1 deletions

View File

@ -585,7 +585,11 @@ function checkMultiHold() {
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<select name="rank-request">
<!-- TMPL_IF Name="wait" -->
<!-- TMPL_IF NAME="intransit" -->
<option value="T" selected="selected">In transit</option>
<!-- TMPL_ELSE -->
<option value="W" selected="selected">Waiting</option>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_reserveforothers_modify_holds_priority" --><!-- TMPL_LOOP Name="optionloop" -->
<!-- TMPL_IF Name="selected" --><option value="<!-- TMPL_VAR NAME="num" -->" selected="selected"><!-- TMPL_VAR NAME="num" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="num" -->"><!-- TMPL_VAR NAME="num" --></option><!-- /TMPL_IF -->

View File

@ -479,7 +479,7 @@ foreach my $biblionumber (@biblionumbers) {
);
}
if ( defined $res->{'found'} && $res->{'found'} eq 'W' ) {
if ( defined $res->{'found'} && $res->{'found'} eq 'W' || $res->{'found'} eq 'T' ) {
my $item = $res->{'itemnumber'};
$item = GetBiblioFromItemNumber($item,undef);
$reserve{'wait'}= 1;
@ -494,6 +494,7 @@ foreach my $biblionumber (@biblionumbers) {
}
# set found to 1 if reserve is waiting for patron pickup
$reserve{'found'} = 1 if $res->{'found'} eq 'W';
$reserve{'intransit'} = 1 if $res->{'found'} eq 'T';
} elsif ($res->{priority} > 0) {
if (defined($res->{itemnumber})) {
my $item = GetItem($res->{itemnumber});