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
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.


2 Comments
comments.show.hideJan 04, 2012
Bernd Fallert
If you want to use the source code, you have to remove each '\' character before each '|' character.
Jan 24, 2012
Thomas Gerd tom Markotten
Dear Mr. Fallert,
thanks for the hint. I corrected the code.
Best regards
Thomas
Gerd tom Markotten