]> 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)
committerJacob O'Mara <jacobomara901@gmail.com>
Sun, 16 Apr 2023 17:08:50 +0000 (18:08 +0100)
commit6833e1b3f70a356bc9ba6ae50ed048324e60664f
treee7a41f878ccfaa7e3b89b4a54bf6d56ed09fce96
parent5c76bb0c4eaf7735ef01519bd39c0f2062fe0936
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>
C4/AuthoritiesMarc.pm
C4/Breeding.pm
C4/ImportBatch.pm