The Open Access (OA) Waiver service provides faculty and researchers with the ability to submit and manage access to publications managed by the Scholarly Communications Office. Currently, Princeton aims to ensure that all published scholarly articles are released under the Open Access Policy, and as such, are available to the general public. This service ensures that faculty and researchers may submit waivers which may restrict access to any articles which may be (or have been) released as Open Access articles.
ruby 3.2.3
node.js 18.17.0
Please install Gem dependencies with the following:
$ bundle install
Please install NPM dependencies with the following:
$ yarn install
Start and initialize database services with rake servers:start
To stop database services: rake servers:stop
or lando stop
$ bundle exec foreman start
Then, please access the application using http://localhost:3000/
$ bundle exec rake db:setup
In order to deploy the Rails app. to the staging
environment, please invoke:
$ bundle exec cap staging deploy
To create a tagged release use the steps in the RDSS handbook
Please note that mail will not be delivered on the stagig server. This is expected behavior.
In order to reindex the data models into the Solr Collection, please invoke the following:
$ bundle exec rake oawaiver:solr:reindex
For reindexing on the remote server environments, please invoke:
$ bundle exec cap $RAILS_ENV oawaiver:solr:reindex
For adding administrative privileges, please use the following:
$ bundle exec rake oawaiver:accounts:add_admin_role[$NET_ID]
For removing administrative privileges, please invoke:
$ bundle exec rake oawaiver:accounts:remove_admin_role[$NET_ID]
$ bundle exec cap staging oawaiver:accounts:add_admin_role[$NET_ID]
$ bundle exec cap staging oawaiver:accounts:remove_admin_role[$NET_ID]