[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha detail.pl,1.12,1.13
From: |
Andrew Arensburger |
Subject: |
[Koha-cvs] CVS: koha detail.pl,1.12,1.13 |
Date: |
Sat, 05 Oct 2002 02:45:02 -0700 |
Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv19334
Modified Files:
detail.pl
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.
Index: detail.pl
===================================================================
RCS file: /cvsroot/koha/koha/detail.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** detail.pl 19 Aug 2002 06:29:36 -0000 1.12
--- detail.pl 5 Oct 2002 09:45:00 -0000 1.13
***************
*** 21,25 ****
use strict;
require Exporter;
! use C4::Database;
use C4::Output; # contains picktemplate
use CGI;
--- 21,25 ----
use strict;
require Exporter;
! use C4::Context;
use C4::Output; # contains picktemplate
use CGI;
***************
*** 28,52 ****
my $query=new CGI;
-
- my $language='french';
-
-
- my %configfile;
- open (KC, "/etc/koha.conf");
- while (<KC>) {
- chomp;
- (next) if (/^\s*#/);
- if (/(.*)\s*=\s*(.*)/) {
- my $variable=$1;
- my $value=$2;
- # Clean up white space at beginning and end
- $variable=~s/^\s*//g;
- $variable=~s/\s*$//g;
- $value=~s/^\s*//g;
- $value=~s/\s*$//g;
- $configfile{$variable}=$value;
- }
- }
-
my $biblionumber=$query->param('bib');
my $type='intra';
--- 28,31 ----
***************
*** 87,92 ****
my address@hidden;
! my $includes=$configfile{'includes'};
! ($includes) || ($includes="/usr/local/www/hdl/htdocs/includes");
my $templatebase="catalogue/detail.tmpl";
my $startfrom=$query->param('startfrom');
--- 66,71 ----
my address@hidden;
! my $includes = C4::Context->config('includes') ||
! "/usr/local/www/hdl/htdocs/includes";
my $templatebase="catalogue/detail.tmpl";
my $startfrom=$query->param('startfrom');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha detail.pl,1.12,1.13,
Andrew Arensburger <=