Bugzilla – Attachment 147648 Details for
Bug 33103
Add vendor aliases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33103: Koha classes
Bug-33103-Koha-classes.patch (text/plain), 3.04 KB, created by
PTFS Europe Sandboxes
on 2023-03-02 16:12:33 UTC
(
hide
)
Description:
Bug 33103: Koha classes
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2023-03-02 16:12:33 UTC
Size:
3.04 KB
patch
obsolete
>From a7f85e279818ed054a1c71b6ba3dca6de9960978 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 1 Mar 2023 15:17:56 +0100 >Subject: [PATCH] Bug 33103: Koha classes > >Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> >--- > Koha/Acquisition/Bookseller/Alias.pm | 40 +++++++++++++++++++++ > Koha/Acquisition/Bookseller/Aliases.pm | 50 ++++++++++++++++++++++++++ > 2 files changed, 90 insertions(+) > create mode 100644 Koha/Acquisition/Bookseller/Alias.pm > create mode 100644 Koha/Acquisition/Bookseller/Aliases.pm > >diff --git a/Koha/Acquisition/Bookseller/Alias.pm b/Koha/Acquisition/Bookseller/Alias.pm >new file mode 100644 >index 0000000000..3c6c428c63 >--- /dev/null >+++ b/Koha/Acquisition/Bookseller/Alias.pm >@@ -0,0 +1,40 @@ >+package Koha::Acquisition::Bookseller::Alias; >+ >+# 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, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use base qw( Koha::Object ); >+ >+=head1 NAME >+ >+Koha::Acquisition::Bookseller::Alias - Koha Bookseller alias Object class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'AqbooksellerAlias'; >+} >+ >+1; >diff --git a/Koha/Acquisition/Bookseller/Aliases.pm b/Koha/Acquisition/Bookseller/Aliases.pm >new file mode 100644 >index 0000000000..c6afb4aa0d >--- /dev/null >+++ b/Koha/Acquisition/Bookseller/Aliases.pm >@@ -0,0 +1,50 @@ >+package Koha::Acquisition::Bookseller::Aliases; >+ >+# 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, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use base qw( Koha::Objects ); >+ >+use Koha::Acquisition::Bookseller::Alias; >+ >+=head1 NAME >+ >+Koha::Acquisition::Bookseller::Aliases - Koha Bookseller alias Object class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'AqbooksellerAlias'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Acquisition::Bookseller::Alias'; >+} >+ >+1; >-- >2.30.2
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 33103
:
147621
|
147622
|
147623
|
147624
|
147625
|
147626
|
147627
|
147628
|
147629
|
147630
|
147645
|
147646
|
147647
|
147648
|
147649
|
147650
|
147651
|
147652
|
147653
|
147654
|
147827
|
148448
|
148449
|
148450
|
148451
|
148452
|
148453
|
148454
|
148455
|
148456
|
148457
|
148458
|
149414
|
149419
|
149479
|
149480
|
149481
|
149482
|
149483
|
149484
|
149485
|
149486
|
149487
|
149488
|
149489
|
149490
|
149491
|
149606
|
149607
|
149608
|
149609
|
149629
|
149630
|
149788