iris

Iris

This project is a Hyrax 1.0.5 application that uses the Samvera Labs geo_works gem to ingest works with spatial geographical data.

Build Status Coverage Status

Functional Spec

A functional spec of DCE’s first phase of GIS work for UCSB

Developer Setup

  1. Change to your working directory for new development projects cd .
  2. Clone this repo git clone git@github.com:curationexperts/iris.git
  3. Change to the application directory cd iris
  4. bundle install under project’s current ruby (2.4.4)
  5. Start redis redis-server & note: use ` &` to start in the background, or run redis in a new terminal session

Integration with a geoblacklight-based app

If you want your fedora objects to be indexed in another solr instance that is used by a geoblacklight app, set the environment variable to point to that solr instance:

export GEOBLACKLIGHT_SOLR_URL="http://127.0.0.1:8987/solr/development"

Indexing into the geoblacklight solr happens in a background job, so make sure your environment is configured to run background jobs.

Integration with GeoServer

See notes in the README_geoserver.md

Install Geo_works dependencies

  1. GDAL
  1. Simple Tiles

Create db

bundle exec rake db:setup bundle exec rake db:migrate

Create default admin set and load workflows

  1. Start solr and fedora (in new tabs) bundle exec solr_wrapper and bundle exec fcrepo_wrapper.

  2. Ensure AdminSet dependencies are in place: bundle exec rake hyrax:workflow:load and bundle exec rake hyrax:default_admin_set:create

  3. Start server bundle exec rails s

Run the app in development mode

Import works using the command-line importer

Set the following environment variables:

export RAILS_HOST='localhost:3000'

To import work records from a directory that contains zip files:

rake iris:import:from_zips[/path/to/your/zips]

Notes and Assumptions about Command-Line Importer: