curate 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -56
- data/app/assets/javascripts/curate/link_users.js.coffee +1 -1
- data/app/controllers/catalog_controller.rb +3 -3
- data/app/controllers/curation_concern/generic_works_controller.rb +2 -2
- data/app/helpers/blacklight_helper.rb +0 -12
- data/app/helpers/curate_helper.rb +6 -0
- data/app/repository_datastreams/article_metadata_datastream.rb +2 -2
- data/app/repository_datastreams/etd_metadata.rb +2 -2
- data/app/repository_datastreams/generic_work_rdf_datastream.rb +2 -2
- data/app/repository_datastreams/image_metadata.rb +2 -2
- data/app/repository_models/person.rb +4 -0
- data/app/views/catalog/_facet_selected.html.erb +4 -4
- data/app/views/catalog/_index_partials/_identifier_and_action.html.erb +18 -2
- data/app/views/catalog/show.html.erb +1 -1
- data/app/views/curate/collections/_form.html.erb +5 -0
- data/app/views/curate/collections/edit.html.erb +4 -0
- data/app/views/curate/collections/show.html.erb +14 -0
- data/app/views/curate/people/show.html.erb +7 -7
- data/app/views/curation_concern/base/show.html.erb +1 -0
- data/lib/curate.rb +1 -0
- data/lib/curate/version.rb +1 -1
- data/lib/generators/curate/application_template.rb +31 -2
- data/lib/generators/curate/soft_delete/active_fedora_soft_delete_monkey_patch.rb +92 -0
- data/lib/generators/curate/soft_delete/deny-d-objects-and-datastreams.xml +32 -0
- data/lib/generators/curate/soft_delete/deny-purge.xml +32 -0
- data/lib/generators/curate/soft_delete/permit-describerepository.xml +25 -0
- data/spec/features/collections_show_spec.rb +8 -0
- data/spec/helpers/curate_helper_spec.rb +4 -0
- data/spec/internal/Gemfile.lock +54 -54
- data/spec/internal/config/initializers/curate_config.rb +0 -2
- data/spec/internal/config/initializers/devise.rb +2 -2
- data/spec/internal/config/initializers/secret_token.rb +1 -1
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/migrate/{20131205204122_devise_create_users.rb → 20140131175455_devise_create_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204126_add_devise_guests_to_users.rb → 20140131175500_add_devise_guests_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204127_create_searches.rb → 20140131175501_create_searches.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204128_create_bookmarks.rb → 20140131175502_create_bookmarks.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204129_remove_editable_fields_from_bookmarks.rb → 20140131175503_remove_editable_fields_from_bookmarks.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204130_add_user_types_to_bookmarks_searches.rb → 20140131175504_add_user_types_to_bookmarks_searches.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204131_acts_as_follower_migration.rb → 20140131175505_acts_as_follower_migration.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204132_add_social_to_users.rb → 20140131175506_add_social_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204133_create_single_use_links.rb → 20140131175507_create_single_use_links.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204134_add_ldap_attrs_to_user.rb → 20140131175508_add_ldap_attrs_to_user.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204135_add_avatars_to_users.rb → 20140131175509_add_avatars_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204136_create_checksum_audit_logs.rb → 20140131175510_create_checksum_audit_logs.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204137_create_version_committers.rb → 20140131175511_create_version_committers.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204138_add_groups_to_users.rb → 20140131175512_add_groups_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204139_create_local_authorities.rb → 20140131175513_create_local_authorities.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204140_create_trophies.rb → 20140131175514_create_trophies.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204152_create_mailboxer.mailboxer_engine.rb → 20140131175536_create_mailboxer.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204153_add_notified_object.mailboxer_engine.rb → 20140131175537_add_notified_object.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204154_add_notification_code.mailboxer_engine.rb → 20140131175538_add_notification_code.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204155_add_attachments.mailboxer_engine.rb → 20140131175539_add_attachments.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204156_rename_receipts_read.mailboxer_engine.rb → 20140131175540_rename_receipts_read.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204157_add_global_notification_support.mailboxer_engine.rb → 20140131175541_add_global_notification_support.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204202_add_terms_of_service_to_user.curate_engine.rb → 20140131175545_add_terms_of_service_to_user.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204203_add_user_force_update_profile.curate_engine.rb → 20140131175546_add_user_force_update_profile.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204204_create_help_requests.curate_engine.rb → 20140131175547_create_help_requests.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204205_add_repository_id_to_user.curate_engine.rb → 20140131175548_add_repository_id_to_user.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204206_create_curate_proxy_deposit_rights.curate_engine.rb → 20140131175549_create_curate_proxy_deposit_rights.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131205204207_change_display_name_to_name.curate_engine.rb → 20140131175550_change_display_name_to_name.curate_engine.rb} +0 -0
- data/spec/internal/db/schema.rb +1 -1
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/log/development.log +175 -197
- data/spec/repository_models/person_spec.rb +7 -0
- data/spec/support/shared/shared_examples_is_a_curation_concern_controller.rb +11 -1
- data/spec/views/curate/collections/edit.html.erb_spec.rb +3 -0
- metadata +104 -466
- data/spec/internal/app/controllers/curation_concern/spams_controller.rb +0 -6
- data/spec/internal/app/repository_datastreams/spam_rdf_datastream.rb +0 -78
- data/spec/internal/app/repository_models/spam.rb +0 -47
- data/spec/internal/app/services/curation_concern/spam_actor.rb +0 -6
- data/spec/internal/app/views/curation_concern/spams/_spam.html.erb +0 -2
- data/spec/internal/log/test.log +0 -110368
- data/spec/internal/spec/controllers/curation_concern/spams_controller_spec.rb +0 -7
- data/spec/internal/spec/factories/spams_factory.rb +0 -39
- data/spec/internal/spec/fixtures/cassettes/remotely_identified_doi_mint_generic_work.yml +0 -46
- data/spec/internal/spec/fixtures/cassettes/remotely_identified_doi_mint_spam.yml +0 -46
- data/spec/internal/spec/repository_models/spam_spec.rb +0 -16
- data/spec/internal/spec/services/curation_concern/spam_actor_spec.rb +0 -7
- data/spec/internal/tmp/cache/assets/test/sass/108fdfe10ba83060a2164fe91a5d70f57ff08f38/linkedUsers.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/accessibility.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/accordion.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/attributes.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/classify_work.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/collections.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/emphatic_action_area.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/forms.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/multi_value_fields.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/pagination.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/search_results.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/site_actions.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/site_search.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2cebef463c00ad5b78bd09dcc1035cd98e25e5ac/_catalog.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2cebef463c00ad5b78bd09dcc1035cd98e25e5ac/_facets.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/2cebef463c00ad5b78bd09dcc1035cd98e25e5ac/_header.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/331883de394b07e5895d38be1501de71197337b2/bootstrap-modal.cssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_blacklight_base.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_bookmark.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_catalog.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_dropdown.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_facets.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_footer.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_group.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_header.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_layout.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_modal.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_print.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_responsive.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/_search_history.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/blacklight.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/676a873f09eff127655248cf5efb1f72a45c52cb/blacklight_defaults.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/80288dd2aeb1798ef86a9660458b91e0a47093de/bootstrap-datepicker.cssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/953d624c1831fcea22a3be549290f4c654726e96/positioning.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/b95751effdfef9cdba38bc1d169b6196172155ed/theme.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/b95751effdfef9cdba38bc1d169b6196172155ed/typography.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_accordion.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_alerts.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_breadcrumbs.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_button-groups.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_buttons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_carousel.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_close.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_code.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_component-animations.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_dropdowns.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_forms.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_grid.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_hero-unit.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_labels-badges.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_layouts.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_media.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_mixins.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_modals.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_navbar.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_navs.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_pager.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_pagination.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_popovers.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_progress-bars.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_reset.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_responsive-1200px-min.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_responsive-767px-max.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_responsive-768px-979px.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_responsive-navbar.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_responsive-utilities.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_scaffolding.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_sprites.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_tables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_thumbnails.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_tooltip.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_type.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_utilities.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_variables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/_wells.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/bootstrap.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d0ebf5b3551b37fd5eb9e84411d60dfc2adbb432/responsive.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d3251f02a69800c3dec8eff7ea62598b6c122704/bootstrap-responsive.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/d3251f02a69800c3dec8eff7ea62598b6c122704/bootstrap.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/e653ebc579903efbaf96508ec20b97304a2a14a0/token-input-facebook.cssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/e9808fc781dff3e3e7170d18d009c46cb33a75c5/curate.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/e9808fc781dff3e3e7170d18d009c46cb33a75c5/global-variables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/e9808fc781dff3e3e7170d18d009c46cb33a75c5/modules.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/025976cedf55483abdfd2a8a7a897417 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/025b78bef333daa07f3714e1ed9c9897 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/06366398288c6606b4ebd44ca57833f1 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/070263a383619079784e4ce15cf15443 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/0b4f161bc175df6a24a070de15ef8070 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/10ab350e3829f2abfdeccbd2916f213a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/163665b72c8e98b0c88c19896f080bc4 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1a591a26fdf3ed78b25b5ab792d76b7e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1ab9fe0545e37779f1b0b527bc0a5003 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1b0118f80184656ebb0a05476808870c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1c1167e9384b80e15359a663448a3196 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1d084625b16ac691b3ac53f7c3af9383 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1edbc64e3cd0f640b255d2e3803f7650 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1f3f013d8df49445e8f6d26abe4bd0c3 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/22305e36d0fdbf1a9cd6c864163e8c27 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/25c858866fd7a2ca6719b8f57b7da784 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/284cc98f54c8b35889e5d7cbcb7bdbe0 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2a50fd82596f16e3af97fcb084288d13 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/30980d53fa21cb948c92faff2cf90991 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/31f03bdc9721687fd98c2b12c036e8a2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/36981002c1801c8a4e752dbcbe791582 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/37fac2a10427372eb3a8c99adb5cd411 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/3995ba86972034e984670eeef6091ac3 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/3b87961014fda718970e83ba7704c67e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/3ccedd980e76c496cb22334acbbb5e28 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/409f6fd5f640b0d1ed6423d0054481c0 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/4132e961bdf0f2ffa2f96a4c7822e209 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/41dd5dbd03cfa3f49e2d7569ffd03f8d +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/426440aa7e18abd865ba2e760b88cd39 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/49dddc872622de1d975f563d9d10d6c9 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/4b1fc3a748e34199e72958c656cc06cf +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/4c5e67849a42922256c692cebe3625ae +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/5141429549bc789c5a18f47a631ee310 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/541a8ef4d67b7e50312977c96e423051 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/59fe9d1111e7fc3f6086507fb3306af6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/611235bfd282813bdfbc998bcbe798e8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6355ac51340fbb8fa01019405f7ed6da +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6e0879a87dae322b4e32263452ba6b4e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6e8253e08a505551ade23952df1c5398 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6fce7a434a34042465358f4ce9b4c876 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7314c3dc32b5da235df8fedc382345cf +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7685f208e89b90425bf76796648ebc28 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7ba48319520aec7ef07b010ac21f0136 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7cb8ecb9ed42a98dc3bdc37a8406dbc8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7d0dafd1bea0f4da00c580f0f6d664b8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7d4fe23150294500a7bcd2630667e5c8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7d55d38239482ec8327d6a2ea6ca7509 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7f1cb34f019f0890927d422814194b01 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/81ecd9c94638acd3ece19ecac462a723 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/82f457826b6170c0fd009ef469f31e16 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/8401fd13fe82bb392806930ed02005e1 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/8487a8fffe384af1dfe579bd7725fe19 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/87483257b350b31ace81e530557b4bda +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/8b503f71e2ed168eb20ff8cfc20ff3d4 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/967c4a151c00ff79d54eab287c5a949b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/97dc77c12a82b17d1e6ccd14d31917c8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/98ad78dc8c309689440b20bfa7372b3e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/9c4023aaef54415afaf4892ced299f30 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a530b42511788ec712de192e6d2c3114 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a5b14fb35b6609fda372da27bcd729a7 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/a8a9b28de30b069c2336fc9417accefb +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ada353bb8ffe3eb0f2dd479e6d869a70 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/af84f7fe3cda47ac78bf90dd6ce9485e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b148a5e98ff09a12b6a2139af1e62e46 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b3b3d7f6ecf32ce8216b40eccc5da386 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b721220ce6d15c52e745467c68ac7c28 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b8c80198fb4ff5880b89100f59beb1f9 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b9a04216850a5d6e6cc17b9292677aa6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/bd0dea58c57774fef248f0b0844a4654 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/bd4a5121c6495d513075e759f8cca6ed +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c14352828e1be2bbf3199771a34f9c57 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c22725116e2bbc4bdf0867ab02b3623e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c6d2f8432ae24aaa27e3c17827d59e9a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c89f789c6b72000300327021b7d4c5c2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c8efa5a248a06a7e0973af01a33c0873 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c90c8b52f13eba55c8904337bc413837 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ca5cb83e75fa4cc89aeb7641e4243720 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cab5e2f78f3943d174dadb7f54e7b9aa +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cb5ef342e38a1a8c9037238552a3bd11 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cdf8872264f5f8dd811cdf810f6875a7 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d1f293d89d9194b7cdb99affd6bcb670 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d2473a08bfca80032fc2b63d1b701155 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d3b7e1db3a3aa2a9348b7d2b3dc5bb68 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d4b33b0a1a154cfb06698e52f5359a08 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d4cb8bd75546d6d24bc60dd9f843abe5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d510daa6eb0cd4805bff7fd0990dfdb5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d610f39602b6149ca02638c1728778b5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e0e4f218b157ae599e12a247a4cf8710 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e236666ccee7240fb08a941d9e2e8739 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e32852b59df6d7de9272b683e2d8c800 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e33bc43550b9803eb105d236a57226ae +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e63b799938e7863be75479237846e7f4 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e9c2a0f2fa471ace3f7ed3a1f1b9ffc5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ea0ece5befbce765051e27cf991cc805 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ee98c5174937598bf3cc6cbd06de1930 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f43e6de318148b8815fa65c6fd6ea092 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f50893e335447632cec50794d690a0a1 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f7cb8bfc6fbf85d140b26cbd555a56a0 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f96152606fbc5602cd65176f6098f69a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/fa7f0990f592272fe05c14806c563cb6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/fb0dfe7bc7417e1329d9cc6c913584e9 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/fb4a42a3e047a7a0d87f3ad55c8d267a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/fecd72966f3f2994e3d5894e05d76bd8 +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9da5c8f5b08a3fd6e12448c7dd7c73a2412246a0
|
|
4
|
+
data.tar.gz: 165283f25fa8b99a984b41b895e29a8623bf8e6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e2a7f0f07daa348c38ce009f121a97e1fe1d7a150c8620a77ca1c62ffe9d13b20ddf9c40fa7bf8e869279cb589cf12e1825c585c4b0534ea95bc8fd61942296
|
|
7
|
+
data.tar.gz: f177f00845ea7bc440c098e645d48dfd7ab374460de15732c353c236721a1128ce8c2f3bfae1d0d19f4761cf2287a0c8cce2a201a2e964d39f9cb9f90ce63f13
|
data/README.md
CHANGED
|
@@ -7,25 +7,22 @@ It is released under the [Apache 2 License](./LICENSE)
|
|
|
7
7
|
* [or install by hand](#or-install-by-hand)
|
|
8
8
|
* [Developing and contributing for the Curate gem](#developing-and-contributing-for-the-curate-gem)
|
|
9
9
|
* [Prerequisites](#prerequisites)
|
|
10
|
-
* [Clone the Curate repository](#clone-the-
|
|
10
|
+
* [Clone the Curate repository](#clone-the-curate-repository)
|
|
11
11
|
* [Jetty](#jetty)
|
|
12
12
|
* [Running the specs](#running-the-specs)
|
|
13
13
|
* [All of them](#all-of-them)
|
|
14
14
|
* [Some of them](#some-of-them)
|
|
15
15
|
* [With Zeus](#with-zeus)
|
|
16
16
|
* [Contributing back](#contributing-back)
|
|
17
|
-
* [Coding Guidelines](#coding-guidelines)
|
|
18
|
-
* [Writing Your Code](#writing-your-code)
|
|
19
|
-
* [Ruby File Structure](#ruby-file-structure)
|
|
20
|
-
* [Source Control Guidelines](#source-control-guidelines)
|
|
21
17
|
* [Working on Curate while working on my Application](#working-on-curate-while-working-on-my-application)
|
|
18
|
+
* [Integration with CAS, LDAP, Shibboleth](#integration-with-cas-ldap-shibboleth)
|
|
22
19
|
* [Standing up your Curate-based Rails application in Production](#standing-up-your-curate-based-rails-application-in-production)
|
|
23
20
|
|
|
24
21
|
# Starting a New Curate Based Application
|
|
25
22
|
|
|
26
23
|
When you generate your new Rails application, you can use Curate's application template:
|
|
27
24
|
```bash
|
|
28
|
-
$ rails new my_curate_application -m https://raw.github.com/
|
|
25
|
+
$ rails new my_curate_application -m https://raw.github.com/projecthydra/curate/master/lib/generators/curate/application_template.rb
|
|
29
26
|
```
|
|
30
27
|
|
|
31
28
|
## Or Install By Hand
|
|
@@ -83,11 +80,11 @@ Inside the Curate directory (i.e. `./path/to/local`):
|
|
|
83
80
|
|
|
84
81
|
1. Make sure jetty is running (`rake jetty:start`); It will take a bit to spin up jetty.
|
|
85
82
|
1. Make sure you have a dummy app ‡
|
|
86
|
-
1. Run `rake regenerate`
|
|
83
|
+
1. Run `rake regenerate` to build a clean app in ./spec/dummy
|
|
87
84
|
1. Then run `rake spec`; The tests will take quite a while ‡‡
|
|
88
85
|
|
|
89
86
|
‡ - A Rails engine requires a Rails application to run.
|
|
90
|
-
The dummy app is
|
|
87
|
+
The dummy app is a generated application inside Curate in the `./spec/internal` directory
|
|
91
88
|
‡‡ - Slow tests are a big problem and we are working on speeding them up, but its complicated.
|
|
92
89
|
|
|
93
90
|
### Some of Them
|
|
@@ -96,7 +93,7 @@ In some cases you want to know the results of a single test. Here's how you do i
|
|
|
96
93
|
|
|
97
94
|
1. Make sure jetty is running (`rake jetty:start`); It will take a bit to spin up jetty.
|
|
98
95
|
1. Make sure you have a dummy app ‡
|
|
99
|
-
1. Run `rake regenerate`
|
|
96
|
+
1. Run `rake regenerate` to build a clean app in ./spec/dummy
|
|
100
97
|
1. Then run `BUNDLE_GEMFILE=spec/internal/Gemfile bundle exec rspec path/to/spec.rb:LINE` ‡
|
|
101
98
|
|
|
102
99
|
‡ - With Curate being an Engine we need to point to the Dummy Application's Gemfile.
|
|
@@ -104,7 +101,7 @@ In full Rails applications you can normally run the following `rspec path/to/spe
|
|
|
104
101
|
|
|
105
102
|
### With Zeus
|
|
106
103
|
|
|
107
|
-
> [Zeus](https://github.com/burke/zeus)
|
|
104
|
+
> [Zeus](https://github.com/burke/zeus) pre-loads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second. ‡
|
|
108
105
|
|
|
109
106
|
1. In terminal window #1 run `zeus start`
|
|
110
107
|
1. In terminal window #2, once Zeus is started: run `zeus rake spec` for all tests; or `zeus test path/to/spec.rb:LINE` for one
|
|
@@ -113,57 +110,13 @@ In full Rails applications you can normally run the following `rspec path/to/spe
|
|
|
113
110
|
|
|
114
111
|
## Contributing Back
|
|
115
112
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### Coding Guidelines
|
|
119
|
-
|
|
120
|
-
The [Ruby Style Guide][1] is an excellent resource for how to craft your Ruby code, in particular the [Naming section][2].
|
|
121
|
-
|
|
122
|
-
**Can I break these guidelines?** Yes. But you may need to convince the person merging your changes.
|
|
123
|
-
|
|
124
|
-
#### Writing Your Code
|
|
125
|
-
|
|
126
|
-
We are going to do our best to follow [Sandi Metz' Rules for Developers][3]
|
|
127
|
-
|
|
128
|
-
> Here are the rules:
|
|
129
|
-
>
|
|
130
|
-
> * Classes can be no longer than one hundred lines of code.
|
|
131
|
-
> * Methods can be no longer than five lines of code.
|
|
132
|
-
> * Pass no more than four parameters into a method. Hash options are parameters.
|
|
133
|
-
> * Controllers can instantiate only one object. Therefore, views can only know about one instance variable and views should only send messages to that object (@object.collaborator.value is not allowed).
|
|
134
|
-
|
|
135
|
-
#### Ruby File Structure
|
|
136
|
-
|
|
137
|
-
* Use soft-tabs with a two space indent.
|
|
138
|
-
* Never leave trailing whitespace (unless it is meaningful in the language)
|
|
139
|
-
* End each file with a blank newline.
|
|
140
|
-
* Please do your best to keep lines to 80 characters or fewer.
|
|
141
|
-
|
|
142
|
-
### Source Control Guidelines
|
|
143
|
-
|
|
144
|
-
*This is a placeholder for things to come*
|
|
145
|
-
|
|
146
|
-
[Processing JIRA issues with commit messages](https://confluence.atlassian.com/display/BITBUCKET/Processing+JIRA+issues+with+commit+messages)
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
First line is 50 characters or less
|
|
150
|
-
|
|
151
|
-
Description of work done; wrap at 72 characters.
|
|
152
|
-
|
|
153
|
-
HYDRASIR-123 #close Any comment to post to JIRA
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
Make sure your JIRA email matches your Git config email (`~/.gitconfig`)
|
|
157
|
-
|
|
158
|
-
[1]:https://github.com/bbatsov/ruby-style-guide "Ruby Style Guide"
|
|
159
|
-
[2]:https://github.com/bbatsov/ruby-style-guide#naming "Ruby Style Guide - Naming"
|
|
160
|
-
[3]:http://robots.thoughtbot.com/post/50655960596/sandi-metz-rules-for-developers "Sandi Metz' Rules for Developers"
|
|
113
|
+
If you are interested in helping us make Curate better, please take a look at our [Contributing resources and guidelines](./CONTRIBUTING.md).
|
|
161
114
|
|
|
162
115
|
# Working on Curate while working on my Application
|
|
163
116
|
|
|
164
117
|
Assuming you are wanting to work on your Curate-based application and make modifications to the Curate gem, follow these instructions.
|
|
165
118
|
|
|
166
|
-
Replace the
|
|
119
|
+
Replace the following line in the Gemfile of your Curate-based application (see [Starting a New Curate Based Application](#starting-a-new-curate-based-application)):
|
|
167
120
|
|
|
168
121
|
```ruby
|
|
169
122
|
gem 'curate' ...
|
|
@@ -181,6 +134,16 @@ You can then do concurrent development on both your clone of the Curate gem and
|
|
|
181
134
|
|
|
182
135
|
**NOTE: Any changes you make in the Curate gem will likely require you to restart your web-server.**
|
|
183
136
|
|
|
137
|
+
# Integration with CAS, LDAP, Shibboleth
|
|
138
|
+
|
|
139
|
+
For integration with CAS, refer: https://github.com/nbudin/devise_cas_authenticatable
|
|
140
|
+
|
|
141
|
+
For integration with LDAP, refer: https://github.com/cschiewek/devise_ldap_authenticatable
|
|
142
|
+
|
|
143
|
+
For integration with Shibboleth, refer: https://github.com/jgeorge300/devise_shibboleth_authenticatable
|
|
144
|
+
|
|
145
|
+
For integration with multiple authentication systems (and for twitter, facebook, etc.), consider using OmniAuth: https://github.com/intridea/omniauth
|
|
146
|
+
|
|
184
147
|
# Standing up your Curate-based Rails application in Production
|
|
185
148
|
|
|
186
149
|
We are working on this and have more to come.
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
$targetElement.autocomplete
|
|
83
83
|
source: (request, response) ->
|
|
84
84
|
$targetElement.data('url')
|
|
85
|
-
$.getJSON $targetElement.data('url'), { q: request.term}, ( data, status, xhr ) ->
|
|
85
|
+
$.getJSON $targetElement.data('url'), { q: request.term + "*" }, ( data, status, xhr ) ->
|
|
86
86
|
matches = []
|
|
87
87
|
$.each data.response.docs, (idx, val) ->
|
|
88
88
|
matches.push {label: val['desc_metadata__name_tesim'][0], value: val['id']}
|
|
@@ -33,7 +33,7 @@ class CatalogController < ApplicationController
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def self.modified_field
|
|
36
|
-
solr_name('desc_metadata__date_modified', :stored_sortable, type: :date)
|
|
36
|
+
solr_name('desc_metadata__date_modified', :stored_sortable , type: :date)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
|
|
@@ -83,8 +83,8 @@ class CatalogController < ApplicationController
|
|
|
83
83
|
config.add_index_field solr_name("desc_metadata__publisher", :stored_searchable, type: :string), label: "Publisher"
|
|
84
84
|
config.add_index_field solr_name("desc_metadata__based_near", :stored_searchable, type: :string), label: "Location"
|
|
85
85
|
config.add_index_field solr_name("desc_metadata__language", :stored_searchable, type: :string), label: "Language"
|
|
86
|
-
config.add_index_field solr_name("desc_metadata__date_uploaded", :
|
|
87
|
-
config.add_index_field solr_name("desc_metadata__date_modified", :
|
|
86
|
+
config.add_index_field solr_name("desc_metadata__date_uploaded", :stored_sortable, type: :string), label: "Date Uploaded"
|
|
87
|
+
config.add_index_field solr_name("desc_metadata__date_modified", :stored_sortable, type: :string), label: "Date Modified"
|
|
88
88
|
config.add_index_field solr_name("desc_metadata__date_created", :stored_searchable, type: :string), label: "Date Created"
|
|
89
89
|
config.add_index_field solr_name("desc_metadata__rights", :stored_searchable, type: :string), label: "Rights"
|
|
90
90
|
config.add_index_field solr_name("human_readable_type", :stored_searchable, type: :string), label: "Resource Type"
|
|
@@ -82,10 +82,10 @@ class CurationConcern::GenericWorksController < CurationConcern::BaseController
|
|
|
82
82
|
def destroy
|
|
83
83
|
title = curation_concern.to_s
|
|
84
84
|
curation_concern.destroy
|
|
85
|
-
after_destroy_response
|
|
85
|
+
after_destroy_response(title)
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
def after_destroy_response
|
|
88
|
+
def after_destroy_response(title)
|
|
89
89
|
flash[:notice] = "Deleted #{title}"
|
|
90
90
|
respond_with { |wants|
|
|
91
91
|
wants.html { redirect_to catalog_index_path }
|
|
@@ -16,16 +16,4 @@ module BlacklightHelper
|
|
|
16
16
|
def application_name
|
|
17
17
|
t('sufia.product_name')
|
|
18
18
|
end
|
|
19
|
-
|
|
20
|
-
# Loads the object and returns its name(for creator)/title(for collection)
|
|
21
|
-
def get_value_from_pid(field, value)
|
|
22
|
-
attr_value = ""
|
|
23
|
-
begin
|
|
24
|
-
attr_value = ActiveFedora::Base.load_instance_from_solr(value.split("/").last).name if field == "desc_metadata__creator_sim"
|
|
25
|
-
attr_value = ActiveFedora::Base.load_instance_from_solr(value).title if field == "collection_sim"
|
|
26
|
-
rescue => e
|
|
27
|
-
logger.warn("WARN: Helper method get_value_from_pid raised an error when loading #{value}. Error was #{e}")
|
|
28
|
-
end
|
|
29
|
-
return attr_value.blank? ? value : attr_value
|
|
30
|
-
end
|
|
31
19
|
end
|
|
@@ -114,4 +114,10 @@ module CurateHelper
|
|
|
114
114
|
return dom_label_class, link_title
|
|
115
115
|
end
|
|
116
116
|
private :extract_dom_label_class_and_link_title
|
|
117
|
+
|
|
118
|
+
def auto_link_without_protocols(url)
|
|
119
|
+
link = (url =~ /\A(?i)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?\z/) ? 'http://' + url : url
|
|
120
|
+
auto_link(link, :all)
|
|
121
|
+
end
|
|
122
|
+
|
|
117
123
|
end
|
|
@@ -44,11 +44,11 @@ class ArticleMetadataDatastream < ActiveFedora::NtriplesRDFDatastream
|
|
|
44
44
|
end
|
|
45
45
|
map.date_uploaded(to: "dateSubmitted", in: RDF::DC) do |index|
|
|
46
46
|
index.type :date
|
|
47
|
-
index.as :
|
|
47
|
+
index.as :stored_sortable
|
|
48
48
|
end
|
|
49
49
|
map.date_modified(to: "modified", in: RDF::DC) do |index|
|
|
50
50
|
index.type :date
|
|
51
|
-
index.as :
|
|
51
|
+
index.as :stored_sortable
|
|
52
52
|
end
|
|
53
53
|
map.recommended_citation({in: RDF::DC, to: 'bibliographicCitation'})
|
|
54
54
|
|
|
@@ -42,11 +42,11 @@ class EtdMetadata < ActiveFedora::NtriplesRDFDatastream
|
|
|
42
42
|
end
|
|
43
43
|
map.date_uploaded(to: "dateSubmitted", in: RDF::DC) do |index|
|
|
44
44
|
index.type :date
|
|
45
|
-
index.as :
|
|
45
|
+
index.as :stored_sortable
|
|
46
46
|
end
|
|
47
47
|
map.date_modified(to: "modified", in: RDF::DC) do |index|
|
|
48
48
|
index.type :date
|
|
49
|
-
index.as :
|
|
49
|
+
index.as :stored_sortable
|
|
50
50
|
end
|
|
51
51
|
map.language(in: RDF::DC) do |index|
|
|
52
52
|
index.as :stored_searchable, :facetable
|
|
@@ -21,12 +21,12 @@ class GenericWorkRdfDatastream < ActiveFedora::NtriplesRDFDatastream
|
|
|
21
21
|
|
|
22
22
|
map.date_uploaded(to: "dateSubmitted", in: RDF::DC) do |index|
|
|
23
23
|
index.type :date
|
|
24
|
-
index.as :
|
|
24
|
+
index.as :stored_sortable
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
map.date_modified(to: "modified", in: RDF::DC) do |index|
|
|
28
28
|
index.type :date
|
|
29
|
-
index.as :
|
|
29
|
+
index.as :stored_sortable
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
map.issued({in: RDF::DC}) do |index|
|
|
@@ -39,11 +39,11 @@ class ImageMetadata < ActiveFedora::NtriplesRDFDatastream
|
|
|
39
39
|
map.format(in: RDF::QualifiedDC, to: 'format#mimetype')
|
|
40
40
|
map.date_uploaded(to: "dateSubmitted", in: RDF::DC) do |index|
|
|
41
41
|
index.type :date
|
|
42
|
-
index.as :
|
|
42
|
+
index.as :stored_sortable
|
|
43
43
|
end
|
|
44
44
|
map.date_modified(to: "modified", in: RDF::DC) do |index|
|
|
45
45
|
index.type :date
|
|
46
|
-
index.as :
|
|
46
|
+
index.as :stored_sortable
|
|
47
47
|
end
|
|
48
48
|
map.identifier(in: RDF::DC)
|
|
49
49
|
map.doi(to: "identifier#doi", in: RDF::QualifiedDC)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<%# there has got to be a hipster ruby way to do this better %>
|
|
2
2
|
<% if params[:f] %>
|
|
3
|
-
<% params[:f].each do |
|
|
4
|
-
<% v.each do |
|
|
5
|
-
<% link_options = remove_facet_params(
|
|
3
|
+
<% params[:f].each do |field,v| %>
|
|
4
|
+
<% v.each do |selected_value| %>
|
|
5
|
+
<% link_options = remove_facet_params(field, selected_value, params).merge!Hash["controller" => "catalog", :action=> "index"] %>
|
|
6
6
|
<div class="alert alert-warning">
|
|
7
7
|
<%= link_to 'X', url_for(link_options), {:class=>'close', :'data-dismiss' => "alert" } %>
|
|
8
|
-
<i class="icon-ok icon-large"></i> <strong><%=
|
|
8
|
+
<i class="icon-ok icon-large"></i> <strong><%= facet_display_value(field, selected_value) %></strong>
|
|
9
9
|
</div>
|
|
10
10
|
<% end %>
|
|
11
11
|
<% end %>
|
|
@@ -22,11 +22,27 @@
|
|
|
22
22
|
class: 'itemicon itemedit btn',
|
|
23
23
|
title: "Edit #{document.human_readable_type}"
|
|
24
24
|
)%>
|
|
25
|
+
<% unless document.is_a?(Collection) %>
|
|
26
|
+
<%= link_to(
|
|
27
|
+
raw('<i class="icon-trash icon-large"></i>'),
|
|
28
|
+
[:curation_concern, document],
|
|
29
|
+
class: 'itemicon itemtrash btn',
|
|
30
|
+
data: {
|
|
31
|
+
confirm: "Delete this #{document.human_readable_type}?"
|
|
32
|
+
},
|
|
33
|
+
method: :delete,
|
|
34
|
+
title: "Delete #{document.human_readable_type}"
|
|
35
|
+
)%>
|
|
25
36
|
<% end %>
|
|
26
|
-
<%
|
|
27
|
-
|
|
37
|
+
<% end %>
|
|
38
|
+
|
|
39
|
+
<% unless document.respond_to?(:user) %>
|
|
40
|
+
<% if can? :collect, document %>
|
|
41
|
+
<%= render 'add_to_collection_gui', collectible: document %>
|
|
42
|
+
<% end %>
|
|
28
43
|
<% end %>
|
|
29
44
|
<% end %>
|
|
30
45
|
</div>
|
|
31
46
|
</div>
|
|
32
47
|
|
|
48
|
+
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
<% if controller.action_name == "edit" %>
|
|
37
37
|
<div class="delete-asset">
|
|
38
|
-
<%= button_to("Delete This Item", {:
|
|
38
|
+
<%= button_to("Delete This Item", { action: :destroy, controller: :assets, id: @document_fedora.pid }, data: { confirm: 'Are you sure?' } , method: :delete )%>
|
|
39
39
|
</div>
|
|
40
40
|
<% end %>
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
|
|
46
46
|
<div class="form-actions">
|
|
47
47
|
<%= f.submit class: 'btn btn-primary' %>
|
|
48
|
+
<%- if @collection.persisted? -%>
|
|
49
|
+
<%= link_to 'Cancel', collection_path(@collection), class: 'btn btn-link' %>
|
|
50
|
+
<% else %>
|
|
51
|
+
<%= link_to 'Cancel', root_path, class: 'btn btn-link' %>
|
|
52
|
+
<% end %>
|
|
48
53
|
</div>
|
|
49
54
|
<% end %>
|
|
50
55
|
</div>
|
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
<% end %>
|
|
5
5
|
<% if can? :edit, @collection %>
|
|
6
6
|
<% content_for :page_actions do %>
|
|
7
|
+
|
|
8
|
+
<%= button_to(
|
|
9
|
+
"Delete",
|
|
10
|
+
{
|
|
11
|
+
action: :destroy,
|
|
12
|
+
controller: :collections,
|
|
13
|
+
id: @collection.id
|
|
14
|
+
},
|
|
15
|
+
data: {confirm: 'Are you sure you want to delete this collection?'},
|
|
16
|
+
class: 'btn',
|
|
17
|
+
form_class: 'button-to pull-right',
|
|
18
|
+
method: :delete
|
|
19
|
+
)%>
|
|
20
|
+
|
|
7
21
|
<%= link_to 'Edit', edit_collection_path(@collection), class: 'btn' %>
|
|
8
22
|
<% end %>
|
|
9
23
|
<% end %>
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<dl class="<%= dom_class(@person) %>">
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
<%# This is where I tell Jeremy I'm sorry. %>
|
|
20
|
+
<% @person.terms_for_display.reject{|name| name == :name}.each do |attribute_name| %>
|
|
21
|
+
<% if @person.send(attribute_name).present? %>
|
|
22
|
+
<dt><%="#{derived_label_for( @person, attribute_name) }:" %></dt>
|
|
23
|
+
<% [@person.send(attribute_name)].flatten.compact.each do |value| %>
|
|
24
|
+
<%= auto_link_without_protocols(value) %>
|
|
25
|
+
<% end %>
|
|
25
26
|
<% end %>
|
|
26
27
|
<% end %>
|
|
27
|
-
<% end %>
|
|
28
28
|
</dl>
|
|
29
29
|
|
|
30
30
|
<% if can? :edit, @person %>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<div class="form-actions">
|
|
20
20
|
<% if editor %>
|
|
21
21
|
<%= link_to "Edit This #{curation_concern.human_readable_type}", edit_polymorphic_path([:curation_concern, curation_concern]), class: 'btn btn-primary' %>
|
|
22
|
+
<%= link_to "Delete This #{curation_concern.human_readable_type}", [:curation_concern, curation_concern], class: 'btn btn-primary', data: { confirm: "Delete this #{curation_concern.human_readable_type}?" }, method: :delete %>
|
|
22
23
|
<%= link_to "Attach a File", new_curation_concern_generic_file_path(curation_concern), class: 'btn btn-primary' %>
|
|
23
24
|
<%= link_to "Add an External Link", new_curation_concern_linked_resource_path(curation_concern), class: 'btn btn-primary' %>
|
|
24
25
|
<% end %>
|
data/lib/curate.rb
CHANGED
data/lib/curate/version.rb
CHANGED
|
@@ -13,7 +13,7 @@ end
|
|
|
13
13
|
with_git("Initial commit")
|
|
14
14
|
|
|
15
15
|
with_git("Adding curate gem") do
|
|
16
|
-
gem 'curate', "~> 0.6.
|
|
16
|
+
gem 'curate', "~> 0.6.4"
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
HELPFUL_DEVELOPMENT_TOOLS =
|
|
@@ -40,6 +40,20 @@ if yes_with_banner?(HELPFUL_DEVELOPMENT_TOOLS)
|
|
|
40
40
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
USE_RUBY_RACER =
|
|
44
|
+
<<-QUESTION_TO_ASK
|
|
45
|
+
Would you like to include the Ruby Racer gem? (Needed in some Linux environments)
|
|
46
|
+
|
|
47
|
+
More information at http://github.com/cowboyd/therubyracer
|
|
48
|
+
QUESTION_TO_ASK
|
|
49
|
+
|
|
50
|
+
if yes_with_banner?(USE_RUBY_RACER)
|
|
51
|
+
with_git("Adding Ruby Racer gem") do
|
|
52
|
+
gem 'therubyracer', platforms: :ruby
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
end
|
|
56
|
+
|
|
43
57
|
with_git("Results of `bundle install`") do
|
|
44
58
|
run 'bundle install'
|
|
45
59
|
end
|
|
@@ -77,9 +91,24 @@ if yes_with_banner?(JETTY_QUESTION)
|
|
|
77
91
|
end
|
|
78
92
|
|
|
79
93
|
with_git("Downloading jettywrapper") do
|
|
80
|
-
if yes_with_banner?("Would you like to download jetty now?\n\nThis will take quite awhile based on download speeds.")
|
|
94
|
+
if yes_with_banner?("Would you like to download and unzip jetty now?\n\nThis will take quite awhile based on download speeds.")
|
|
81
95
|
rake "jetty:download"
|
|
82
96
|
rake "jetty:config"
|
|
97
|
+
rake "jetty:unzip"
|
|
98
|
+
|
|
99
|
+
if yes_with_banner?("Would you like to turn on soft deleting of works?\n\nThis will preserve deleted objects in the Fedora repository while preventing the works from being displayed in the application.")
|
|
100
|
+
get 'https://raw.github.com/projecthydra/curate/master/lib/generators/curate/soft_delete/active_fedora_soft_delete_monkey_patch.rb', 'config/initializers/active_fedora_soft_delete_monkey_patch.rb'
|
|
101
|
+
get 'https://raw.github.com/projecthydra/curate/master/lib/generators/curate/soft_delete/deny-d-objects-and-datastreams.xml', 'jetty/fedora/default/data/fedora-xacml-policies/repository-policies/deny-d-objects-and-datastreams.xml'
|
|
102
|
+
get 'https://raw.github.com/projecthydra/curate/master/lib/generators/curate/soft_delete/deny-purge.xml', 'jetty/fedora/default/data/fedora-xacml-policies/repository-policies/deny-purge.xml'
|
|
103
|
+
get 'https://raw.github.com/projecthydra/curate/master/lib/generators/curate/soft_delete/permit-describerepository.xml', 'jetty/fedora/default/data/fedora-xacml-policies/repository-policies/permit-describerepository.xml'
|
|
104
|
+
end
|
|
83
105
|
end
|
|
84
106
|
end
|
|
85
107
|
end
|
|
108
|
+
|
|
109
|
+
with_git("Installing RSpec files with curate support") do
|
|
110
|
+
if yes_with_banner?("Would you like to include support for RSpec testing?\n\nThis is needed if you want to use spec tests for your custom code.")
|
|
111
|
+
generate "rspec:install"
|
|
112
|
+
inject_into_file 'spec/spec_helper.rb', "\nrequire 'curate/spec_support'", :after => "require 'rspec/autorun'"
|
|
113
|
+
end
|
|
114
|
+
end
|