Koha/C4/ClassSplitRoutine.pm
Jonathan Druart 7f52fa4a73 Bug 29951: Fix EXPORT for C4::ClassS*Routine modules
Can't locate object method "subclasses" via package "C4::ClassSplitRoutine" at /kohadevbox/koha/C4/ClassSplitRoutine.pm line 53

Certainly from bug 17600.

Test plan:
Home -> Administration -> Classification sources -> New splitting rule

And create classification sources and filing rules.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 69513449db)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2022-08-12 16:52:14 +00:00

63 lines
1.3 KiB
Perl

package C4::ClassSplitRoutine;
# Copyright 2022 Koha Development Team
#
# 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 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.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
use Class::Factory::Util;
our (@ISA, @EXPORT_OK);
BEGIN {
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw(
GetSplitRoutineNames
);
}
=head1 NAME
C4::ClassSplitRoutine - base object for creation of classification splitting routines
=head1 SYNOPSIS
use C4::ClassSplitRoutine;
=head1 FUNCTIONS
=cut
=head2 GetSplitRoutineNames
my @routines = GetSplitRoutineNames();
Get names of all modules under C4::ClassSplitRoutine::*.
=cut
sub GetSplitRoutineNames {
return C4::ClassSplitRoutine->subclasses();
}
1;
=head1 AUTHOR
Koha Development Team <http://koha-community.org/>
=cut