A webpage to retrieve new acquisitions using Alma Analytics API
See the demo.
1) An Alma Analytics report to retrieve books (and other material types) arrived in our libraries in the last 30 days at status On Shelf or Loan, or Hold Shelf (that is cataloging already done). The Report retrieves some bibliographic details (MMSid, title, author etc.). In a column there is the Primo baseurl + MMSid to do a Link to the record in Primo.
This is the report:
Please note this column: Link to record
2) A new application to use Analytics API
3) A Php script calls the Analytics report and read the xml.
To prevent multiple API calls I use a cache system.
Example: What day is today? Is there in dir cache a report with this date? If yes, I use this report, if not I call my Analytic Report with API and put the xml response in my dir cache. So I am sure that only a call is done in the current day.
I read the API xml response and put the result in some HTML element. Now it’s all ready to put the result in webpage
See the script (ver 1. In production now have ver. 2, see the demo).