Rest of the fix for 1402
authorChris Cormack <crc@liblime.com>
Tue, 6 Nov 2007 20:28:32 +0000 (14:28 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 7 Nov 2007 14:05:20 +0000 (08:05 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

index 07aa649..88e86e0 100755 (executable)
@@ -89,6 +89,9 @@ my $branches = GetBranches();
 
 my $printers = GetPrinters();
 
+my @failedrenews = $query->param('failedrenew');
+my @renew_failed;
+for (@failedrenews) { $renew_failed[$_] = 1; } 
 
 my $findborrower = $query->param('findborrower');
 $findborrower =~ s|,| |g;
@@ -414,7 +417,7 @@ if ($borrower) {
         $datedue =~ s/-//g;
                $it->{'od'} = ($datedue < $todaysdate) ? 1 : 0 ;
         ($it->{'author'} eq '') and $it->{'author'} = ' ';
-
+        $it->{'renew_failed'} = $renew_failed[$it->{'itemnumber'}];
         # ADDED BY JF: NEW ITEMTYPE COUNT DISPLAY
         $issued_itemtypes_count->{ $it->{'itemtype'} }++;
 
index 8b2859a..537442d 100755 (executable)
@@ -652,6 +652,9 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
         </td>
                <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
+               <!-- TMPL_IF NAME="renew_failed" -->
+               <td>Renewal Failed</td>
+               <!-- /TMPL_IF -->
     </tr>
     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
     <!-- /TMPL_IF --> <!-- /if todayissues -->
@@ -689,6 +692,10 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
         </td>
                <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
+               <!-- TMPL_IF NAME="renew_failed" -->
+               <td>Renewal Failed</td>
+               <!-- /TMPL_IF -->
+
     </tr>
     <!-- /TMPL_LOOP --> <!-- /loop previssues -->
 <!-- /TMPL_IF --> <!--/if previssues -->