X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FClassSortRoutine.pm;h=d5fd8a092efb687827d0b5a2404b19ba1ed0b174;hb=3f7b2fa41898f59ce39d1725f8dfe6001095f796;hp=fcd797dadc32bc90d5f4d61cab879ed43d7fb858;hpb=7c0e441d50d8587ba496d3031d79bde3b0ec6a57;p=koha.git diff --git a/C4/ClassSortRoutine.pm b/C4/ClassSortRoutine.pm index fcd797dadc..d5fd8a092e 100644 --- a/C4/ClassSortRoutine.pm +++ b/C4/ClassSortRoutine.pm @@ -4,18 +4,18 @@ package C4::ClassSortRoutine; # # This file is part of Koha. # -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . use strict; use warnings; @@ -23,12 +23,9 @@ use warnings; require Exporter; use Class::Factory::Util; use C4::Context; -use C4::Koha; -use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); +use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); -# set the version for version checking -$VERSION = 3.00; =head1 NAME @@ -49,7 +46,7 @@ use C4::ClassSortRoutine; &GetClassSortKey ); -# intialization code +# initialization code my %loaded_routines = (); my @sort_routines = GetSortRoutineNames(); foreach my $sort_routine (@sort_routines) { @@ -102,7 +99,7 @@ sub GetClassSortKey { # should replace with some way of getting column widths from # the DB schema -- since doing this should ideally be # independent of the DBMS, deferring for the moment. - return substr($key, 0, 30); + return substr($key, 0, 255); } =head2 _get_class_sort_key