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


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

NEW SEARCH button in Primo

Tags:
Last Updated: Sep 30, 2011 01:04


  • Description

    Add a "NEW SEARCH" button to the Primo front end (basic and advanced search pages) so that users can click this to take them back to the initial Primo search screen and clear any checkboxes/searches they had on the go


  • Author: Randy Oldham
  • Additional author(s): Jennifer Robertson
  • Institution: Tri-University Consortium
  • Year: 2011
  • 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:
    Basic

State

Stable

Programming language

JSP

Software requirements

None

Screen captures

Author(s) homepage

http://www.lib.uoguelph.ca

Download

http://www.exlibrisgroup.org/download/attachments/36667892/Primo+V3+New+Search+Button.doc

Working example

http://primo.tug-libraries.on.ca/primo_library/libweb/action/search.do?vid=guelph_pc&reset_config=true

Installation instructions

  1. Log in to the Primo back office
  2. Under the "CONFIGURATION & MANAGEMENT WIZARDS" heading, Click "ADVANCED CONFIGURATION"
  3. Click on "ALL CODE TABLES"
  4. In the "SUBSYSTEM" drop down, select "FRONT END"
  5. Scroll down to the "SEARCH TILE" entry and click the EDIT button to the far right
  6. Scroll to the bottom of the list. In order to have the NEW SEARCH button show up on your BASIC SEARCH page, we need to add a new code table row to this table:
    1. in the CODE box, enter: VID.new_search_url, replace VID with the actual VID of the Primo VIEW you want your new search button to show up on
    2. in the DESCRIPTION box, enter the URL for your Primo View basic search page eg: http://URL/primo_library/libweb/action/search.do?vid=SOMETHING&reset_config=true
    3. in the LANGUAGE box, enter en_US for english
    4. in the DISPLAY ORDER box, leave the 0
    5. click the blue CREATE button
  7. Scroll to the bottom of the list. In order to have the NEW SEARCH button show up on your ADVANCED SEARCH page, we need to add another new code table row to this table:
    1. in the CODE box, enter VID.new_search_url_advanced, replace VID with the actual VID of the Primo VIEW you want your new search button to show up on
    2. in the DESCRIPTION box, enter the URL for your Primo View advanced search page http://URL/primo_library/libweb/action/search.do?vid=SOMETHING&reset_config=true&mode=Advanced
    3. in the LANGUAGE box, enter en_US for english
    4. in the DISPLAY ORDER box, leave the 0
    5. click the blue CREATE button
  8. Click SAVE & CONTINUE at the bottom of this screen
  9. Click the DEPLOY button at the top of this page
  10. We've now configured Primo so that it knows WHAT to do when it encounters the codes for "NEW SEARCH", but we haven't actually embedded the NEW SEARCH code into any of our views. That's next
  11. Open the lib.war directory on your primo server (for primo 3.1.1 the path is: /exlibris/primo/p3_1/ng/primo/home/system/thirdparty/openserver/server/search/deploy/primo_library-app.ear/primo_library-libweb.war/)
  12. Navigate to the "TILES" folder
  13. Make a copy of the searchTileBasic.jsp file
  14. Edit the original searchTileBasic.jsp file
  15. Replace the following code:

with

16. Save this file and send it back to the Primo server, overwriting the existing file

17. Make a copy of the advancedSearchTile.jsp file

18. Edit the original advancedSearchTile.jsp file and add the following code:

just above the following line (near the end of the file):

19. Save this file and send it back to the Primo server, overwriting the existing file.

20. Add some custom CSS styling to position everything so it looks proper (we call a custom CSS file in :

Page Attachments

File NameCommentSizeNumber of Downloads
Primo V3 New Search Button.doc39 kB121
basic_new_search.jpg20 kB338

Added by Randy Oldham on Sep 30, 2011 00:04, last edited by Randy Oldham on Sep 30, 2011 01:04

Adaptavist Theme Builder Powered by Atlassian Confluence