@@ -, +, @@ --- Koha/Biblio.pm | 32 ++++++++++++++++++++++++++++++++ Koha/BiblioItem.pm | 32 ++++++++++++++++++++++++++++++++ Koha/BiblioItems.pm | 38 ++++++++++++++++++++++++++++++++++++++ Koha/Biblios.pm | 38 ++++++++++++++++++++++++++++++++++++++ Koha/Checkout.pm | 32 ++++++++++++++++++++++++++++++++ Koha/Checkouts.pm | 38 ++++++++++++++++++++++++++++++++++++++ Koha/Item.pm | 32 ++++++++++++++++++++++++++++++++ Koha/Items.pm | 42 ++++++++++++++++++++++++++++++++++++++++++ Koha/LetterTemplate.pm | 32 ++++++++++++++++++++++++++++++++ Koha/LetterTemplates.pm | 38 ++++++++++++++++++++++++++++++++++++++ 10 files changed, 354 insertions(+) create mode 100644 Koha/Biblio.pm create mode 100644 Koha/BiblioItem.pm create mode 100644 Koha/BiblioItems.pm create mode 100644 Koha/Biblios.pm create mode 100644 Koha/Checkout.pm create mode 100644 Koha/Checkouts.pm create mode 100644 Koha/Item.pm create mode 100644 Koha/Items.pm create mode 100644 Koha/LetterTemplate.pm create mode 100644 Koha/LetterTemplates.pm --- a/Koha/Biblio.pm +++ a/Koha/Biblio.pm @@ -0,0 +1,32 @@ +package Koha::Biblio; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +sub type { + return 'Biblio'; +} + +1; --- a/Koha/BiblioItem.pm +++ a/Koha/BiblioItem.pm @@ -0,0 +1,32 @@ +package Koha::BiblioItem; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +sub type { + return 'BiblioItem'; +} + +1; --- a/Koha/BiblioItems.pm +++ a/Koha/BiblioItems.pm @@ -0,0 +1,38 @@ +package Koha::BiblioItems; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use Koha::BiblioItem; + +use base qw(Koha::Objects); + +sub type { + return 'BiblioItem'; +} + +sub object_class { + return 'Koha::BiblioItem'; +} + +1; --- a/Koha/Biblios.pm +++ a/Koha/Biblios.pm @@ -0,0 +1,38 @@ +package Koha::Biblios; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use Koha::Biblio; + +use base qw(Koha::Objects); + +sub type { + return 'Biblio'; +} + +sub object_class { + return 'Koha::Biblio'; +} + +1; --- a/Koha/Checkout.pm +++ a/Koha/Checkout.pm @@ -0,0 +1,32 @@ +package Koha::Checkout; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +sub type { + return 'Issue'; +} + +1; --- a/Koha/Checkouts.pm +++ a/Koha/Checkouts.pm @@ -0,0 +1,38 @@ +package Koha::Checkouts; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use Koha::Checkout; + +use base qw(Koha::Objects); + +sub type { + return 'Issue'; +} + +sub object_class { + return 'Koha::Checkout'; +} + +1; --- a/Koha/Item.pm +++ a/Koha/Item.pm @@ -0,0 +1,32 @@ +package Koha::Item; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +sub type { + return 'Item'; +} + +1; --- a/Koha/Items.pm +++ a/Koha/Items.pm @@ -0,0 +1,42 @@ +package Koha::Items; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use Koha::Item; + +use base qw(Koha::Objects); + +sub type { + return 'Item'; +} + +sub object_class { + return 'Koha::Item'; +} + +sub _get_castable_unique_columns { + return ['itemnumber', 'barcode']; +} + +1; --- a/Koha/LetterTemplate.pm +++ a/Koha/LetterTemplate.pm @@ -0,0 +1,32 @@ +package Koha::LetterTemplate; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +sub type { + return 'Letter'; +} + +1; --- a/Koha/LetterTemplates.pm +++ a/Koha/LetterTemplates.pm @@ -0,0 +1,38 @@ +package Koha::LetterTemplates; + +# Copyright Open Source Freedom Fighters +# +# 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 Carp; + +use Koha::Database; + +use Koha::LetterTemplate; + +use base qw(Koha::Objects); + +sub type { + return 'Letter'; +} + +sub object_class { + return 'Koha::LetterTemplate'; +} + +1; --