]> git.koha-community.org Git - koha.git/commit
Bug 17250 - Koha::AuthorisedValues - Remove GetAuthValCode
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Aug 2016 12:35:13 +0000 (13:35 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 15:21:27 +0000 (15:21 +0000)
commitd019f86f671771a36006f8847712317e0337c02f
tree2e2be4ae9d8de8e58d1456ec344f68d402794835
parent15506a7569145cf566aab28e1b7639be56058a26
Bug 17250 - Koha::AuthorisedValues - Remove GetAuthValCode

The subroutine C4::Koha::GetAuthValCode returned the authorised value
category for a given kohafield.
This can be acchieve easily using a new Koha::AuthorisedValues->search_by_koha_field
method which will mimic search_by_marc_field.

Test plan:
Confirm that the description is correctly displayed on the following
pages:
- detail and moredetail of a bibliographic page (itemlost, damaged, materials)
- Set AcqCreateItem=ordering and receiving items.
The description for notforloan, restricted, location, ccode, etc.
field should be displayed.
- Items search form
- On the checkout list from the circulation.pl and returns.pl
pages, the description for "materials" should be displayed

Note that GetKohaAuthorisedValuesMapping is going to be removed on bug
17251.

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
14 files changed:
C4/Circulation.pm
C4/Items.pm
C4/Koha.pm
C4/Search.pm
Koha/AuthorisedValues.pm
acqui/orderreceive.pl
catalogue/detail.pl
catalogue/getitem-ajax.pl
catalogue/itemsearch.pl
catalogue/moredetail.pl
circ/circulation.pl
circ/returns.pl
t/db_dependent/AuthorisedValues.t
tools/inventory.pl