Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-1360

Consider TLR when creating recall requests

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • 23.0.0
    • None
    • EPAM-Veg Sprint 129
    • 3
    • Vega
    • Lotus R1 2022

    Description

      When creating a new request with TLR feature enabled, we search only for requester's open loans (1), while we should also look for other patrons' loans for the requested instance. If we don't, if we try to create a recall request we will fail to update the existing loan (2).

       

      (1) org.folio.circulation.resources.RequestFromRepresentationService#fetchItemAndLoan

      (2) org.folio.circulation.domain.UpdateLoan#onRequestCreateOrUpdate

       

      As discussed with stephaniesbuck, when trying to create a title-level request, and multiple open loans exist for items of the requested instance, we should recall the loan with the closest due date. In such case, item should be linked to a title-level request (itemId and holdingsRecordId fields should be filled)

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                roman-barannyk Roman Barannyk
                OleksandrVidinieiev Oleksandr Vidinieiev
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases