Bug 24279: Disable lost status select if item has a return claim
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 26 May 2020 11:27:28 +0000 (07:27 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 27 Jul 2020 15:05:06 +0000 (17:05 +0200)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt

index 9145c17..12dc7ea 100644 (file)
                             <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
                             <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
                             <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
+
+                        [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
+                            <select name="itemlost" disabled="disabled">
+                        [% ELSE %]
                             <select name="itemlost">
+                        [% END %]
                                 <option value="">Choose</option>
                                 [% FOREACH itemlostloo IN itemlostloop %]
                                     [% IF ClaimReturnedLostValue && !ITEM_DAT.itemlost && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]