]> git.koha-community.org Git - koha.git/commit
Bug 32611: Not for loan items don't show the specific not for loan value in OPAC...
authorOwen Leonard <oleonard@myacpl.org>
Thu, 23 Feb 2023 17:10:32 +0000 (17:10 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 1 Mar 2023 09:49:49 +0000 (09:49 +0000)
commit078f9d3f5ed21c24b6e023ede1b81a32c95b11fc
treecf337bde96a0b13acd1797c8c22d672da3c766aa
parent603f3f8263429a14645a666e0a34b9c5a45160e6
Bug 32611: Not for loan items don't show the specific not for loan value in OPAC detail page

This patch corrects what appear to be some copy-paste errors which
resulted in the "not for loan" authorized value description not
displaying, instead the generic "Not for loan" is shown.

The patch also adds another case for displaying the item restricted
status. Previously items.restricted would only display if the item
*also* had a notforloan value.

To test it's probably easiest to find a record with multiple items and
set various item statuses (damaged, notforloan, lost, restricted) and
confirm that the right description is shown.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 23c69dbfc2fbd6d393468fdadb5c0f28e9896a92)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc