Note: This gem is depreceated. Princeton has removed it from most of our applications, and it has also been removed from Hyrax.
PulUvRails
A Rails engine wrapper to include the Princeton University Library branded Universal Viewer.
Installation
Add this line to your application's Gemfile:
gem 'pul_uv_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pul_uv_rails
Update
Steps for updating the included Universal Viewer
-
Make sure you have npm and bower installed: https://bower.io/
-
Insert a reference to the latest tagged version of the Princeton branded viwer in bower.json.
-
Update using bower:
$ bower update
-
Commit the changes and tag pul_uv_rails with the updated version.
Edit Viewer Style
-
Make changes to the less files in the PUL Universal Viewer theme.
-
Rebuild the viewer library:
$ grunt build
-
Commit changes to the viewer and tag.