]> git.koha-community.org Git - koha.git/commit
Bug 32279: Add GetAuthorizedHeading method export C4::AuthoritiesMarc
authorFridolin Somers <fridolin.somers@biblibre.com>
Sat, 19 Nov 2022 03:36:47 +0000 (17:36 -1000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 3 May 2023 19:14:00 +0000 (21:14 +0200)
commita00019c1805ed04f87365d6bf86fa6f0b4ce0f91
treef3898b5f5c140913c29e91d54cd487e75a7c97f9
parent4b895359dae519997b1135ec1fea618be1e4c09a
Bug 32279: Add GetAuthorizedHeading method export C4::AuthoritiesMarc

C4::AuthoritiesMarc method GetAuthorizedHeading is not exported thus it is called in other modules :
 > git grep GetAuthorizedHeading
C4/AuthoritiesMarc.pm:=head2 GetAuthorizedHeading
C4/AuthoritiesMarc.pm:  $heading = &GetAuthorizedHeading({ record => $record, authid => $authid })
C4/AuthoritiesMarc.pm:sub GetAuthorizedHeading {
C4/Breeding.pm:                            $heading = C4::AuthoritiesMarc::GetAuthorizedHeading({ record => $marcrecord });
C4/ImportBatch.pm:            $row->{'authorized_heading'} = C4::AuthoritiesMarc::GetAuthorizedHeading( { authid => $row->{'candidate_match_id'} } );
C4/ImportBatch.pm:    my $authorized_heading = C4::AuthoritiesMarc::GetAuthorizedHeading({ record => $marc_record });

This patch adds it to be exported.
For example for use in Koha plugins.

Test plan :
Check import of authorities from a file is OK

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2d0eca8a0df0e34535d12e40c4247ec99a493619)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
(cherry picked from commit 6833e1b3f70a356bc9ba6ae50ed048324e60664f)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 6a67b16baafb7c1cc53bfe080a86835238977c52)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
C4/AuthoritiesMarc.pm
C4/Breeding.pm
C4/ImportBatch.pm