]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 15:13:56 +0000 (15:13 +0000)
commit1626087562a98b66d24aa190bdf5b3f26b098b09
tree81674c720c72bd50b34dd6f439bfe64ae4556c09
parent54410ca823e2c9a7f24f63422612ec0af5c4a163
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: Kyle M Hall <kyle@bywatersolutions.com>
C4/Koha.pm
C4/Record.pm
Koha/AuthorisedValues.pm
t/db_dependent/AuthorisedValues.t