Koha/C4/SIP/ILS/Transaction
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
..
Checkin.pm Bug 12021 - SIP2 checkin should alert on transfer and use CT for return branch 2017-04-21 10:29:20 -04:00
Checkout.pm Bug 16011: $VERSION - Remove the $VERSION init 2016-03-24 17:20:28 +00:00
FeePayment.pm Bug 16895 [QA Followup] - Don't require fee payment to be exact full payment 2017-04-21 10:59:53 -04:00
Hold.pm Bug 18276: Remove GetBiblioFromItemNumber - Easy ones 2017-07-10 12:22:29 -03:00
Renew.pm Bug 14673: Work around change to AddIssue return 2015-11-06 12:03:37 -03:00
RenewAll.pm Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00