Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

captured by putting the following in .bashrc and sourcing same:

export HISTFILE=/home/vagrant/.bash_history
export HISTFILESIZE=1000
export HISTSIZE=800
export PROMPT_COMMAND='history -a'

at command line: 

sudo apt-get update

sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

sudo useradd -s /bin/bash -m hydep

  

https://github.com/projecthydra/hydra/wiki/Dive-into-Hydra

----------------------------------------------------------

gem install rails

rails new hydra-demo

cp ~/Documents/hydracamp/v8.1.1.zip hydra-demo/tmp/ #note: usually you would use the gem jetty-wrapper

git init

rails server # if on virtualbox, $ rails server -b 0.0.0.0

# navigate to http://localhost:3000/

add Hydra to the gem files

bundle install

commit to git repo

rails generate hydra:install

git add .

git commit -m "Ran the hydra generator"

rake jetty:start

navigate to http://localhost:8983, see 2 links (fedora, solr)

do what it tells you on the welcome page at localhost:3000

 

make some books. you can look at them in rails console like

2.2.0 :016 > puts b.resource.dump(:ttl)

2.2.0 :016 > puts b.resource.dump(:ntriples)

 

b.to_solr.except([any field])

 

when you index as :stored_searchable

it gives your solr field the suffix tesim (text in english stored indexed multivalued)

 

app/controllers/catalog_controller.rb

you can move    config.default_solr_params = {

      :qt => ’search’,

      :rows => 10

into solr config to optimize

 

SUFIA

-----

demo.curationexperts.com/

integrates with browse everything or local file system

install notes in the readme: https://github.com/projecthydra/sufia