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


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

Automated switch to mobile view

Tags: primo, javascript, mobile view

Last Updated: Jan 24, 2012 11:14


  • Description

    How to configure Primo, that it is automatically detected, if the end-user is accessing a view by a desktop/laptop pc or by a mobile device.
    When Primo Front End is accessed by a mobile device, the view shall switch from the institutions standard view to the institutions mobile view.


  • Author: Thomas Gerd tom Markotten
  • Additional author(s):
  • Institution: Exlibris
  • Year: 2011



  • License: "This is free and unencumbered software released into the public domain. ..."

For further details see http://detectmobilebrowsers.com/about


  • Skill required for using this code:
     Basic

Working example

University of York

http://yorsearch.york.ac.uk/

Software requirements

Tested with Primo v. 3.1.0


Installation instructions

Please add the mentioned javascript to the header.html -file of your standard view. Please replace 'http://your-mobile-view' at the end of the script with your actual mobile view.

For scripts, pls. check http://detectmobilebrowsers.com/

Known issues

No known issues. 


Comments


Page Attachments

No files have been attached to this page.

Added by Thomas Gerd tom Markotten on Dec 06, 2011 18:26, last edited by Thomas Gerd tom Markotten on Jan 24, 2012 11:14

  1. Jan 04, 2012

    If you want to use the source code, you have to remove each '\' character before  each '|' character.

    1. Jan 24, 2012

      Dear Mr. Fallert,

      thanks for the hint. I corrected the code.

      Best regards

      Thomas

      Gerd tom Markotten

Adaptavist Theme Builder Powered by Atlassian Confluence