[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: |
Tue, 17 Oct 2006 13:07:46 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/10/17 13:07:46
Modified files:
C4 : Koha.pm
Log message:
remove a function already present in Members.pm
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Koha.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.40.2.11&r2=1.40.2.12
Patches:
Index: Koha.pm
===================================================================
RCS file: /sources/koha/koha/C4/Koha.pm,v
retrieving revision 1.40.2.11
retrieving revision 1.40.2.12
diff -u -b -r1.40.2.11 -r1.40.2.12
--- Koha.pm 12 Oct 2006 13:41:47 -0000 1.40.2.11
+++ Koha.pm 17 Oct 2006 13:07:45 -0000 1.40.2.12
@@ -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.11 2006/10/12 13:41:47 btoumi Exp $
+# $Id: Koha.pm,v 1.40.2.12 2006/10/17 13:07:45 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.11 $' =~ /\d+/g; shift(@v) . "." .
join("_", map {sprintf "%03d", $_ } @v); };
+$VERSION = do { my @v = '$Revision: 1.40.2.12 $' =~ /\d+/g; shift(@v) . "." .
join("_", map {sprintf "%03d", $_ } @v); };
=head1 NAME
@@ -121,33 +121,6 @@
return $data->{'name'};
}
-
-=head2 ethnicitycategories
-
- ($codes_arrayref, $labels_hashref) = ðnicitycategories();
-
-Looks up the different ethnic types in the database. Returns two
-elements: a reference-to-array, which lists the ethnicity codes, and a
-reference-to-hash, which maps the ethnicity codes to ethnicity
-descriptions.
-
-=cut
-#'
-
-sub ethnicitycategories {
- my $dbh = C4::Context->dbh;
- my $sth=$dbh->prepare("Select code,name from ethnicity order by name");
- $sth->execute;
- my %labels;
- my @codes;
- while (my $data=$sth->fetchrow_hashref){
- push @codes,$data->{'code'};
- $labels{$data->{'code'}}=$data->{'name'};
- }
- $sth->finish;
- return(address@hidden,\%labels);
-}
-
# FIXME.. this should be moved to a MARC-specific module
sub subfield_is_koha_internal_p ($) {
my($subfield) = @_;
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/02
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/03
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/03
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/09
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0],
Antoine Farnault <=
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/17
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/18
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/19
- [Koha-cvs] koha/C4 Koha.pm [rel_3_0], Antoine Farnault, 2006/10/31