Tech Blog

Embedded search box capable of searching fields in Primo VE

An embedded search box was created for Primo VE  which could search for fields, such as Title, Author, Subject, ISBN, ISSN, and Call number. We modified the search box code  coming from “Creating a Search Box With Deep Links to the New UI” in the link, and fulfill our target.

It is a good search box you could put into LibGuides pages if you added the corresponding search scope. The default search scope is EVERYTHING.

The interface will be like below.

Intending to use the search box in your library environment, you have to make some changes and customizations as follows.

It uses JavaScript code to get the select box value and replace the “any,contains,keyword” parameter with “title,contains,keyword”, or “creator, contains, keyword” etc, so that this embedded search box could search for title, author, subject, ISBN, ISSN, and call number in Primo VE.

The code is in

Leave a Reply