Bug 18811: Add Koha Objects for authority tags and subfields

Trivial copy and paste activity.
Will be used in a later patch.

No test plan needed.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ca8f8b4cd9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2017-06-22 13:42:38 +02:00 committed by Fridolin Somers
parent ae29acfb26
commit ea441e7d09
4 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,40 @@
package Koha::Authority::Subfield;
# 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, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
use base qw(Koha::Object);
=head1 NAME
Koha::Authority::Subfield - Koha Authority Subfield Object class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'AuthSubfieldStructure';
}
1;

View File

@ -0,0 +1,46 @@
package Koha::Authority::Subfields;
# 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, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
use Koha::Authority::Subfield;
use base qw(Koha::Objects);
=head1 NAME
Koha::Authority::Subfields - Koha Authority Subfield Object set class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'AuthSubfieldStructure';
}
sub object_class {
return 'Koha::Authority::Subfield';
}
1;

40
Koha/Authority/Tag.pm Normal file
View File

@ -0,0 +1,40 @@
package Koha::Authority::Tag;
# 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, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
use base qw(Koha::Object);
=head1 NAME
Koha::Authority::Tag - Koha Authority Tag Object class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'AuthTagStructure';
}
1;

46
Koha/Authority/Tags.pm Normal file
View File

@ -0,0 +1,46 @@
package Koha::Authority::Tags;
# 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, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
use Koha::Authority::Tag;
use base qw(Koha::Objects);
=head1 NAME
Koha::Authority::Tags - Koha Authority Tag Object set class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'AuthTagStructure';
}
sub object_class {
return 'Koha::Authority::Tag';
}
1;