Skip to content

Commit

Permalink
bug 3344: display in-transit status on holds priority list
Browse files Browse the repository at this point in the history
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
  • Loading branch information
gmcharlt committed Jun 24, 2010
1 parent fcb21ec commit 39c177e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down
3 changes: 2 additions & 1 deletion reserve/request.pl
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ =head1 request.pl
);
}

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;
Expand All @@ -494,6 +494,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});
Expand Down

0 comments on commit 39c177e

Please sign in to comment.