Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 9 rates
Labels:
intermediate intermediate Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

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.

intermediate

State

Stable

Programming language

JavaScript

Software requirements

JavaScript must be enabled

Screen captures

Author(s) homepage


Download

embed.js

Working example

http://smartsearch.uiowa.edu/

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




Page Attachments

File NameCommentSizeNumber of Downloads
hotwords.jpg53 kB531
embed.js24 kB133

Added by University of Iowa on Oct 29, 2008 21:38, last edited by Conf Admin on Oct 30, 2009 01:17

  1. Apr 20, 2012

    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.

Adaptavist Theme Builder Powered by Atlassian Confluence