[Koha-bugs] [Bug 34178] New: Add caching of ItemsAnyAvailableAndNotRestricted to IsAvailableForItemLevelRequest

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 30 21:25:42 CEST 2023


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

            Bug ID: 34178
           Summary: Add caching of ItemsAnyAvailableAndNotRestricted to
                    IsAvailableForItemLevelRequest
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Hold requests
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

There are several places in the code where we precalculate
ItemsAnyAvailableAndNotRestricted to avoid looping on this routinee when
calling IsAvailableForItemLevelRequest on a list of items form a biblio

The value of ItemsAnyAvailableAndNotRestricted is only used when there is a
circulation rule for 'onshelfholds' with a value of '2' (If all unavailable)

Rather than calculate a value that may never be used, let's cache this value
per request when we do calculate it - and reuse the cached value

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


More information about the Koha-bugs mailing list