bug 3344: display in-transit status on holds priority list
authorGalen Charlton <gmcharlt@gmail.com>
Mon, 22 Feb 2010 03:22:43 +0000 (22:22 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 24 Jun 2010 11:55:35 +0000 (07:55 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
reserve/request.pl

index 7bf6239..67baf2d 100644 (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 -->
index 704da10..859a65b 100755 (executable)
@@ -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});