VuFind
  1. VuFind
  2. VUFIND-1245

Make fetching of item statuses more fault-tolerant

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.1
    • Fix Version/s: None
    • Component/s: ILS Driver
    • Labels:
      None

      Description

      Currently the getItemStatuses AJAX call relays all the record IDs to ILS driver's getStatuses method. If there's a problem with any of the records, it can potentially prevent the status from being displayed for all records. This can happen especially easily with the MultiBackend driver where a single ILS going offline can disrupt status retrieval for all the others too.

      There are several ways to deal with this including the following:

      1.) Make it possible to return an error status for a single record ID without throwing an exception.
      2.) Make AjaxController first try getStatuses and if it throws an exception, try the records one by one.

      Additionally the MultiBackend driver should be made smarter with getStatuses so that it would group the IDs according to the backend and use getStatuses further on.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ere Maijala
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: