Bugzilla – Attachment 103133 Details for
Bug 23727
Editing course reserve items is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23727: Add Koha Object(s) related to course reserves
Bug-23727-Add-Koha-Objects-related-to-course-reser.patch (text/plain), 11.04 KB, created by
Marcel de Rooy
on 2020-04-17 10:06:41 UTC
(
hide
)
Description:
Bug 23727: Add Koha Object(s) related to course reserves
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-04-17 10:06:41 UTC
Size:
11.04 KB
patch
obsolete
>From 12a673d27c1a55a5a855b721c1b7dfc7db2c8306 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 14 Feb 2020 08:57:05 -0500 >Subject: [PATCH] Bug 23727: Add Koha Object(s) related to course reserves >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Course.pm | 42 +++++++++++++++++++++++++++++++++++++ > Koha/Course/Instructor.pm | 42 +++++++++++++++++++++++++++++++++++++ > Koha/Course/Instructors.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++++ > Koha/Course/Item.pm | 42 +++++++++++++++++++++++++++++++++++++ > Koha/Course/Items.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++++ > Koha/Course/Reserve.pm | 42 +++++++++++++++++++++++++++++++++++++ > Koha/Course/Reserves.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++++ > Koha/Courses.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++++ > 8 files changed, 376 insertions(+) > create mode 100644 Koha/Course.pm > create mode 100644 Koha/Course/Instructor.pm > create mode 100644 Koha/Course/Instructors.pm > create mode 100644 Koha/Course/Item.pm > create mode 100644 Koha/Course/Items.pm > create mode 100644 Koha/Course/Reserve.pm > create mode 100644 Koha/Course/Reserves.pm > create mode 100644 Koha/Courses.pm > >diff --git a/Koha/Course.pm b/Koha/Course.pm >new file mode 100644 >index 0000000000..0ce658b0b4 >--- /dev/null >+++ b/Koha/Course.pm >@@ -0,0 +1,42 @@ >+package Koha::Course; >+ >+# 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 base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Course - Koha Course Object class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'Course'; >+} >+ >+1; >diff --git a/Koha/Course/Instructor.pm b/Koha/Course/Instructor.pm >new file mode 100644 >index 0000000000..62385d0b75 >--- /dev/null >+++ b/Koha/Course/Instructor.pm >@@ -0,0 +1,42 @@ >+package Koha::Course::Instructor; >+ >+# 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 base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Course::Instructor - Koha Course Instructor Object class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'CourseInstructor'; >+} >+ >+1; >diff --git a/Koha/Course/Instructors.pm b/Koha/Course/Instructors.pm >new file mode 100644 >index 0000000000..418ec4f717 >--- /dev/null >+++ b/Koha/Course/Instructors.pm >@@ -0,0 +1,52 @@ >+package Koha::Course::Instructors; >+ >+# 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::Course; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Course::Instructors - Koha Course::Instructors Object set class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'CourseInstructor'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Course::Instructor'; >+} >+ >+1; >diff --git a/Koha/Course/Item.pm b/Koha/Course/Item.pm >new file mode 100644 >index 0000000000..7f9cd917d6 >--- /dev/null >+++ b/Koha/Course/Item.pm >@@ -0,0 +1,42 @@ >+package Koha::Course::Item; >+ >+# 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 base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Course::Item - Koha Course Item Object class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'CourseItem'; >+} >+ >+1; >diff --git a/Koha/Course/Items.pm b/Koha/Course/Items.pm >new file mode 100644 >index 0000000000..efd06084b9 >--- /dev/null >+++ b/Koha/Course/Items.pm >@@ -0,0 +1,52 @@ >+package Koha::Course::Items; >+ >+# 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::Course; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Course::Items - Koha Course::Items Object set class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'CourseItem'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Course::Item'; >+} >+ >+1; >diff --git a/Koha/Course/Reserve.pm b/Koha/Course/Reserve.pm >new file mode 100644 >index 0000000000..ff2e0711c5 >--- /dev/null >+++ b/Koha/Course/Reserve.pm >@@ -0,0 +1,42 @@ >+package Koha::Course::Reserve; >+ >+# 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 base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Course::Reserve - Koha Course Reserve Object class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'CourseReserve'; >+} >+ >+1; >diff --git a/Koha/Course/Reserves.pm b/Koha/Course/Reserves.pm >new file mode 100644 >index 0000000000..c23a7a95ee >--- /dev/null >+++ b/Koha/Course/Reserves.pm >@@ -0,0 +1,52 @@ >+package Koha::Course::Reserves; >+ >+# 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::Course; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Course::Reserves - Koha Course::Reserves Object set class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'CourseReserve'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Course::Reserve'; >+} >+ >+1; >diff --git a/Koha/Courses.pm b/Koha/Courses.pm >new file mode 100644 >index 0000000000..f0fb3ec29d >--- /dev/null >+++ b/Koha/Courses.pm >@@ -0,0 +1,52 @@ >+package Koha::Courses; >+ >+# 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::Course; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Courses - Koha Courses Object set class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'Course'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Course'; >+} >+ >+1; >-- >2.11.0
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 23727
:
95104
|
98943
|
98944
|
98945
|
99269
|
99270
|
99271
|
99272
|
99273
|
99274
|
99275
|
99276
|
99277
|
99327
|
99328
|
99329
|
99330
|
99331
|
99332
|
99333
|
99334
|
99335
|
99336
|
103126
|
103127
|
103128
|
103131
|
103132
| 103133 |
103134
|
103135
|
103136
|
104782
|
104783
|
104784
|
104785
|
104786
|
104787