Location list for serials
To provide an appropriate display for serials, we first need to determine if the specified title is a serial or monograph. After calling the Retrieve BIBs API to receive real-time availability information, we look through the returned AVA fields to search for a $$t (summary holdings information from 866) or $$h (calculated summary holdings when no 866 field exists). If either one of those two subfields is present, we assume the title is a serial.
Note: An alternative approach is to look for any items with a description. To accomplish that search using APIs, you can use the new filter fields along with the "ALL" holdings alias to search in all items in all holdings:
Once identified as a serial, we display the summary holdings information from subfields t or h. We also don't show request information at the title level since we'll want to enable item-level requesting for serials. We'll provide more information on using the APIs to enable requests in a future blog post.
The result is a location list optimized for serials:
Item list for serials
We want to make a few changes to the item list for serials as well. First, we'll display the item description rather than the barcode. We'll offer a request button at the item level. And we display a search box to allow the user to search for the desired issue or item.
Since there may be quite a few items, we want to use the AJAX capabilities of the DataTables plugin to enable search on the server side. We've implemented the pattern demonstrated in this excellent post to support this functionality in our application. We created an ItemsViewModel which provides the data in the format required by DataTables.
The Alma Retrieve Items API now supports filters for the following fields: enum_a, enum_b, chron_i, chron_j, description. Ordering of the results is enabled for the following fields: chron_i, description, enum_a, enum_b, enum_c, library, location or temporary_location. Our view model uses these parameters to fetch the relevant data as follows:
Together these additions to the APIs enable an efficient display for serial titles.
To get involved in the discussion, you can join the Ex Libris Alma & Open Source Discovery Google Group. There you can ask questions, give feedback, or make suggestions.
And finally, keep an eye on this space for more blog posts in the coming months.