Skip to content
Code for the RIAMCO website
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib/tasks
public
solr_conf
test/models
.env_sample
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
riamco_access.xsl
riamco_access_points.xsl
riamco_addinfo.xsl
riamco_administrative.xsl
riamco_all.xsl
riamco_arrangement.xsl
riamco_biography.xsl
riamco_ga.xsl
riamco_html_title.xsl
riamco_inventory.xsl
riamco_nav1.xsl
riamco_overview.xsl
riamco_scope.xsl
riamco_title.xsl
riamco_top_banner.xsl

README.md

RIAMCO v2

Source code for the Rhode Island Archival and Manuscript Collections Online (RIAMCO) website.

Pre-requisites

We are currently using Ruby 2.3.5, Rails 4.2.x, SQLite, and Solr 7.

brew install ruby-install
brew install chruby
ruby-install ruby 2.3.5
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby 2.3.5
gem install bundle

To get started

git https://github.com/Brown-University-Library/riamco.git
cd riamco
bundle install
source .env_sample
bundle exec rake db:migrate
bundle exec rails server

Update the values in .env_sample to match the URLs where Solr is running in your environment.

Indexing our EAD files

bundle exec rake riamco:ead_to_solr[/path/to/xml/published/*.xml,true]

You can pass false as the second argument to skip the pushing of the data to Solr and instead get the JSON output on the console.

General Architecture

See this document.

Solr Index

The code to convert the finding aids from XML to Solr documents is in the ./app/models/ead.rb file.

You can’t perform that action at this time.