[Koha-bugs] [Bug 25560] Define itemtype specific rules in the UpdateNotForLoanStatusOnCheckin system preference

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 2 10:16:12 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25560

--- Comment #68 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 138498
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138498&action=edit
Bug 25560: Define item-type specific rules in UpdateNotForLoanStatusOnCheckin

This enhancement respects the 'item-level_itypes' syspref, so will look
at the authoritative item type when determining to update the notforloan
status.

Test plan:
1. Set -1 to 'Ordered', and 1 to 'Not for Loan' in Administration > Authorised
values > NOT_LOAN

2. Make sure the 'item-level_itypes' syspref is set to 'specific item'

3. Add the following rules in UpdateNotForLoanStatusOnCheckin system
preference:
-1: 0

4. Apply patch & update database
cd installer/data/mysql
sudo koha-shell <instancename>
./updatedatabase.pl

5. Restart plack

6. Observe the UpdateNotForLoanStatusOnCheckin syspref values have
updated to the following format:
<itemtype_1>:
 -1: 0

<itemtype_2>:
 -1: 0

etc.

Each item type setup in Koha has the existing rule(s) listed under it

7. Check in an 'Ordered' item of any item type and confirm it is changed
to 'Available for loan'

8. Reset the UpdateNotForLoanStatusOnCheckin syspref to:
BK:
 -1: 0

CD:
 1: 0

9. Check-in an 'ordered' BK item (item level itype='BK') and observe the item's
notforloan status updates

10. Check-in a 'Not for Loan' CD item (item level itype='CD') and
observe the item's notforloan status updates

11. Check-in an 'ordered' DVD item (item level itype='DVD') and observe
the items notforloan status does not change

Sponsored-By: Waikato Institute of Technology, NZ

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list