Bug 41462: Add Koha::OAI::Set(s) and Koha::OAI::Set::Biblio(s)

This architectural changes makes these tables available to the Koha namespace, and therefore the REST APIs.

To test: Confirm t/00-load.t tests pass and check for any syntax/tidy errors.

Sponsored-by: Auckland University of Technology
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
This commit is contained in:
Aleisha Amohia 2025-12-17 01:36:35 +00:00 committed by Martin Renvoize
parent da840f6c3f
commit adcbd749e4
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
4 changed files with 202 additions and 0 deletions

46
Koha/OAI/Set.pm Normal file
View File

@ -0,0 +1,46 @@
package Koha::OAI::Set;
# Copyright 2025 Aleisha Amohia <aleisha@catalyst.net.nz>
#
# 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 <https://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use base qw(Koha::Object);
=head1 NAME
Koha::OAI::Set - Koha OaiSet Object class
=head1 API
=head2 Class methods
=cut
=head2 Internal methods
=head3 _type
=cut
sub _type {
return 'OaiSet';
}
1;

46
Koha/OAI/Set/Biblio.pm Normal file
View File

@ -0,0 +1,46 @@
package Koha::OAI::Set::Biblio;
# Copyright 2025 Aleisha Amohia <aleisha@catalyst.net.nz>
#
# 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 <https://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use base qw(Koha::Object);
=head1 NAME
Koha::OAI::Set::Biblio - Koha OaiSetsBiblio Object class
=head1 API
=head2 Class methods
=cut
=head2 Internal methods
=head3 _type
=cut
sub _type {
return 'OaiSetsBiblio';
}
1;

55
Koha/OAI/Set/Biblios.pm Normal file
View File

@ -0,0 +1,55 @@
package Koha::OAI::Set::Biblios;
# Copyright 2025 Aleisha Amohia <aleisha@catalyst.net.nz>
#
# 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 <https://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use Koha::OAI::Set::Biblio;
use base qw(Koha::Objects);
=head1 NAME
Koha::OAI::Set::Biblios - Koha OaiSetsBiblio Object set class
=head1 API
=head2 Class methods
=cut
=head2 Internal methods
=head3 _type
=cut
sub _type {
return 'OaiSetsBiblio';
}
=head3 object_class
=cut
sub object_class {
return 'Koha::OAI::Set::Biblio';
}
1;

55
Koha/OAI/Sets.pm Normal file
View File

@ -0,0 +1,55 @@
package Koha::OAI::Sets;
# Copyright 2025 Aleisha Amohia <aleisha@catalyst.net.nz>
#
# 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 <https://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use Koha::OAI::Set;
use base qw(Koha::Objects);
=head1 NAME
Koha::OAI::Sets - Koha OaiSets Object set class
=head1 API
=head2 Class methods
=cut
=head2 Internal methods
=head3 _type
=cut
sub _type {
return 'OaiSet';
}
=head3 object_class
=cut
sub object_class {
return 'Koha::OAI::Set';
}
1;