Ready to Learn?Ex Libris products all provide open APIs

Tech Blog

 

Embedded search box capable to search fields

We need an embedded search box which could search fields, such as Title, Author, Subject, and Call number. We modify the search box code  coming from "Creating a Search Box With Deep Links to the New UI" in the link "https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/New_Primo_User_Interface/New_UI_Customization_-_Best_Practices#Creating_a_Search_Box_With_Deep_Links_to_the_New_UI", and fulfill our target.

 

The interface will be like below.

 Embedded search box capable to search fields

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", so that this embedded search box could search title, author, subject, and call number.

 

The code is in https://github.com/andytang2008/embedded_searchbox