Koha/koha-tmpl/opac-tmpl/bootstrap
Tomas Cohen Arazi 9d8218df0e Bug 32712: Fix OPAC breakage when OPACShowCheckoutName enabled
Bug 31313 removed GetItemsInfo and proper Koha::Object-based objects are
passed now. But some automatic search & replace kept patron-related
attributes incorrectly linked to Koha::Item.

This patch makes the item-status.inc file reuse the checkout object and
get the linked patron to gather the required information. Some
simplification is done on hte same patch... should be trivial.

To test:
1. Have OpacShowCheckoutName enabled
2. Pick a biblio with items (all of them not checkecd-out)
3. Open the OPAC detail view for the biblio
=> SUCCESS: You see the biblio and the items
4. Check one of the items out
5. Refresh the OPAC page
=> FAIL: The page explodes!
6. Apply this patch
7. Refresh the OPAC page
=> SUCCESS: You see the biblio and the items, the patron info is
correctly displayed.
8. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d74fe69d2c)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
2023-01-31 17:34:41 +00:00
..
css Built files 2023-01-25 16:17:46 +00:00
en Bug 32712: Fix OPAC breakage when OPACShowCheckoutName enabled 2023-01-31 17:34:41 +00:00
images Bug 29036: (follow-up) Improve the use of variables to keep colors consistent 2021-12-01 21:38:12 -10:00
itemtypeimg Bug 27523: (follow-up) Add copy of image to carredart in the OPAC 2021-08-18 16:28:25 +02:00
js Bug 14783: (follow-up) Move pickup library form into modal 2022-10-17 15:27:00 -03:00
lib Bug 30859: Upgrade jQuery Validation plugin from v1.19.1 to v1.19.4 2022-07-01 16:41:30 -03:00