To begin:
- Clone or download/unzip this repo
cdinto the local collection_guides directory (the one you just cloned)
Locate the file config/database_example_sqlite.yml and save a copy as
config/database.yml.
NOTE: Using MySQL requires other MySQL components to already be available on your system.
-
Locate the file
config/database_example_mysql.ymland save a copy asconfig/database.yml. Update the information in this file as needed. For more information see http://edgeguides.rubyonrails.org/configuring.html#configuring-a-database -
In
Gemfile, uncomment this line before proceeding:# gem 'mysql2'
- Run
bundle installto install gems (requires Bundler -gem install bundler) - Run
bundle exec rake collection_guides:generate_secretsto generate the Rails secret_key_base.
Run this to create the database:
rake db:setup
To use search features, a Solr core must be available. The solr_conf directory
contains Solr configuration files.
Configuration files containing sensitive information are required but not included in this repository for security. These files need to be created manually.
Provide information needed to connect to the Solr index and to ArchivesSpace.
You can use application_example.yml as a template.
Configuration options (all required unless specified) include:
solr_host: Your Solr host (e.g. 'solr.myinstitution.org', without the 'http://' protocol segment included)solr_port: The port number on which your Solr instance is running (required)solr_core_path: If you are running a multi-core instance of Solr, provide the path to your core (with leading and trailing slashes - e.g. '/solr/aspace_public/')archivesspace_host: The hostname for your ArchivesSpace instance, used for communication between DAEV and ArchivesSpace (localhost if running on the same server as the application)archivesspace_url_host: The hostname for your ArchivesSpace instance (e.g. 'archivesspace.myinstitution.org', without the 'http://' protocol segment included), used for generating links to the records in the ArchivesSpace front endarchivesspace_port: Your ArchivesSpace backend port (ArchivesSpace default is 8089)archivesspace_frontend_port: Your ArchivesSpace frontend port (ArchivesSpace default is 8080)archivesspace_solr_port: Your ArchivesSpace Solr port (ArchivesSpace default is 8090)archivesspace_solr_path: path the the Solr core used by ArchivesSpace (ArchivesSpace default is '/collection1/')archivesspace_username: Username for an ArchivesSpace admin userarchivesspace_password: Password associated with archivesspace_usernamearchivesspace_https: Set to true to force communication with ArchivesSpace over HTTPS (OPTIONAL - defaults to false)
Once the configuration files have been added and the Solr index is in place, data can be imported from ArchivesSpace via a single rake task:
rake aspace_import:full
This task will first import all repositories in your ArchivesSpace instance, then import each resource in each repository, along with all descendant archival_object and digital_object records, and subject and agent records associated with any of these. THIS PROCESS CAN TAKE A VERY LONG TIME, DEPENDING ON THE SIZE OF YOUR ARCHIVESSPACE DATABASE.
NOTES:
- The application will only import published records, and resources must have a finding aid status of "complete". These conditions are not currently configurable.
- There is currently nothing in the user interface to differentiate between repositories. In fact, beyond storing basic information about the repositories and their associations to
Resourcerecords, the application currently does not take repositories into consideration in any way.