/[webpac2]/trunk/lib/WebPAC/Input/Koha.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/WebPAC/Input/Koha.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1275 by dpavlin, Fri Jul 10 13:53:28 2009 UTC revision 1276 by dpavlin, Wed Aug 19 16:07:39 2009 UTC
# Line 42  sub new { Line 42  sub new {
42                  $self->{_koha_size} = 0;                  $self->{_koha_size} = 0;
43          } else {          } else {
44    
45                    $arg->{dsn}    ||= 'dbi:mysql:database=koha';
46                    $arg->{user}   ||= $ENV{KOHA_USER};
47                    $arg->{passwd} ||= $ENV{KOHA_PASSWD},
48                    $arg->{sql}    ||= 'select biblioitemnumber as mfn, marc from biblioitems';
49    
50                  $log->info("opening Koha database '$arg->{dsn}'");                  $log->info("opening Koha database '$arg->{dsn}'");
51    
52                  $self->{_dbh} = DBI->connect( $arg->{dsn}, $arg->{user}, $arg->{passwd}, { RaiseError => 1 } );                  $self->{_dbh} = DBI->connect( $arg->{dsn}, $arg->{user}, $arg->{passwd}, { RaiseError => 1 } );

Legend:
Removed from v.1275  
changed lines
  Added in v.1276

  ViewVC Help
Powered by ViewVC 1.1.26