[VUFIND-1245] Make fetching of item statuses more fault-tolerant Created: 13/Sep/17  Updated: 12/Sep/18  Resolved: 12/Sep/18

Status: Resolved
Project: VuFind®
Components: ILS Driver
Affects versions: 4.0.1
Fix versions: 5.1

Type: Bug Priority: Major
Reporter: Ere Maijala Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified


 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.

 Comments   
Comment by Demian Katz [ 12/Sep/18 ]
The MultiBackend improvements were addressed in 5.1; some other suggested improvements occurred in earlier releases.
Generated at Tue Apr 16 14:25:52 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100250-rev:9c61b78796b51839636b0c22f7f9f2138328d1a0.