]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Mar 2023 16:43:40 +0000 (18:43 +0200)
commit2d0eca8a0df0e34535d12e40c4247ec99a493619
treef600578e9cc0dd1013225549cc8e9f4bcfa6d759
parentf19a3bf91a310b45141620df8b95116bd1fb5272
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>
C4/AuthoritiesMarc.pm
C4/Breeding.pm
C4/ImportBatch.pm