For a while I’ve been meaning to write a quick post around our move to Alma as our Library Management System. This isn’t that post, and I still plan to write it, but this is around some functionality in Primo which we wanted to create as a result.
In the past our Capita Prism based catalogue used a juice widget to show if an item was on the catalogue, as far as I am aware Prism was the only catalogue which had an almost out of the box integration with Aspire in this way.
With Prism no longer available as we moved to Alma, the challenge was to provide the same information in Primo.
You can see the end result code here: https://gist.github.com/chriskeene/7ff12e38ed7ce99b68e4
I do a brief walk through of how it works, and the code here:
If you use Primo and Aspire then feel free to take a copy and adapt it.
Possible improvements might include calling the API for each ISBN within a record, in case the Aspire record has one ISBN but not another. At the moment it only checks one ISBN (the first 13 digit ISBN, if not then the first 10 digit), if that is not in the Aspire record then no match will be found. Another idea is that at the moment it can only add the links if the links section appears on the right. Which is not always the case for Primo Central records. It could potentially check for this case, and display them elsewhere when this occurs.