koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/maint shiftbib.pl,1.2,1.3


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha/maint shiftbib.pl,1.2,1.3
Date: Sat, 05 Oct 2002 03:06:02 -0700

Update of /cvsroot/koha/koha/maint
In directory usw-pr-cvs1:/tmp/cvs-serv28150/maint

Modified Files:
        shiftbib.pl 
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.


Index: shiftbib.pl
===================================================================
RCS file: /cvsroot/koha/koha/maint/shiftbib.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** shiftbib.pl 14 Aug 2002 18:12:53 -0000      1.2
--- shiftbib.pl 5 Oct 2002 10:06:00 -0000       1.3
***************
*** 25,30 ****
  use strict;
  use CGI;
  use C4::Output;
- use C4::Database;
  use C4::Maintainance;
  
--- 25,30 ----
  use strict;
  use CGI;
+ use C4::Context;
  use C4::Output;
  use C4::Maintainance;
  
***************
*** 34,38 ****
  my $bi=$input->param('bi');
  my $bib=$input->param('bib');
! my $type=$input->param('type');
  print startpage();
  print startmenu('catalog');
--- 34,38 ----
  my $bi=$input->param('bi');
  my $bib=$input->param('bib');
! my $type=$input->param('type');       # FIXME - Redundant
  print startpage();
  print startmenu('catalog');
***************
*** 40,44 ****
  if ($type eq 'change'){
    my $biblionumber=$input->param('biblionumber');
!   my $dbh=C4Connect;
    my $query="Select * from biblio where biblionumber=$biblionumber";
    my $sth=$dbh->prepare($query);
--- 40,44 ----
  if ($type eq 'change'){
    my $biblionumber=$input->param('biblionumber');
!   my $dbh = C4::Context->dbh;
    my $query="Select * from biblio where biblionumber=$biblionumber";
    my $sth=$dbh->prepare($query);




reply via email to

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