koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/acqui acquire.pl,1.5,1.5.2.1


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha/acqui acquire.pl,1.5,1.5.2.1
Date: Thu, 03 Oct 2002 19:28:32 -0700

Update of /cvsroot/koha/koha/acqui
In directory usw-pr-cvs1:/tmp/cvs-serv19530

Modified Files:
      Tag: arensb-context
        acquire.pl 
Log Message:
Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
C4Connect.


Index: acquire.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui/acquire.pl,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -r1.5 -r1.5.2.1
*** acquire.pl  14 Aug 2002 18:12:52 -0000      1.5
--- acquire.pl  4 Oct 2002 02:28:30 -0000       1.5.2.1
***************
*** 22,32 ****
  # Suite 330, Boston, MA  02111-1307 USA
  
  use C4::Catalogue;
  use C4::Biblio;
  use C4::Output;
- use C4::Database;
  use C4::Search;
- use CGI;
- use strict;
  
  my $input=new CGI;
--- 22,32 ----
  # Suite 330, Boston, MA  02111-1307 USA
  
+ use strict;
+ use CGI;
+ use C4::Context;
  use C4::Catalogue;
  use C4::Biblio;
  use C4::Output;
  use C4::Search;
  
  my $input=new CGI;
***************
*** 114,118 ****
  ;
  
! my $dbh=C4Connect;
  my $query="Select itemtype,description from itemtypes order by description";
  my $sth=$dbh->prepare($query);
--- 114,118 ----
  ;
  
! my $dbh = C4::Context->dbh;
  my $query="Select itemtype,description from itemtypes order by description";
  my $sth=$dbh->prepare($query);
***************
*** 126,130 ****
  }
  $sth->finish;
- $dbh->disconnect;
  
  print <<EOP
--- 126,129 ----
***************
*** 175,179 ****
  my %systemprefs=systemprefs();
  if ($systemprefs{'autoBarcode'} eq '1') {
!   my $dbh=C4Connect;
    my $query="Select barcode from items order by barcode desc";
    my $sth=$dbh->prepare($query);
--- 174,178 ----
  my %systemprefs=systemprefs();
  if ($systemprefs{'autoBarcode'} eq '1') {
!   my $dbh = C4::Context->dbh;
    my $query="Select barcode from items order by barcode desc";
    my $sth=$dbh->prepare($query);
***************
*** 182,186 ****
    print $data->{'barcode'}+1;
    $sth->finish;
-   $dbh->disconnect;
  }
  
--- 181,184 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]