Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Sep 2015 16:03:04 +0000 (17:03 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 20:46:58 +0000 (20:46 +0000)
commitaafe73eefb5151454fa8957bf188768324d23955
treeeb1b6d8ddc3c78e41145269f1157dfe2a710d4f8
parentdb2a1aa0dda1c786c34c3cf239fccfcaedefd094
Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used

This patch mainly replaces C4::ItemType->all with
Koha::ItemTypes->search.

Test plan:
At the places where the C4::ItemType module was used, confirm there is
no regression:
- acqui/neworderempty.pl
- catalogue/itemsearch.pl
- admin/item_circulation_alerts.pl
and the 2 cataloguing plugins:
- marc21_linking_section.pl
- unimarc_field_4XX.pl

QA step:
prove t/db_dependent/HoldsQueue.t should return green
Note that the tests were buggy.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
C4/ItemCirculationAlertPreference.pm
acqui/neworderempty.pl
admin/item_circulation_alerts.pl
catalogue/itemsearch.pl
cataloguing/value_builder/marc21_linking_section.pl
cataloguing/value_builder/unimarc_field_4XX.pl
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt
t/db_dependent/HoldsQueue.t