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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Jun 2021 10:04:17 +0000 (12:04 +0200)
commita6adf70decc9caa691dce12db9a5505c861cff04
treeabeb69a95675a6c49047e2f98302403a36d18b87
parente961e45daa8e66f9b2e99eab61014462f1370387
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>
opac/opac-MARCdetail.pl