Bug 18811: Add Koha Objects for authority tags and subfields
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 22 Jun 2017 11:42:38 +0000 (13:42 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 12 Sep 2017 14:30:40 +0000 (11:30 -0300)
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>
Koha/Authority/Subfield.pm [new file with mode: 0644]
Koha/Authority/Subfields.pm [new file with mode: 0644]
Koha/Authority/Tag.pm [new file with mode: 0644]
Koha/Authority/Tags.pm [new file with mode: 0644]

diff --git a/Koha/Authority/Subfield.pm b/Koha/Authority/Subfield.pm
new file mode 100644 (file)
index 0000000..11927ea
--- /dev/null
@@ -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;
diff --git a/Koha/Authority/Subfields.pm b/Koha/Authority/Subfields.pm
new file mode 100644 (file)
index 0000000..121b795
--- /dev/null
@@ -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;
diff --git a/Koha/Authority/Tag.pm b/Koha/Authority/Tag.pm
new file mode 100644 (file)
index 0000000..2b4a30d
--- /dev/null
@@ -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;
diff --git a/Koha/Authority/Tags.pm b/Koha/Authority/Tags.pm
new file mode 100644 (file)
index 0000000..a621071
--- /dev/null
@@ -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;