No description, website, or topics provided.
Ruby JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
cmodels
config
db
features
fedora_conf/conf
jetty @ 3eecb92
lib
local_object_store
pdf_pages
public
script
solr_conf
spec
test
test_support
vendor/plugins
.gitignore
.gitmodules
.rspec
Gemfile
Gemfile.lock
README
README.rails
Rakefile
config.ru

README

Welcome to the TDL Hydra Head

Steps for Getting the Code Up and Running:

$ git clone git@github.com:mkorcy/tdl_hydra_head.git
$ cd tdl_hydra_head/
$ git submodule init
$ git submodule update
$ rake db:migrate
$ rake hydra:jetty:config
$ rake jetty:start
$ rake tufts_dca:refresh
$ rake tufts_dca:refresh RAILS_ENV=test
$ rails server

Working with TDL Objects in the Console

load "tufts_facpub.rb"
p= TuftsFacultyPublication.load_instance('tufts:UA005.036.001.00001')
p.datastreams_in_memory["DCA-META"].get_values :filesize
p.datastreams_in_memory["DCA-META"].get_values :title

solrizer = Solrizer::Fedora::Solrizer.new
solrizer.solrize "tufts:PB.002.001.00001"

rights_ds2 = TuftsRightsMetadata.new
rights_ds2.to_solr

Where are the TDL views?

Where are the TDL models?

Refreshing TDL Fixtures:
$rake tufts_dca:refresh

Merging new changes from Github:
$ git fetch origin
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 9 (delta 6), reused 9 (delta 6)
Unpacking objects: 100% (9/9), done.
From github.com:mkorcy/tdl_hydra_head
   3a5899a..6d0d7a1  master     -> origin/master

$ git merge origin/master
Updating 3a5899a..6d0d7a1
Fast-forward
 Gemfile                                      |    1 +
 Gemfile.lock                                 |    3 ++-
 test_support/fixtures/tufts_PB.002.001.00001 |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)


How do I find modified files between local and remote?
(see: http://stackoverflow.com/questions/231211/using-git-how-do-i-find-modified-files-between-local-and-remote)
$ git fetch origin
remote: Counting objects: 44, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 31 (delta 15), reused 31 (delta 15)
Unpacking objects: 100% (31/31), done.
From github.com:mkorcy/tdl_hydra_head
   0c9be45..0c3e221  master     -> origin/master
$ git log master..origin/master
commit 0c3e22159e1922b239f08f05e3ec096cc8aa207c
Author: Brian Goodmon <brian.goodmon@tufts.edu>
Date:   Tue Nov 15 12:18:06 2011 -0500

    Modified audio_player.css to override list item style conflict with yui.css.

commit 4f1c8a70569b916437c50dc55c4e852ef5af2e0b
Author: Brian Goodmon <brian.goodmon@tufts.edu>
Date:   Tue Nov 15 12:12:14 2011 -0500

    Changes and additions for audio player.

Pushing changes back
$ git push -u origin master

Hydra 3.0 -> 3.1.5 Upgrade path.
0) shutdown jetty and rails server
1) delete existing Gemfile.lock
2) update Gemfile with needed Gems for 3.1.5
3) create new gemset for rails 3.0.10 ree-1.8.7-2011.03@rails3010
4) make new gemset default, and re-source shells
5) bundle install
(6 - ignore this step) create new emtpy hydrahead elsewhere and copy back updated solr schema and configs into existing head
7) rake hydra:jetty:config
8) rake jetty:start
9) rake tufts_dca:refresh
10) rails server

TEST