Bugzilla – Attachment 63683 Details for
Bug 18072
Add Koha objects for Branch Transfer Limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18072: Add Koha objects for Branch Transfer Limit
Bug-18072-Add-Koha-objects-for-Branch-Transfer-Lim.patch (text/plain), 3.99 KB, created by
Josef Moravec
on 2017-05-24 07:26:47 UTC
(
hide
)
Description:
Bug 18072: Add Koha objects for Branch Transfer Limit
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-05-24 07:26:47 UTC
Size:
3.99 KB
patch
obsolete
>From 8092c4cdc1c3551b4436a045e2d51a749c9d81fa Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Tue, 7 Feb 2017 13:16:30 +0200 >Subject: [PATCH] Bug 18072: Add Koha objects for Branch Transfer Limit > >This patch also fixes documentation in Koha/Item/Transfer.pm and >Koha/Item/Transfers.pm. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Item/Transfer.pm | 2 +- > Koha/Item/Transfer/Limit.pm | 45 ++++++++++++++++++++++++++++++++++++++++ > Koha/Item/Transfer/Limits.pm | 49 ++++++++++++++++++++++++++++++++++++++++++++ > Koha/Item/Transfers.pm | 2 +- > 4 files changed, 96 insertions(+), 2 deletions(-) > create mode 100644 Koha/Item/Transfer/Limit.pm > create mode 100644 Koha/Item/Transfer/Limits.pm > >diff --git a/Koha/Item/Transfer.pm b/Koha/Item/Transfer.pm >index fbdc701..50c381d 100644 >--- a/Koha/Item/Transfer.pm >+++ b/Koha/Item/Transfer.pm >@@ -25,7 +25,7 @@ use base qw(Koha::Object); > > =head1 NAME > >-Koha::Item::Transfer - Koha Transfer Object class >+Koha::Item::Transfer - Koha Item Transfer Object class > > =head1 API > >diff --git a/Koha/Item/Transfer/Limit.pm b/Koha/Item/Transfer/Limit.pm >new file mode 100644 >index 0000000..8bd7319 >--- /dev/null >+++ b/Koha/Item/Transfer/Limit.pm >@@ -0,0 +1,45 @@ >+package Koha::Item::Transfer::Limit; >+ >+# Copyright Koha-Suomi Oy 2017 >+# 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); >+ >+=head1 NAME >+ >+Koha::Item::Transfer::Limit - Koha Item Transfer Limit Object class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=cut >+ >+=head3 type >+ >+=cut >+ >+sub _type { >+ return 'BranchTransferLimit'; >+} >+ >+1; >diff --git a/Koha/Item/Transfer/Limits.pm b/Koha/Item/Transfer/Limits.pm >new file mode 100644 >index 0000000..ce42c96 >--- /dev/null >+++ b/Koha/Item/Transfer/Limits.pm >@@ -0,0 +1,49 @@ >+package Koha::Item::Transfer::Limits; >+ >+# Copyright Koha-Suomi Oy 2017 >+# 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::Database; >+ >+use Koha::Item::Transfer::Limit; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Item::Transfer::Limits - Koha Item Transfer Limits Object set class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=cut >+ >+=head3 type >+ >+=cut >+ >+sub _type { >+ return 'BranchTransferLimit'; >+} >+ >+sub object_class { >+ return 'Koha::Item::Transfer::Limit'; >+} >+ >+1; >diff --git a/Koha/Item/Transfers.pm b/Koha/Item/Transfers.pm >index 0e4988f..45dc67f 100644 >--- a/Koha/Item/Transfers.pm >+++ b/Koha/Item/Transfers.pm >@@ -27,7 +27,7 @@ use base qw(Koha::Objects); > > =head1 NAME > >-Koha::Transfers - Koha Transfer Object set class >+Koha::Item::Transfers - Koha Item Transfer Object set class > > =head1 API > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18072
:
59979
|
59980
|
59981
|
59982
|
60009
|
60010
|
60011
|
60116
|
60117
|
60782
|
60783
|
60784
|
63683
|
63684
|
63685
|
63686
|
63687
|
66724
|
67049
|
67050
|
67051
|
67052
|
67053
|
67054
|
67209
|
76282
|
76283
|
76284
|
76285
|
76286
|
76287
|
76288
|
76292
|
76293
|
76294
|
76295
|
76296
|
76297
|
76298