Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
  • Loading branch information...
commit 75bd07a025846d43d74a98cc85e62d00bb949f1b 1 parent f8af7a9
Galen Charlton gmcharlt authored J. David Bavousett committed
4 koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
View
@@ -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 -->
3  reserve/request.pl
View
@@ -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});
Please sign in to comment.
Something went wrong with that request. Please try again.