[Koha-bugs] [Bug 34722] All items display as recalled when an item-level recall is made

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 17 22:13:14 CEST 2023


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #155245|0                           |1
        is obsolete|                            |

--- Comment #3 from David Nind <david at davidnind.com> ---
Created attachment 155763
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155763&action=edit
Bug 34722: Prevent other items from displaying to fill item-level recalls

This patch prevents other items attached to a record from being displayed as
'recalled' by item-level recalls.

To test:
1. Ensure UseRecalls system preference is enabled and circulation rules
relevant to recalls are configured. Set 'on shelf recalls allowed' circulation
rule 'if any unavailable' for ease of testing.
2. Search for a record that has multiple items, or create one with multiple
items. Check out two of the items (Item A and Item B) to a patron, Patron A.
3. Log into the OPAC as another patron, Patron B. Search for the record and
place a recall. Choose to recall a specific item and select Item A.
4. Go back to the staff interface and view the catalogue detail page for the
record. Notice that every item has a 'recalled by...' message, even though Item
A was specifically recalled.
5. Log into the OPAC as another patron, Patron C. Search for the record and
place a recall. Choose to recall a specific item, notice every item has a
'recalled by...' message. Select Item B and Confirm.
6. In your terminal, the 'Other items are not returned for item-level recalls'
test should fail when running
prove t/db_dependent/Koha/Item.t

7. Apply the patch and restart services

8. Confirm tests at t/db_dependent/Koha/Item.t now pass
9. Refresh the staff interface, confirm only Items A and B have the recalled
message and the recall patron information for each item is accurate
10. Log into the OPAC as another patron, Patron D. Search for the record and
place a recall. Choose to recall a specific item. Confirm only Items A and B
have the recalled message.

Sponsored-by: Toi Ohomai Institute of Technology
Signed-off-by: David Nind <david at davidnind.com>

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


More information about the Koha-bugs mailing list