Category: primo

Implement a geo-search widget in Primo
Some institutions maintain records in their catalog which are related to a specific geographic location. Records which represent images, manuscripts, or other material which was either composed in or is pertaining to a location is perhaps best displayed on a map. The Primo customization framework allows us to add a widget which shows the relevant…

ALMA PRIMO

Add Library Hours from LibCal to Primo Using JQuery
Introduction At Piedmont Virginia Community College, students have a link directly to Primo through the college portal.  For this reason, I decided it would be helpful to put our library hours on Primo’s homepage. A programmer at our college had already written some JQuery code to pull our hours from LibCal and display them on…

PRIMO

Using a simple proxy to add CORS support to Ex Libris APIs
Browser security prevents HTTP requests from being made between domains. This "same-origin policy" prevents sensitive information from being revealed to an untrusted party. However, the policy makes it challenging to build JavaScript-based web applications, where AJAX requests are made to a server to retrieve data and display it on the web page. If we want…

ALMA PRIMO

Bulk Export Titles from Primo using Primo Search API
In this example, I use the Primo Search Api to collect all of the database titles from Primo and then export them to a local file.Method: Windows PowerShell Pre-requisites: Primo Search Api Key Primo Search API Doc: https://developers.exlibrisgroup.com/primo/apis/search/GET/AnSF56/p3aKzRujr9pj8qtyT3YiaSYVA/f5643222-bb88-4f3d-b2d6-5029e527c515  Steps taken within PowerShell:1.) Define API Url:$api = '{apiServer}/primo/v1/search?vid={vid}&tab={tab}&scope={scope}&pcAvailability={true/false]&q=any,contains,{query}&qInclude=facet_rtype,exact,{facet}&limit={limit}&apikey={apiKey}'2.) Convert data from JSON:$results = Invoke-WebRequest -Uri $api | ConvertFrom-Json3.) Define source…

PRIMO

Changing the request link in Primo into a button
Use CaseAs a user, I am familiar with online retailers that have buttons for actions like “Add to My Cart” or “Place an Order.” I expect that same experience when I request a book or item in Primo.Goal Modify CSS to transform the request link in Primo New UI into a button in the Primo…

PRIMO

Search and request using OpenURL
This widget takes an ISBN or title, enhances it with metadata from Google Books, then searches Primo using OpenURL.  The book is either found or the patron can place an Illiad request via a General Electronic Service.  We may add an Alma purchase request as a service, also.. This came about as some faculty felt…

ALMA PRIMO

How to use the Primo Search API as a guest in the developer network in 5 easy steps
Preliminary Note:For an example of doing a GET API call for Primo search paste this into your browser or REST clienthttps://api-eu.hosted.exlibrisgroup.com/primo/v1/search?vid=API_GUEST_INST%3AAPI_GUEST_INST&tab=LibraryCatalog&scope=MyInstitution&q=creator%2Ccontains%2Celia%20zafrani%2CAND%3Bany%2Ccontains%2Ccloud%20computing&qInclude=facet_tlevel%2Cinclude%2Conline_resources%7C%2C%7Cfacet_rtype%2Cexact%2Cbooks&lang=en&offset=0&limit=10&sort=rank&pcAvailability=true&getMore=0&conVoc=true&inst=API_GUEST_INST&apikey=l7xx2af7939c63424511946e0fcdc35fe22aIntroduction:This blog includes specific instructions of how to fill in the field parameters of the Primo search API as well as tips of where to take them from for your specific case.The Ex Libris Developer…

ALMA PRIMO GETTING-STARTED HOW-TO-APIS-IN-5-EASY-STEPS

How to embed HAL documents List in the Primo new UI Homepage ?
HAL is the institutional french Open Archive for scholarly documents, so the following lines will primary (perhaps) have an interest for the french customers that are using the Primo new UI. The first matter is to use the HAL APi with custom parameters to retrieve the records you want to display. The use of the…

PRIMO

Move Certain facet values to top of facet list
In our Primo, we need certain resource type facet values (books, e-books, journals, e-journals) to be always on top of the facet list, no matter how high the number of expected results is. In the old UI, this was accomplished by dom manipulation via jQuery. Since we cannot use jQuery with the new UI anymore,…

PRIMO

Simply add a Google Map to the Item View in Primo new UI
At the University of Nice (France) we are testing the Primo New UI, and will probably use in production this little custom module we develop. First we need to install the ngmap package (Google map directives for Angular) : npm install ngmap --save And import it in your main js (we use browserify to compile)…

PRIMO