[Koha-cvs] koha koha-tmpl/intranet-tmpl/prog/en/circ/circu... [rel_3_0]

Antoine Farnault antoine at koha-fr.org
Mon Nov 27 16:47:58 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Antoine Farnault <toins>	06/11/27 15:47:58

Modified files:
	koha-tmpl/intranet-tmpl/prog/en/circ: circulation.tmpl 
	members        : setdebar.pl 

Log message:
	bug fix (SAN OP #103)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.6.2.12&r2=1.6.2.13
http://cvs.savannah.gnu.org/viewcvs/koha/members/setdebar.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.3.2.2&r2=1.3.2.3

Patches:
Index: koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl,v
retrieving revision 1.6.2.12
retrieving revision 1.6.2.13
diff -u -b -r1.6.2.12 -r1.6.2.13
--- koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl	27 Nov 2006 10:28:23 -0000	1.6.2.12
+++ koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl	27 Nov 2006 15:47:58 -0000	1.6.2.13
@@ -73,7 +73,7 @@
       <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
         <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
-        <input type="hidden" value="circ" name="destination" />
+        <input type="hidden" name="destination" value="circ" />
         <input type="hidden" name="status" value="0" />
 
         <div id="action">
@@ -842,7 +842,7 @@
         }
         else {
             div.setAttribute('class',"content_visible");
-            div.setAttribute('style',"height:130px;");
+            div.setAttribute('style',"height:180px;");
         }
     }
     /**

Index: members/setdebar.pl
===================================================================
RCS file: /sources/koha/koha/members/setdebar.pl,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -u -b -r1.3.2.2 -r1.3.2.3
--- members/setdebar.pl	17 Nov 2006 14:57:22 -0000	1.3.2.2
+++ members/setdebar.pl	27 Nov 2006 15:47:58 -0000	1.3.2.3
@@ -1,10 +1,5 @@
 #!/usr/bin/perl
 
-#script to set or lift debarred status
-#written 2/8/04
-#by oleonard at athenscounty.lib.oh.us
-
-
 # Copyright 2000-2002 Katipo Communications
 #
 # This file is part of Koha.
@@ -22,31 +17,45 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
+# $Id: setdebar.pl,v 1.3.2.3 2006/11/27 15:47:58 toins Exp $
+
+=head1 setdebar.pl
+
+script to set or lift debarred status
+written 2/8/04
+by oleonard at athenscounty.lib.oh.us
+
+=cut
+
 use strict;
 
 use CGI;
 use C4::Context;
 use C4::Auth;
 
-
 my $input = new CGI;
 
 my $flagsrequired;
-$flagsrequired->{borrowers}=1;
-my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired);
+$flagsrequired->{borrowers} = 1;
+my ( $loggedinuser, $cookie, $sessionID ) =
+  checkauth( $input, 0, $flagsrequired );
 
 my $destination = $input->param("destination");
 my $cardnumber = $input->param("cardnumber");
-my $borrowernumber=$input->param('borrowernumber');
+my $borrowernumber = $input->param('borrowernumber');
 my $status = $input->param('status');
 
 my $dbh = C4::Context->dbh;
-my $sth=$dbh->prepare("Update borrowers set debarred = ? where borrowernumber = ?");
-$sth->execute($status,$borrowernumber);
+my $sth =
+  $dbh->prepare("Update borrowers set debarred = ? where borrowernumber = ?");
+$sth->execute( $status, $borrowernumber );
 $sth->finish;
 
-if($destination eq "circ"){
-	print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber");
-} else {
-	print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
+if ( $destination eq "circ" ) {
+    print $input->redirect(
+        "/cgi-bin/koha/circ/circulation.pl?findborrower=".$cardnumber);
+}
+else {
+    print $input->redirect(
+        "/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
 }





More information about the Koha-cvs mailing list