Permalink
Browse files

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

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
  • Loading branch information...
1 parent f8af7a9 commit 75bd07a025846d43d74a98cc85e62d00bb949f1b @gmcharlt gmcharlt committed with J. David Bavousett Feb 22, 2010
Showing with 6 additions and 1 deletion.
  1. +4 −0 koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
  2. +2 −1 reserve/request.pl
View
4 koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
@@ -599,7 +599,11 @@ function checkMultiHold() {
<!-- TMPL_IF NAME="CAN_user_reserveforothers_edit_holds" -->
<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_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
3 reserve/request.pl
@@ -546,7 +546,7 @@ =head1 request.pl
push @optionloop, { num => $res->{priority}, selected => 1, };
}
- 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;
@@ -561,6 +561,7 @@ =head1 request.pl
}
# 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});

0 comments on commit 75bd07a

Please sign in to comment.