Bug 28422: OPAC MARC detail view doesn't correctly evaluate holdability
authorOwen Leonard <oleonard@myacpl.org>
Mon, 24 May 2021 15:55:43 +0000 (15:55 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Jul 2021 11:18:04 +0000 (07:18 -0400)
commitb542c9971eebc62af5435cdf1a85b89ddf6fcfbd
tree5e13cb80738a24e214d75a715a46c4a4265aa782
parentac593159a29cf9f6cd45ea1051e0023044088e7f
Bug 28422: OPAC MARC detail view doesn't correctly evaluate holdability

This patch modifies the MARC detail view in the OPAC so that it
evaluates whether a title can be placed on hold in the same way it is
done on the "normal" detail page and the ISBD detail page. This allows
for consistency in the display of the "Place hold" link.

To test, apply the patch and log into the OPAC.

 - Perform a search which will return results, at least one of which can
   be placed on hold.
 - View the detail page, the MARC detail page, and the ISBD detail page.
   In each case the "Place hold" link should appear in the sidebar.
 - View the same pages for a record which cannot be placed on hold to
   confirm that the link doesn't appear. For instance:
   - All items are not for loan.
   - All items are lost.
   - There are no items attached.

Signed-off-by: David Nind <david@davidnind.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: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-MARCdetail.pl