[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Koha.pm [rel_3_0]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/C4 Koha.pm [rel_3_0] |
Date: |
Mon, 12 Feb 2007 11:12:16 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 07/02/12 11:12:16
Modified files:
C4 : Koha.pm
Log message:
adding a missing 'my'
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Koha.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.40.2.37&r2=1.40.2.38
Patches:
Index: Koha.pm
===================================================================
RCS file: /sources/koha/koha/C4/Koha.pm,v
retrieving revision 1.40.2.37
retrieving revision 1.40.2.38
diff -u -b -r1.40.2.37 -r1.40.2.38
--- Koha.pm 9 Feb 2007 17:16:37 -0000 1.40.2.37
+++ Koha.pm 12 Feb 2007 11:12:16 -0000 1.40.2.38
@@ -17,7 +17,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: Koha.pm,v 1.40.2.37 2007/02/09 17:16:37 hdl Exp $
+# $Id: Koha.pm,v 1.40.2.38 2007/02/12 11:12:16 toins Exp $
use strict;
require Exporter;
@@ -25,7 +25,7 @@
use C4::Output;
use vars qw($VERSION @ISA @EXPORT);
-$VERSION = do { my @v = '$Revision: 1.40.2.37 $' =~ /\d+/g; shift(@v) . "." .
join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.40.2.38 $' =~ /\d+/g; shift(@v) . "." .
join( "_", map { sprintf "%03d", $_ } @v ); };
=head1 NAME
@@ -1551,6 +1551,7 @@
return $record;
}
}
+
=head2 GetKohaAuthorisedValues
Takes $dbh , $kohafield as parameters.
@@ -1562,6 +1563,7 @@
sub GetKohaAuthorisedValues {
my ($kohafield) = @_;
my %values;
+ my $dbh = C4::Context->dbh;
my $sthnflstatus = $dbh->prepare('select authorised_value from
marc_subfield_structure where kohafield=?');
$sthnflstatus->execute($kohafield);
my $authorised_valuecode = $sthnflstatus->fetchrow;