The engine requires a working copy of marc_liberation aka bibdata to be running. Defaults to https://bibdata.princeton.edu. If you wish to override that value while doing development work and point a local working copy you can set your local environment variable of BIBDATA_BASE
to the root of the marc_liberation application you want to work with.
The gem also is dependent on Orangelight to service requests for non-alma IDs. By default it utilizes the production Orangelight system at https://catalog.princeton.edu/.
You need to have a working version of Chromedriver http://chromedriver.chromium.org/ on your path to successfully run the feature tests associated with this project. Homebrew is a good way to accomplish this. It is currently part of https://github.com/Homebrew/homebrew-cask.
graph TD;
A[Requests]-->B[Alma EDD and Print];
A-->C[Recap/SCSB EDD and Print];
A-->D[Ciasoft Print];
A-->E[Illiad EDD and Print];
A-->F[AEON Print];
A-->G[Borrow Direct Print];
A-->H[Email Print];
After you've cloned the repo:
$ bundle install
$ bundle exec rake ci
With Code Coverage Report
$ COVERAGE=true bundle exec rake ci
This engine is mouting within Orangelight. To test your local engine code interactively update the OL gemfile reference to the gemfile:
Change:
gem 'requests', git: 'git@github.com:pulibrary/requests.git', branch: 'development'
to:
gem 'requests', path: '/mylocal/path/to/the/gem/requests'
and run bundle update requests
to point your local copy of OL at your local requests gem.
gem 'requests', :git 'git@github.com:pulibrary/requests.git'
bundle install
rails generate requests:install
This project rocks and uses MIT-LICENSE.
/requests/{mms_id}?mfhd={holding_id}
Example: https://catalog.princeton.edu/requests/9702169?mfhd=9525518
a. Optional Params
source
https://catalog.princeton.edu/requests/9702169?mfhd=9525518&source=pulsearch - Facilitates redirection to the source system that generated the request. Currently responds to pulsearch
or catalog
, other values will be ignored./requests/{thesis_id}
Example: https://catalog.princeton.edu/requests/dsp01vx021h212. This will result in a redirect to the AEON system.Under current campus access policies if you are interactively testing this gem you need to grant your net ID full campus access privileges. You can do by adding your net ID to the campus access list in the bibdata instance you are testing with. To do so:
ssh deploy@bibdata-alma-staging1.princeton
cd /opt/marc_liberation/current
RAILS_ENV=production bundle exec rails c
CampusAccess.create(uid:'mynetid')