Adwords/Hotwords JavaScript code
Tags: primo,
Last Updated: Oct 30, 2009 01:17
- Description
JavaScript file that presents links for popular library resources based on the primo search term.
- Author: University of Iowa University of Iowa LIT staff
- Additional author(s):
- Institution:
None
The University of Iowa - Year: 2008
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code:
Choose one of the following: basic, intermediate, advanced, expert. Please also add your choice as a tag at the bottom of the page.
State
Stable
Programming language
JavaScript
Software requirements
JavaScript must be enabled
Screen captures

Author(s) homepage
Download
Working example
Using the following Ex Libris open interfaces
Release notes
Installation instructions
Navigate to the base web directory of the front-end server (in our case, /exlibris/primo/p1_1/ng/primo/home/system/thirdparty/openserver/server/search/deploy/primo_library-app.ear/primo_library-libweb.war) . Copy the attached file to the javascript directory.
From the base web directory, navigate to the views/brief directory. In file, results_num_tile.jsp, insert the following code
<p>
<script type="text/javascript" src="../javascript/embed.js" ></script>
</p>
between these lines:
<prm:userText styleId="result" type="openingText"/>
<html:form method="post" action="/action/search.do ...
| Modify the script to reflect URLs and search terms that make sense for your institution. |
| Info sample |
TO DO list
We would like to find a way move this code outside of the native jsp files that are updated with service packs.
We would like to find a way to test making this a "server side" routine rather than "client side" where the search term is known.
Known issues
Comments


1 Comment
comments.show.hideApr 20, 2012
Jim Adamson
Hi,
Thanks for the contribution! I am trying to get this working in Primo v3. I have edited results_num_tile.jsp to include embed.js, but the three added lines do not show up when I 'View source' for the brief results page. Any ideas?
Thanks.