[Koha-bugs] [Bug 16122] Item record needs to keep local use count

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 12 00:37:49 CET 2024


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

--- Comment #89 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 163077
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163077&action=edit
Bug 16122: Add unit test

To test:
1. Apply patch, updatedatabase & schema, restart all Services
2. Go to Administration > Table setting. Find the holdings table ( Catalog >
holdings_table ) and turn the local use column on.
3. Go to an item record and notice the column 'Local uses'
4. Turn the system preference RecordLocalUseOnReturn Off.
5. Check in an item that is not checkout out. No local use should be recorded
for the item.
6. Turn RecordLocalUseOnReturn on and check in an item that is not checked out.
Local use on that item should increment by 1.
7. Create a statistical patron and check an item out to them. Local use should
increment by 1.
8. Go to /api/v1/items?external_id={barcode} and make sure the numbers for
localuse look correct.

To test maintainence script:
1. Without the patch, have RecordLocalUseOnReturn on.
2. Check in some items to record localuse in the stats table. Keep note of
those stats.
3. Apply the patches, updatedatabase.
4. Run the maintenance script, perl update_localuse_from_statistics.pl
5. Now check that items.localuse is congruent with what is in the stats table

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


More information about the Koha-bugs mailing list