Ruby Gem used for harvesting OAI-PMH records, transforming these into Solr Documents, and indexing the Documents.
$ gem install orangetheses
# oai:dataspace.princeton.edu:88435/dsp012z10wq21r is the OAI-PMH record identifier
$ rake oai:index_record[oai:dataspace.princeton.edu:88435/dsp012z10wq21r] SOLR="http://127.0.0.1:8983/solr/blacklight-core"
$ rake orangetheses:index_all SOLR="http://127.0.0.1:8983/solr/blacklight-core"
$ rake orangetheses:cache_theses FILEPATH=/tmp/theses.json
$ rake orangetheses:index_visuals SOLR="http://127.0.0.1:8983/solr/blacklight-core"
- Install Lando from https://github.com/lando/lando/releases (at least 3.0.0-rrc.2)
- See .tool-versions for language version requirements (ruby)
bundle install
(Remember you'll need to run the above commands on an ongoing basis as dependencies are updated.)
We use lando to run services required for both test and development environments.
Start and initialize Apache Solr with rake servers:start
To stop Solr services: rake servers:stop
or lando stop
$ bundle exec rspec
To install this Gem onto your local machine, please run:
$ bundle exec rake install
Bug reports and pull requests are welcome on GitHub at https://github.com/pulibrary/orangetheses.