Koha/cataloguing
Jonathan Druart 6eade474ed Bug 18276: Remove GetBiblioFromItemNumber - Easy ones
The subroutine C4::Biblio::GetBiblioFromItemNumber was wrong for several
reasons:
- badly named, we can get biblio info from a barcode
- SELECT * from items, biblio and biblioitems
makes things hard to follow and debug, we never know where do come from
the value we display
- sometimes called only for trivial information such as biblionumber,
author or title

This patchset suggests to replace it with calls to:
- Koha::Items->find for item's info
- $item->biblio for biblio's info
- $item->biblio->biblioitem for biblioitem's info

Test plan:
Item's info should correctly be displayed on the following pages:
- circulation history
- transfer book
- checkin
- waiting holds

QA will check the other changes reading the code, it's trivial

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-07-10 12:22:29 -03:00
..
value_builder Bug 17233 - Add 008 value builder plugin for MARC21 classifications 2017-03-31 13:48:16 +00:00
addbiblio.pl Bug 17835: Replace GetItemTypes with Koha::ItemTypes 2017-04-14 10:43:51 -04:00
addbooks.pl
additem.pl Bug 18254: Remove call to GetItemsByBiblioitemnumber call from additem.pl 2017-06-15 15:56:00 -03:00
editor.pl
linkitem.pl
merge.pl Bug 18295: C4::Items - Remove get_itemnumbers_of 2017-06-05 11:43:16 -03:00
merge_ajax.pl
moveitem.pl Bug 18276: Remove GetBiblioFromItemNumber - Easy ones 2017-07-10 12:22:29 -03:00
plugin_launcher.pl
ysearch.pl
z3950_auth_search.pl
z3950_search.pl