From c6c9326df18dc5d96041ddb6d67399ac43bcc732 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 8 Jan 2008 16:08:15 -0600 Subject: [PATCH] Fix for bug 1740 Signed-off-by: Joshua Ferraro --- .../intranet-tmpl/prog/en/modules/members/moremember.tmpl | 7 ++++++- members/moremember.pl | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 361a0ca4ca..69a9985e44 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -319,7 +319,12 @@ for (var i=0;i - ">On Hold + + ">On Hold + + + Too Many Renewals + " checked="checked" onClick="javascript:uncheck_sibling(this);" /> diff --git a/members/moremember.pl b/members/moremember.pl index 13cd8ebc1c..caac7bdb26 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -238,11 +238,11 @@ for ( my $i = 0 ; $i < $count ; $i++ ) { $row{'charge'} = sprintf( "%.2f", $charge ); - #check item is not reserved - my ( $restype, $reserves ) = CheckReserves( $issue->[$i]{'itemnumber'} ); - $row{'norenew'} = ($restype) ? 1 : 0; + my ( $renewokay,$renewerror ) = CanBookBeRenewed( $borrowernumber, $issue->[$i]{'itemnumber'}); + $row{'norenew'} = !$renewokay; + $row{'norenew_reason'} = $renewerror; $row{'renew_failed'} = $renew_failed[$issue->[$i]{'itemnumber'}]; - $row{'return_failed'} = $return_failed[$issue->[$i]{'barcode'}]; + $row{'return_failed'} = $return_failed[$issue->[$i]{'barcode'}]; push( @issuedata, \%row ); } -- 2.39.5