Bugzilla – Attachment 67066 Details for
Bug 10132
Add option to set MarcOrgCode on branch level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10132: (QA followup) Add POD to ->get_effective_marcorgcode
Bug-10132-QA-followup-Add-POD-to--geteffectivemarc.patch (text/plain), 1.80 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-09-11 19:16:35 UTC
(
hide
)
Description:
Bug 10132: (QA followup) Add POD to ->get_effective_marcorgcode
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-09-11 19:16:35 UTC
Size:
1.80 KB
patch
obsolete
>From 11bb06a26092b7c994ee9aec719ada4b8d83c1aa Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 11 Sep 2017 16:08:09 -0300 >Subject: [PATCH] Bug 10132: (QA followup) Add POD to > ->get_effective_marcorgcode > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Library.pm | 31 +++++++++++++++++++++++++++++-- > 1 file changed, 29 insertions(+), 2 deletions(-) > >diff --git a/Koha/Library.pm b/Koha/Library.pm >index 7cfb749..151f30e 100644 >--- a/Koha/Library.pm >+++ b/Koha/Library.pm >@@ -33,7 +33,11 @@ Koha::Library - Koha Library Object class > > =head1 API > >-=head2 Class Methods >+=head2 Class methods >+ >+=head3 get_categories >+ >+TODO: Ask the author to add a proper description > > =cut > >@@ -43,12 +47,24 @@ sub get_categories { > return $self->{_result}->categorycodes( $params ); > } > >+=head3 update_categories >+ >+TODO: Ask the author to add a proper description >+ >+=cut >+ > sub update_categories { > my ( $self, $categories ) = @_; > $self->_result->delete_related( 'branchrelations' ); > $self->add_to_categories( $categories ); > } > >+=head3 add_to_categories >+ >+TODO: Ask the author to add a proper description >+ >+=cut >+ > sub add_to_categories { > my ( $self, $categories ) = @_; > for my $category ( @$categories ) { >@@ -56,13 +72,24 @@ sub add_to_categories { > } > } > >+=head3 get_effective_marcorgcode >+ >+ my $marcorgcode = Koha::Libraries->find( $library_id )->get_effective_marcorgcode(); >+ >+Returns the effective MARC organization code of the library. It falls back to the value >+from the I<MARCOrgCode> syspref if undefined for the library. >+ >+=cut >+ > sub get_effective_marcorgcode { > my ( $self ) = @_; > > return $self->marcorgcode || C4::Context->preference("MARCOrgCode"); > } > >-=head3 type >+=head2 Internal methods >+ >+=head3 _type > > =cut > >-- >2.7.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 10132
:
64183
|
64184
|
64185
|
64186
|
64187
|
67060
|
67061
|
67062
|
67063
|
67064
|
67065
| 67066 |
67067
|
67208
|
67211