Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

81 lines (53 sloc) 2.36 kb

ScholarSphere

ScholarSphere is a Ruby on Rails application utilizing the Blacklight and Hydra-head gems for integration with the search & indexing system, Solr, and the digital asset management platform, Fedora Commons.

ScholarSphere is being developed as part of Penn State's Digital Stewardship Program. Development on ScholarSphere began as part of the prototype CAPS project. Code and documentation are freely available via Github.

For more information, read the ScholarSphere development docs.

Installation Instructions

Install system dependencies

  • libmysqlclient-dev (if running MySQL as RDBMS)
  • libsqlite3-dev (if running SQLite as RDBMS)
  • FITS -- put it in a directory on your PATH
  • libmagick-dev
  • libmagickwand-dev

Copy and edit database, Fedora, and Solr configs

cp config/database.yml.sample config/database.yml
cp config/fedora.yml.sample config/fedora.yml
cp config/solr.yml.sample config/solr.yml

Install gems & migrate database

bundle install
rake db:create
rake db:migrate

If you'll be developing ScholarSphere, setup test dbs and load fixtures

RAILS_ENV=test rake db:create
RAILS_ENV=test rake db:migrate
RAILS_ENV=test rake scholarsphere:fixtures:create
RAILS_ENV=test rake scholarsphere:fixtures:refresh

Get jetty & start it

git submodule init
git submodule update
rake jetty:config
rake jetty:start

Run delayed jobs workers

script/delayed_job start 

Run the app

rails server

Auditing All Datastreams

RAILS_ENV=production script/audit_repository

You'll probably want to cron this in production environments.

Harvesting Authorities Locally

The easiest way to pull in authorities is to load the pre-generated set that are serialized as fixtures.

rake db:data:load

To harvest more authorities:

  1. Harvest the authority
  2. (OPTIONAL) Generate fixtures so other instances don't need to re-harvest
  3. Register the vocabulary with a domain term in generic_file_rdf_datastream.rb
Jump to Line
Something went wrong with that request. Please try again.