6 use vars qw($VERSION @ISA @EXPORT);
11 @EXPORT = qw(&slashifyDate
20 # accepts a date of the form xx-xx-xx[xx] and returns it in the
22 my @dateOut = split('-', shift);
23 return("$dateOut[2]/$dateOut[1]/$dateOut[0]")
26 sub fixEthnicity($) { # a temporary fix ethnicity, it should really be handled
27 # in Search.pm or the DB ...
29 my $ethnicity = shift;
30 if ($ethnicity eq 'maori') {
32 } elsif ($ethnicity eq 'european') {
33 $ethnicity = 'European/Pakeha';
34 } elsif ($ethnicity eq 'pi') {
35 $ethnicity = 'Pacific Islander'
36 } elsif ($ethnicity eq 'asian') {
48 Koha - Perl Module containing convenience functions for Koha scripts
55 $date = slashifyDate("01-01-2002")
61 Koha.pm provides many functions for Koha scripts.
63 slashifyDate() takes a dash separated date string and returns a slash
68 Pat Eyler, pate@gnu.org