pulibrary / oawaiver

Waivers for the Princeton Open Access policy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OA Waiver Service

CircleCI

Coverage Status

The Open Access (OA) Waiver 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.

Development

Dependencies Setup

  • Ruby 3.0.3
  • Bundler 2.3.11
$ bundle install

Lando

Then, please use Lando to run services required for both test and development environments.

Start and initialize database services with rake servers:start

To stop database services: rake servers:stop or lando stop

Running the Application

$ bundle exec rails server

Then, please access the application using http://localhost:3000/

Running the Test Suites

$ bundle exec rake db:setup

Deployment

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

Staging Mail

Please note that mail will not be delivered on the stagig server. This is expected behavior.

Administration

Solr Indexing

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

Managing Roles for User Accounts

Local Deployments

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]

Remote Deployments

$ bundle exec cap staging oawaiver:accounts:add_admin_role[$NET_ID]
$ bundle exec cap staging oawaiver:accounts:remove_admin_role[$NET_ID]

About

Waivers for the Princeton Open Access policy


Languages

Language:Ruby 67.3%Language:HTML 18.8%Language:SCSS 10.5%Language:JavaScript 3.3%Language:Shell 0.1%Language:TypeScript 0.1%