]> git.koha-community.org Git - koha.git/commit
Bug 17249: Remove GetKohaAuthorisedValuesFromField - Add search_by_marc_field
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Aug 2016 10:36:40 +0000 (11:36 +0100)
committerMason James <mtj@kohaaloha.com>
Wed, 20 Sep 2017 02:00:05 +0000 (14:00 +1200)
commitc8fbb9c58bd72031b77d52327004ba441e71cdb9
tree152beb14f322873a2c195f81f58e5b367b0f10e0
parenta53c3efd4c1773a609f2929a61b7324504cc18eb
Bug 17249: Remove GetKohaAuthorisedValuesFromField - Add search_by_marc_field

This patch adds a new Koha::AuthorisedValues->search_by_marc_field
method.
It will permit to replace several subroutine from C4::Koha dealing with
authorised values.
It also uses this new methods to replace an occurrence of
GetKohaAuthorisedValuesFromField in C4::Record::marcrecord2csv

Test plan:
  prove t/db_dependent/AuthorisedValues.t
should return green

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/Koha.pm
C4/Record.pm
Koha/AuthorisedValues.pm
t/db_dependent/AuthorisedValues.t