hydra-head 3.3.0 → 4.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +155 -181
- data/HISTORY.textile +5 -0
- data/INSTALL_PREREQ.textile +6 -3
- data/README.textile +8 -4
- data/{assets → app/assets}/images/hydra/powered_by_hydra.png +0 -0
- data/{assets → app/assets}/images/hydra/search-button.png +0 -0
- data/{assets → app/assets}/javascripts/date-picker/booking/index.html +0 -0
- data/{assets → app/assets}/javascripts/date-picker/calendarHTML.txt +0 -0
- data/{assets → app/assets}/javascripts/date-picker/css/datepicker.css +0 -0
- data/{assets → app/assets}/javascripts/date-picker/css/demo.css +0 -0
- data/{assets → app/assets}/javascripts/date-picker/index.html +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/datepicker.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/datepicker.packed.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/ar.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/cs.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/da.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/de.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/en.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/eo.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/es.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/et.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/fi.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/fr.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/he.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/hu.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/id.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/it.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/kr.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/lt.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/lv.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/nl.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/no.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/pl.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/pt-br.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/pt.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/ru.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/se.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/si.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/js/lang/tr.js +0 -0
- data/{assets → app/assets}/javascripts/date-picker/language/index.html +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/Thumbs.db +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/backstripes.gif +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/bg_header.jpg +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/bullet1.gif +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/bullet2.gif +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/cal-grey.gif +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/cal.gif +0 -0
- data/{assets → app/assets}/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif +0 -0
- data/{assets → app/assets}/javascripts/hydra/hydra-head.js +0 -0
- data/{assets → app/assets}/javascripts/hydra/mediashelf.datepicker.js +0 -0
- data/{assets → app/assets}/javascripts/hydra/mediashelf.placeholder.js +0 -0
- data/{assets → app/assets}/javascripts/jquery.form.js +0 -0
- data/{assets → app/assets}/javascripts/jquery.ui.datepicker.js +0 -0
- data/{assets → app/assets}/javascripts/spin.min.js +0 -0
- data/{assets → app/assets}/stylesheets/hydra/html_refactor.css +2 -2
- data/{assets → app/assets}/stylesheets/hydra/hydrangea-split-button.css +0 -0
- data/{assets → app/assets}/stylesheets/hydra/hydrangea.css +0 -0
- data/{assets → app/assets}/stylesheets/hydra/ie-styles.css +0 -0
- data/{assets → app/assets}/stylesheets/hydra/styles.css +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/{assets → app/assets}/stylesheets/redmond/jquery-ui-1.8.5.custom.css +0 -0
- data/app/controllers/downloads_controller.rb +0 -16
- data/app/controllers/hydra/assets_controller.rb +3 -0
- data/app/controllers/{contributors_controller.rb → hydra/contributors_controller.rb} +11 -16
- data/app/controllers/hydra/file_assets_controller.rb +3 -0
- data/app/controllers/hydra/permissions_controller.rb +104 -0
- data/app/helpers/hydra/blacklight_helper_behavior.rb +13 -51
- data/app/helpers/hydra/downloads_helper_behavior.rb +1 -1
- data/app/helpers/hydra/hydra_assets_helper_behavior.rb +5 -6
- data/app/helpers/hydra/hydra_fedora_metadata_helper_behavior.rb +0 -1
- data/app/helpers/hydra/hydra_helper_behavior.rb +1 -1
- data/app/helpers/hydra/hydra_uploader_helper_behavior.rb +1 -1
- data/app/models/mods_asset.rb +4 -0
- data/app/models/role_mapper.rb +2 -2
- data/app/views/catalog/_document_list.html.erb +2 -2
- data/app/views/catalog/_edit_partials/_default.html.erb +1 -1
- data/app/views/catalog/_edit_partials/_default_details.html.erb +1 -1
- data/app/views/catalog/_index_partials/_default.html.erb +1 -1
- data/app/views/catalog/_show_partials/_default.html.erb +1 -1
- data/app/views/contributors/_add_contributor_split_button.html.erb +4 -4
- data/app/views/contributors/_edit_conference.html.erb +1 -1
- data/app/views/contributors/_edit_organization.html.erb +1 -1
- data/app/views/contributors/_edit_person.html.erb +1 -1
- data/app/views/contributors/_index.html.erb +2 -2
- data/app/views/contributors/_show_organization.html.erb +2 -2
- data/app/views/contributors/new.html.erb +4 -4
- data/app/views/generic_content_objects/_description_form.html.erb +2 -2
- data/app/views/generic_contents/_index.html.erb +1 -1
- data/app/views/generic_images/_edit.html.erb +2 -2
- data/app/views/generic_images/_index.html.erb +1 -1
- data/app/views/{file_assets → hydra/file_assets}/_asset_saved_flash.html.erb +0 -0
- data/app/views/{file_assets → hydra/file_assets}/_deletable_result.html.erb +0 -0
- data/app/views/{file_assets → hydra/file_assets}/_file_assets_form.html.erb +3 -3
- data/app/views/{file_assets → hydra/file_assets}/_index.html.erb +3 -3
- data/app/views/{file_assets → hydra/file_assets}/_new.html.erb +0 -0
- data/app/views/{file_assets → hydra/file_assets}/_result.html.erb +1 -1
- data/app/views/{file_assets → hydra/file_assets}/index.html.erb +1 -1
- data/app/views/{permissions → hydra/permissions}/_edit_person_permissions.html.erb +0 -0
- data/app/views/{permissions → hydra/permissions}/_index.html.erb +1 -1
- data/app/views/{permissions → hydra/permissions}/_new.html.erb +0 -0
- data/app/views/{permissions → hydra/permissions}/_permissions_form.html.erb +5 -6
- data/app/views/{permissions → hydra/permissions}/index.html.erb +0 -0
- data/app/views/{permissions → hydra/permissions}/new.html.erb +0 -0
- data/app/views/layouts/application.html.erb +1 -1
- data/app/views/layouts/hydra-head.html.erb +1 -1
- data/app/views/mods_assets/_additional_info_form.html.erb +2 -2
- data/app/views/mods_assets/_contributor_form.html.erb +1 -1
- data/app/views/mods_assets/_edit_description.html.erb +1 -1
- data/app/views/mods_assets/_progress_box.html.erb +2 -2
- data/app/views/mods_assets/_publication_form.html.erb +1 -1
- data/app/views/mods_assets/_show.html.erb +2 -2
- data/app/views/mods_assets/_show_description.html.erb +1 -0
- data/app/views/mods_assets/_show_file_assets.html.erb +3 -3
- data/app/views/shared/_delete_asset_confirmation.html.erb +1 -1
- data/config/fedora.yml +9 -3
- data/hydra-head.gemspec +12 -42
- data/lib/application_controller.rb +6 -7
- data/lib/generators/hydra/head_generator.rb +18 -18
- data/lib/generators/hydra/templates/catalog_controller.rb +162 -0
- data/lib/generators/hydra/templates/config/fedora.yml +9 -3
- data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +4 -4
- data/lib/hydra-head.rb +0 -1
- data/lib/hydra-head/controller.rb +10 -11
- data/lib/hydra-head/routes.rb +20 -22
- data/lib/hydra-head/version.rb +1 -1
- data/lib/hydra.rb +2 -4
- data/lib/hydra/assets.rb +16 -26
- data/lib/hydra/controller.rb +5 -14
- data/lib/hydra/file_assets.rb +36 -33
- data/lib/hydra/generic_content.rb +3 -3
- data/lib/hydra/image.rb +2 -2
- data/lib/hydra/repository_controller.rb +22 -6
- data/lib/hydra/rights_metadata.rb +1 -1
- data/lib/hydra/submission_workflow.rb +4 -3
- data/lib/railties/hydra-fixtures.rake +2 -97
- data/tasks/hydra-head-fixtures.rake +0 -34
- data/tasks/hydra-head.rake +4 -3
- data/test_support/etc/Gemfile +15 -10
- data/test_support/etc/rvmrc +1 -1
- data/test_support/features/mods_asset_edit.feature +1 -1
- data/test_support/features/step_definitions/create_asset_steps.rb +0 -4
- data/test_support/features/support/env.rb +1 -1
- data/test_support/features/support/paths.rb +13 -13
- data/test_support/spec/controllers/contributors_controller_spec.rb +2 -2
- data/test_support/spec/controllers/file_assets_controller_spec.rb +22 -24
- data/test_support/spec/controllers/{assets_controller_spec.rb → hydra-assets_controller_spec.rb} +26 -11
- data/test_support/spec/controllers/hydra_controller_spec.rb +2 -3
- data/test_support/spec/controllers/permissions_controller_spec.rb +9 -53
- data/test_support/spec/controllers/user_sessions_controller_spec.rb +3 -3
- data/test_support/spec/factories.rb +11 -0
- data/test_support/spec/helpers/blacklight_helper_spec.rb +6 -13
- data/test_support/spec/helpers/hydra-repository_controller_spec.rb +37 -1
- data/test_support/spec/helpers/hydra_assets_helper_spec.rb +58 -70
- data/test_support/spec/helpers/hydra_helper_spec.rb +2 -2
- data/test_support/spec/helpers/hydra_model_methods_spec.rb +4 -4
- data/test_support/spec/helpers/hydra_uploader_helper_spec.rb +3 -3
- data/test_support/spec/integration/file_asset_spec.rb +5 -4
- data/test_support/spec/models/hydra_rights_metadata_spec.rb +7 -1
- data/test_support/spec/spec_helper.rb +5 -4
- data/vendor/cache/RedCloth-4.2.9.gem +0 -0
- data/vendor/cache/actionmailer-3.2.2.gem +0 -0
- data/vendor/cache/actionpack-3.2.2.gem +0 -0
- data/vendor/cache/{active-fedora-3.3.0.gem → active-fedora-4.0.0.rc13.gem} +0 -0
- data/vendor/cache/activemodel-3.2.2.gem +0 -0
- data/vendor/cache/activerecord-3.2.2.gem +0 -0
- data/vendor/cache/activeresource-3.2.2.gem +0 -0
- data/vendor/cache/activesupport-3.2.2.gem +0 -0
- data/vendor/cache/{addressable-2.2.6.gem → addressable-2.2.7.gem} +0 -0
- data/vendor/cache/arel-3.0.2.gem +0 -0
- data/vendor/cache/builder-3.0.0.gem +0 -0
- data/vendor/cache/childprocess-0.3.1.gem +0 -0
- data/vendor/cache/chunky_png-1.2.5.gem +0 -0
- data/vendor/cache/compass-0.12.rc.1.gem +0 -0
- data/vendor/cache/cucumber-1.1.9.gem +0 -0
- data/vendor/cache/{cucumber-rails-1.2.1.gem → cucumber-rails-1.3.0.gem} +0 -0
- data/vendor/cache/daemons-1.1.8.gem +0 -0
- data/vendor/cache/devise-2.0.4.gem +0 -0
- data/vendor/cache/erubis-2.7.0.gem +0 -0
- data/vendor/cache/factory_girl-2.6.1.gem +0 -0
- data/vendor/cache/fssm-0.2.8.1.gem +0 -0
- data/vendor/cache/gherkin-2.9.0.gem +0 -0
- data/vendor/cache/hike-1.2.1.gem +0 -0
- data/vendor/cache/httpi-0.9.6.gem +0 -0
- data/vendor/cache/i18n-0.6.0.gem +0 -0
- data/vendor/cache/journey-1.0.3.gem +0 -0
- data/vendor/cache/mail-2.4.3.gem +0 -0
- data/vendor/cache/marc-0.4.4.gem +0 -0
- data/vendor/cache/mediashelf-loggable-0.4.9.gem +0 -0
- data/vendor/cache/mocha-0.10.5.gem +0 -0
- data/vendor/cache/multi_json-1.1.0.gem +0 -0
- data/vendor/cache/nori-1.1.0.gem +0 -0
- data/vendor/cache/om-1.5.3.gem +0 -0
- data/vendor/cache/rack-1.4.1.gem +0 -0
- data/vendor/cache/rack-cache-1.1.gem +0 -0
- data/vendor/cache/rack-ssl-1.3.2.gem +0 -0
- data/vendor/cache/rack-test-0.6.1.gem +0 -0
- data/vendor/cache/{rails-3.0.11.gem → rails-3.2.2.gem} +0 -0
- data/vendor/cache/railties-3.2.2.gem +0 -0
- data/vendor/cache/rdf-0.3.5.1.gem +0 -0
- data/vendor/cache/rsolr-1.0.6.gem +0 -0
- data/vendor/cache/rspec-2.6.0.gem +0 -0
- data/vendor/cache/rspec-core-2.6.4.gem +0 -0
- data/vendor/cache/rspec-expectations-2.6.0.gem +0 -0
- data/vendor/cache/rspec-mocks-2.6.0.gem +0 -0
- data/vendor/cache/rspec-rails-2.6.1.gem +0 -0
- data/vendor/cache/rubydora-0.5.7.gem +0 -0
- data/vendor/cache/rubyzip-0.9.6.1.gem +0 -0
- data/vendor/cache/sass-3.1.15.gem +0 -0
- data/vendor/cache/sass-rails-3.2.4.gem +0 -0
- data/vendor/cache/savon-0.9.9.gem +0 -0
- data/vendor/cache/selenium-webdriver-2.20.0.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.2.5.gem +0 -0
- data/vendor/cache/sprockets-2.1.2.gem +0 -0
- data/vendor/cache/sqlite3-1.3.5.gem +0 -0
- data/vendor/cache/sqlite3-ruby-1.3.3.gem +0 -0
- data/vendor/cache/stomp-1.2.1.gem +0 -0
- data/vendor/cache/tilt-1.3.3.gem +0 -0
- data/vendor/cache/tzinfo-0.3.32.gem +0 -0
- data/vendor/cache/unicode-0.4.2.gem +0 -0
- data/vendor/cache/warden-1.1.1.gem +0 -0
- data/vendor/cache/wasabi-2.1.0.gem +0 -0
- data/vendor/cache/yard-0.7.5.gem +0 -0
- metadata +298 -843
- data/app/controllers/assets_controller.rb +0 -3
- data/app/controllers/file_assets_controller.rb +0 -3
- data/app/controllers/permissions_controller.rb +0 -152
- data/app/views/generic_contents/_edit.html.erb_ +0 -39
- data/app/views/mods_assets/_edit.html.erb_ +0 -63
- data/lib/generators/hydra/templates/config/initializers/blacklight_config.rb +0 -253
- data/lib/hydra-head/railtie.rb +0 -11
- data/lib/mediashelf/active_fedora_helper.rb +0 -68
- data/test_support/spec/lib/active_fedora_helper_spec.rb +0 -56
- data/vendor/cache/RedCloth-4.2.3.gem +0 -0
- data/vendor/cache/abstract-1.0.0.gem +0 -0
- data/vendor/cache/actionmailer-3.0.11.gem +0 -0
- data/vendor/cache/actionpack-3.0.11.gem +0 -0
- data/vendor/cache/activemodel-3.0.11.gem +0 -0
- data/vendor/cache/activerecord-3.0.11.gem +0 -0
- data/vendor/cache/activeresource-3.0.11.gem +0 -0
- data/vendor/cache/activesupport-3.0.11.gem +0 -0
- data/vendor/cache/arel-2.0.10.gem +0 -0
- data/vendor/cache/blacklight-3.1.2.gem +0 -0
- data/vendor/cache/builder-2.1.2.gem +0 -0
- data/vendor/cache/childprocess-0.3.0.gem +0 -0
- data/vendor/cache/columnize-0.3.6.gem +0 -0
- data/vendor/cache/crack-0.3.1.gem +0 -0
- data/vendor/cache/cucumber-1.1.4.gem +0 -0
- data/vendor/cache/curb-0.7.15.gem +0 -0
- data/vendor/cache/daemons-1.1.6.gem +0 -0
- data/vendor/cache/database_cleaner-0.7.1.gem +0 -0
- data/vendor/cache/devise-1.5.3.gem +0 -0
- data/vendor/cache/erubis-2.6.6.gem +0 -0
- data/vendor/cache/facets-2.8.4.gem +0 -0
- data/vendor/cache/factory_girl-2.5.0.gem +0 -0
- data/vendor/cache/gherkin-2.7.6.gem +0 -0
- data/vendor/cache/haml-3.1.4.gem +0 -0
- data/vendor/cache/httparty-0.8.1.gem +0 -0
- data/vendor/cache/httpi-0.9.5.gem +0 -0
- data/vendor/cache/i18n-0.5.0.gem +0 -0
- data/vendor/cache/json_pure-1.6.5.gem +0 -0
- data/vendor/cache/launchy-2.0.5.gem +0 -0
- data/vendor/cache/linecache-0.46.gem +0 -0
- data/vendor/cache/mail-2.2.19.gem +0 -0
- data/vendor/cache/marc-0.4.3.gem +0 -0
- data/vendor/cache/mediashelf-loggable-0.4.7.gem +0 -0
- data/vendor/cache/mocha-0.10.3.gem +0 -0
- data/vendor/cache/multi_json-1.0.4.gem +0 -0
- data/vendor/cache/multi_xml-0.4.1.gem +0 -0
- data/vendor/cache/nori-1.0.2.gem +0 -0
- data/vendor/cache/om-1.5.1.gem +0 -0
- data/vendor/cache/rack-1.2.5.gem +0 -0
- data/vendor/cache/rack-mount-0.6.14.gem +0 -0
- data/vendor/cache/rack-test-0.5.7.gem +0 -0
- data/vendor/cache/railties-3.0.11.gem +0 -0
- data/vendor/cache/rbx-require-relative-0.0.5.gem +0 -0
- data/vendor/cache/rdf-0.3.4.1.gem +0 -0
- data/vendor/cache/rsolr-1.0.2.gem +0 -0
- data/vendor/cache/rspec-2.8.0.gem +0 -0
- data/vendor/cache/rspec-core-2.8.0.gem +0 -0
- data/vendor/cache/rspec-expectations-2.8.0.gem +0 -0
- data/vendor/cache/rspec-mocks-2.8.0.gem +0 -0
- data/vendor/cache/rspec-rails-2.8.1.gem +0 -0
- data/vendor/cache/ruby-debug-0.10.4.gem +0 -0
- data/vendor/cache/ruby-debug-base-0.10.4.gem +0 -0
- data/vendor/cache/rubydora-0.5.1.gem +0 -0
- data/vendor/cache/rubyzip-0.9.5.gem +0 -0
- data/vendor/cache/savon-0.9.7.gem +0 -0
- data/vendor/cache/selenium-webdriver-2.18.0.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.2.3.gem +0 -0
- data/vendor/cache/sqlite3-ruby-1.2.5.gem +0 -0
- data/vendor/cache/stomp-1.2.0.gem +0 -0
- data/vendor/cache/trollop-1.16.2.gem +0 -0
- data/vendor/cache/tzinfo-0.3.31.gem +0 -0
- data/vendor/cache/unicode-0.4.0.gem +0 -0
- data/vendor/cache/warden-1.1.0.gem +0 -0
- data/vendor/cache/wasabi-2.0.0.gem +0 -0
- data/vendor/cache/will_paginate-3.0.2.gem +0 -0
- data/vendor/cache/yard-0.7.4.gem +0 -0
data/HISTORY.textile
CHANGED
data/INSTALL_PREREQ.textile
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
h1. Hydra Installation Prerequisites
|
2
2
|
|
3
|
-
* "ruby":http://www.ruby-lang.org/en/
|
3
|
+
* "ruby":http://www.ruby-lang.org/en/ NOTE: version 1.8.7
|
4
4
|
* "rubygems":http://rubygems.org/pages/download
|
5
5
|
* these ruby gems:
|
6
6
|
** "bundler":http://gembundler.com/
|
7
|
-
** "rails":http://rubyonrails.org/ NOTE: version
|
7
|
+
** "rails":http://rubyonrails.org/ NOTE: version 3.0.x.
|
8
8
|
* "git":http://git-scm.com/
|
9
|
-
* "java":http://www.java.com/en/ NOTE:
|
9
|
+
* "java":http://www.java.com/en/ NOTE: version 1.6 or higher
|
10
10
|
* "sqlite3":http://www.sqlite.org/
|
11
11
|
|
12
12
|
* "RVM":http://rvm.beginrescueend.com/ (Ruby Version Manager)
|
13
13
|
** We strongly suggest using RVM as a means of keeping your different ruby applications with their specific gem requirements from having version clashes.
|
14
14
|
** If you don't have the desired ruby version in RVM, e.g. ree-1.8.7, then install it. The following instructions assume the use of RVM.
|
15
|
+
** See "https://rvm.beginrescueend.com/rvm/install/":https://rvm.beginrescueend.com/rvm/install/ for instructions on installing and running RVM.
|
16
|
+
** After installing RVM, set it up to use "rvmrc":http://beginrescueend.com/workflow/rvmrc/ files when they're available. This will cause RVM to automatically switch Ruby versions and gemsets when you cd into different code bases. Currently all Hydra software uses Ruby Enterprise Edition 1.8.7 (ree-1.8.7) and each component or Hydra Head uses its own gemsets (ie. hydra-head uses a gemset called hyhead, hypatia uses a gemset called hypatia so that you can install a different set of dependencies for each. )
|
17
|
+
** For information about using and setting up RVM to use .rvmrc files, see "http://beginrescueend.com/workflow/rvmrc/":http://beginrescueend.com/workflow/rvmrc/
|
15
18
|
|
16
19
|
<pre>
|
17
20
|
rvm install ree-1.8.7
|
data/README.textile
CHANGED
@@ -8,17 +8,21 @@ Hydra-Head is a Rails Engines plugin containing the core code for a Hydra applic
|
|
8
8
|
- "OM (Opinionated Metadata)":https://github.com/mediashelf/om (a ruby gem) to streamline the metadata configuration
|
9
9
|
- "Solrizer":https://github.com/projecthydra/solrizer (a ruby gem) to write content to the Solr index
|
10
10
|
- "SolrizerFedora":https://github.com/projecthydra/solrizer-fedora (a ruby gem) to write Fedora content to the Solr index.
|
11
|
-
-
|
11
|
+
- Hydra-Head (a rails engines plugin) to glue it all together
|
12
12
|
|
13
|
-
For a more thorough overview of the Hydra framework, see "HYDRA_OVERVIEW.textile":https://github.com/projecthydra/hydrangea/blob/master/HYDRA_OVERVIEW.textile.
|
13
|
+
For a more thorough overview of the Hydra framework, see "HYDRA_OVERVIEW.textile":https://github.com/projecthydra/hydrangea/blob/master/HYDRA_OVERVIEW.textile. If you're looking to develop an application based on Hydra-Head, you might also be interested in "install prerequisites":https://github.com/projecthydra/hydra-head/blob/master/INSTALL_PREREQ.textile
|
14
14
|
|
15
15
|
This is a Ruby on Rails 3 gem.
|
16
16
|
|
17
17
|
h2. Installation/Setup
|
18
18
|
|
19
|
+
h3. Ruby
|
20
|
+
|
21
|
+
Currently all Hydra software uses Ruby 1.8.7 (and not 1.9).
|
22
|
+
|
19
23
|
h3. Install Rails, Bundler and Devise
|
20
24
|
|
21
|
-
Currently hydra-head is compatible with Rails 3.0.x and incompatible with Rails 3.1
|
25
|
+
Currently hydra-head is compatible with Rails 3.0.x and incompatible with Rails 3.1.
|
22
26
|
|
23
27
|
<pre>
|
24
28
|
gem install 'rails' --version '~>3.0.11'
|
@@ -43,6 +47,7 @@ First, add them to the "Gemfile":http://gembundler.com/gemfile.html of your appl
|
|
43
47
|
|
44
48
|
gem 'blacklight', '~> 3.1.2'
|
45
49
|
gem 'hydra-head', '~> 3.2.0'
|
50
|
+
gem 'solrizer-fedora', '>=1.0.1'
|
46
51
|
|
47
52
|
# We will assume that you're using sqlite3 for testing/demo,
|
48
53
|
# but in a production setup you probably want to use a real sql database like mysql or postgres
|
@@ -54,7 +59,6 @@ First, add them to the "Gemfile":http://gembundler.com/gemfile.html of your appl
|
|
54
59
|
|
55
60
|
# For testing. You will probably want to use all of these to run the tests you write for your hydra head
|
56
61
|
group :development, :test do
|
57
|
-
gem 'solrizer-fedora', '>=1.0.1'
|
58
62
|
gem 'ruby-debug'
|
59
63
|
gem 'rspec'
|
60
64
|
gem 'rspec-rails', '>=2.5.0'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -29,7 +29,7 @@
|
|
29
29
|
|
30
30
|
#doc4 #hd {font-size: 12px; text-align: right;}
|
31
31
|
|
32
|
-
#select-item-box {background: url('/
|
32
|
+
#select-item-box {background: url('/assets/hydra/search-button.png') no-repeat scroll 95% 5px #f5f5f5; border: 1px solid #BBB; float: left; line-height: 20px; margin-top: -3px; padding: 2px 6px; position: relative; text-align: left; width: 170px; z-index: 300; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; }
|
33
33
|
#select-item-box > a {border-bottom: none; vertical-align: text-bottom;}
|
34
34
|
#select-item-list {background: #f2f2f2; border-bottom: 1px solid #BBB; border-left: 1px solid #BBB; border-right: 1px solid #BBB; border-top: 1px solid #DDD; display: none; list-style: none; margin: 0; position: absolute; top: 24px; left: 0; width: 180px; z-index: 999; -webkit-box-shadow: 1px 1px 4px rgba(80, 80, 80, 0.2); -moz-box-shadow: 1px 1px 4px rgba(80, 80, 80, 0.2); box-shadow: 1px 1px 4px rgba(80, 80, 80, 0.2); -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; }
|
35
35
|
#select-item-list li {list-style: none; margin: 0; }
|
@@ -113,4 +113,4 @@ input.invalid-input {border: 3px solid #C55;}
|
|
113
113
|
#saving-notice {background: #EEE; color: #000; height: 100%; width: 100%; opacity: 0.8; position: fixed; top: 0; left: 0; z-index: 999;}
|
114
114
|
#saving-notice h1 {font-size: 32px !important; margin-top: 4em; text-align: center;}
|
115
115
|
.all-steps-actions {margin: 2em 0 1em;}
|
116
|
-
.all-steps-actions button {font-size: 16px; margin-right: 20px;}
|
116
|
+
.all-steps-actions button {font-size: 16px; margin-right: 20px;}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{assets → app/assets}/stylesheets/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,6 +1,4 @@
|
|
1
|
-
require 'mediashelf/active_fedora_helper'
|
2
1
|
class DownloadsController < ApplicationController
|
3
|
-
include MediaShelf::ActiveFedoraHelper
|
4
2
|
include Hydra::RepositoryController
|
5
3
|
include Hydra::AssetsControllerHelper
|
6
4
|
helper :downloads
|
@@ -13,23 +11,9 @@ class DownloadsController < ApplicationController
|
|
13
11
|
if params[:download_id]
|
14
12
|
@datastream = fedora_object.datastreams[params[:download_id]]
|
15
13
|
send_datastream @datastream
|
16
|
-
#send_data( Fedora::Repository.instance.fetch_custom(params[:document_id], "datastreams/#{datastream_id}/content") )
|
17
14
|
else
|
18
15
|
@datastreams = downloadables( fedora_object )
|
19
16
|
end
|
20
17
|
end
|
21
18
|
|
22
|
-
# def show
|
23
|
-
# puts "params: #{params.inspect}"
|
24
|
-
# puts "Request: #{request.inspect}"
|
25
|
-
# puts "Path: #{request.path}"
|
26
|
-
#
|
27
|
-
# datastream_id = File.basename(request.path)
|
28
|
-
# respond_to do |format|
|
29
|
-
# format.html { send_data( Fedora::Repository.instance.fetch_custom(params[:document_id], "datastreams/#{datastream_id}/content") ) }
|
30
|
-
# format.pdf { send_data( Fedora::Repository.instance.fetch_custom(params[:document_id], "datastreams/#{datastream_id}/content") ) }
|
31
|
-
# end
|
32
|
-
#
|
33
|
-
# end
|
34
|
-
|
35
19
|
end
|
@@ -1,13 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
class ContributorsController < ApplicationController
|
4
|
-
|
5
|
-
include MediaShelf::ActiveFedoraHelper
|
1
|
+
class Hydra::ContributorsController < ApplicationController
|
6
2
|
include Hydra::RepositoryController
|
7
3
|
include Hydra::AssetsControllerHelper
|
8
|
-
before_filter :require_solr
|
9
|
-
|
10
|
-
# need to include this after the :require_solr/fedora before filters because of the before filter that the workflow provides.
|
11
4
|
include Hydra::SubmissionWorkflow
|
12
5
|
|
13
6
|
# Display form for adding a new Contributor
|
@@ -23,8 +16,8 @@ class ContributorsController < ApplicationController
|
|
23
16
|
end
|
24
17
|
|
25
18
|
respond_to do |format|
|
26
|
-
format.html { render :file=>"contributors/new
|
27
|
-
format.inline { render :partial=>"contributors/new
|
19
|
+
format.html { render :file=>"contributors/new" , :layout=>true}
|
20
|
+
format.inline { render :partial=>"contributors/new", :layout=>false }
|
28
21
|
end
|
29
22
|
end
|
30
23
|
|
@@ -34,10 +27,12 @@ class ContributorsController < ApplicationController
|
|
34
27
|
ct = params[:contributor_type]
|
35
28
|
inserted_node, new_node_index = @document_fedora.insert_contributor(ct)
|
36
29
|
@document_fedora.save
|
37
|
-
partial_name = "contributors/edit_#{ct}
|
30
|
+
partial_name = "contributors/edit_#{ct}"
|
38
31
|
respond_to do |format|
|
39
|
-
format.html {
|
40
|
-
|
32
|
+
format.html {
|
33
|
+
redirect_to edit_catalog_path(params[:asset_id], :anchor=>"#{params[:contributor_type]}_#{new_node_index}")
|
34
|
+
}
|
35
|
+
format.inline { render :partial=>partial_name, :formats=>[:html], :locals=>{"edit_#{ct}".to_sym =>inserted_node, "edit_#{ct}_counter".to_sym =>new_node_index}, :layout=>false }
|
41
36
|
end
|
42
37
|
|
43
38
|
end
|
@@ -54,9 +49,9 @@ class ContributorsController < ApplicationController
|
|
54
49
|
@document.save
|
55
50
|
flash[:notice] = "Your changes have been saved."
|
56
51
|
if params.has_key? :add_another_author
|
57
|
-
redirect_to(
|
52
|
+
redirect_to edit_catalog_path(params[:asset_id], :wf_step => :contributor, :add_contributor => true)
|
58
53
|
else
|
59
|
-
redirect_to(
|
54
|
+
redirect_to next_step(params[:asset_id])
|
60
55
|
end
|
61
56
|
end
|
62
57
|
|
@@ -68,7 +63,7 @@ class ContributorsController < ApplicationController
|
|
68
63
|
if request.xhr?
|
69
64
|
render :text=>result.inspect
|
70
65
|
else
|
71
|
-
redirect_to(
|
66
|
+
redirect_to edit_catalog_path(params[:asset_id], :wf_step => :contributor)
|
72
67
|
end
|
73
68
|
end
|
74
69
|
|
@@ -0,0 +1,104 @@
|
|
1
|
+
class Hydra::PermissionsController < ApplicationController
|
2
|
+
include Hydra::AssetsControllerHelper
|
3
|
+
include Hydra::SubmissionWorkflow
|
4
|
+
|
5
|
+
def index
|
6
|
+
af_base=ActiveFedora::Base.load_instance(params[:asset_id])
|
7
|
+
the_model = ActiveFedora::ContentModel.known_models_for( af_base ).first
|
8
|
+
@document_fedora = af_base.adapt_to(the_model)
|
9
|
+
|
10
|
+
respond_to do |format|
|
11
|
+
format.html
|
12
|
+
format.inline { render :partial=>"hydra/permissions/index", :format=>"html" }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def new
|
17
|
+
respond_to do |format|
|
18
|
+
format.html
|
19
|
+
format.inline { render :partial=>"hydra/permissions/new" }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def edit
|
24
|
+
af_base=ActiveFedora::Base.load_instance(params[:asset_id])
|
25
|
+
the_model = ActiveFedora::ContentModel.known_models_for( af_base ).first
|
26
|
+
@document_fedora = af_base.adapt_to(the_model)
|
27
|
+
|
28
|
+
respond_to do |format|
|
29
|
+
format.html
|
30
|
+
format.inline {render :action=>"edit", :layout=>false}
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Create a new permissions entry
|
35
|
+
# expects permission["actor_id"], permission["actor_type"] and permission["access_level"] as params. ie. :permission=>{"actor_id"=>"_person_id_","actor_type"=>"person","access_level"=>"read"}
|
36
|
+
def create
|
37
|
+
@document_fedora=ActiveFedora::Base.find(params[:asset_id])
|
38
|
+
|
39
|
+
access_actor_type = params["permission"]["actor_type"]
|
40
|
+
actor_id = params["permission"]["actor_id"]
|
41
|
+
access_level = params["permission"]["access_level"]
|
42
|
+
|
43
|
+
# update the datastream's values
|
44
|
+
result = @document_fedora.rightsMetadata.permissions({access_actor_type => actor_id}, access_level)
|
45
|
+
@document_fedora.save
|
46
|
+
|
47
|
+
flash[:notice] = "#{actor_id} has been granted #{access_level} permissions for #{params[:asset_id]}"
|
48
|
+
|
49
|
+
respond_to do |format|
|
50
|
+
format.html do
|
51
|
+
if params.has_key?(:add_permission)
|
52
|
+
redirect_to :back
|
53
|
+
else
|
54
|
+
redirect_to next_step(params[:asset_id])
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
format.inline { render :partial=>"hydra/permissions/edit_person_permissions", :locals=>{:person_id=>actor_id}}
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
# Updates the permissions for all actors in a hash. Can specify as many groups and persons as you want
|
64
|
+
# ie. :permission => {"group"=>{"group1"=>"discover","group2"=>"edit"}, {"person"=>{"person1"=>"read"}}}
|
65
|
+
def update
|
66
|
+
if params[:id].nil?
|
67
|
+
pid = params[:asset_id]
|
68
|
+
else
|
69
|
+
pid = params[:id]
|
70
|
+
end
|
71
|
+
|
72
|
+
@document_fedora=ActiveFedora::Base.find(pid)
|
73
|
+
|
74
|
+
# update the datastream's values
|
75
|
+
result = @document_fedora.rightsMetadata.update_permissions(params[:permission])
|
76
|
+
|
77
|
+
@document_fedora.save
|
78
|
+
|
79
|
+
|
80
|
+
flash[:notice] = "The permissions have been updated."
|
81
|
+
|
82
|
+
respond_to do |format|
|
83
|
+
format.html do
|
84
|
+
if params.has_key?(:add_permission)
|
85
|
+
redirect_to edit_catalog_path(pid, :wf_step => :permissions, :add_permission => true)
|
86
|
+
else
|
87
|
+
redirect_to next_step(pid)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
format.inline do
|
91
|
+
# This should be replaced ...
|
92
|
+
if params[:permission].has_key?(:group)
|
93
|
+
access_actor_type = "group"
|
94
|
+
else
|
95
|
+
access_actor_type = "person"
|
96
|
+
end
|
97
|
+
actor_id = params["permission"][access_actor_type].first[0]
|
98
|
+
render :partial=>"hydra/permissions/edit_person_permissions", :locals=>{:person_id=>actor_id}
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|