From 7760643f36ed2a8c4722315a9a31db8ca5da22fd Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Tue, 12 Feb 2019 21:33:50 +0000 Subject: [PATCH] Bug 22130: (follow-up) Show not for loan authorised values in batch checkout TEST PLAN 1) In Koha administration, search "BatchCheckouts". 2) Make sure "BatchCheckouts" is set at "Allow". 3) Make sure "BatchCheckoutsValidCategories" contains at least one patron category. 5) Copy the barcode of an item and change the status document so it cannot be loaned. 4) Choose a patron which belongs to the patron category at 3). (their account should not be expired and they should not have active fees preferably) 5) Go to the patron details page. 6) Click on "Batch check out". 7) Enter the item barcode. 8) Notice a number is in brackets under the column "Information". 9) Apply patch. 10) Notice the status description has replaced the number. 11) Try it with both: AllowNotForLoanOverride on and off Signed-off-by: Josef Moravec Signed-off-by: Owen Leonard Signed-off-by: Nick Clemens (cherry picked from commit abb1b4a75053aa026740e16cc0197d86f417818e) Signed-off-by: Martin Renvoize (cherry picked from commit d44ea8003ad6d7c31ac611a221a2fdb245c2dad7) Signed-off-by: Lucas Gass --- .../prog/en/modules/circ/circulation_batch_checkouts.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt index 5f41129013..1c55bb4892 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt @@ -151,7 +151,7 @@ [% IF checkout_info.itemtype_notforloan %]
  • Item type is normally not for loan.
  • [% ELSIF checkout_info.item_notforloan %] - [% item_notforloan_lib = AuthorisedValues.GetByCode( checkout_info.authvalcode_notforloan, checkout_info.item_notforloan, 0 ) %] + [% item_notforloan_lib = AuthorisedValues.GetByCode( 'NOT_LOAN', checkout_info.item_notforloan, 0 ) %]
  • Item is normally not for loan [% IF item_notforloan_lib %]([% item_notforloan_lib | html %])[% END %].
  • [% END %] [% END %] @@ -207,8 +207,8 @@ [% IF checkout_info.itemtype_notforloan %]
  • Item type not for loan.
  • [% ELSIF checkout_info.item_notforloan %] - [% item_notforloan_lib = AuthorisedValues.GetByCode( checkout_info.authvalcode_notforloan, checkout_info.item_notforloan, 0 ) %] -
  • Item not for loan [% IF checkout_info.item_notforloan_lib %]([% checkout_info.item_notforloan_lib %])[% END %].
  • + [% item_notforloan_lib = AuthorisedValues.GetByCode( 'NOT_LOAN', checkout_info.item_notforloan, 0 ) %] +
  • Item not for loan [% IF item_notforloan_lib %]([% item_notforloan_lib | html %])[% END %].
  • [% END %] [% END %] [% IF checkout_info.WTHDRAWN %] -- 2.39.5