curate 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/curate/organizations_controller.rb +96 -0
- data/app/helpers/curate/organizations_helper.rb +13 -0
- data/app/helpers/curate_helper.rb +4 -0
- data/app/models/concerns/curate/ability.rb +8 -0
- data/app/models/curate/user_behavior/base.rb +13 -0
- data/app/repository_models/collection.rb +1 -0
- data/app/repository_models/curation_concern/model.rb +1 -0
- data/app/repository_models/organization.rb +17 -0
- data/app/repository_models/person.rb +1 -0
- data/app/repository_models/profile_section.rb +1 -0
- data/app/views/curate/organizations/_button_create_organization.html.erb +1 -0
- data/app/views/curate/organizations/_document_list.html.erb +11 -0
- data/app/views/curate/organizations/_form.html.erb +49 -0
- data/app/views/curate/organizations/_organization.html.erb +24 -0
- data/app/views/curate/organizations/edit.html.erb +4 -0
- data/app/views/curate/organizations/index.html.erb +11 -0
- data/app/views/curate/organizations/new.html.erb +4 -0
- data/app/views/curate/organizations/show.html.erb +27 -0
- data/app/views/organizations/_organization.html.erb +30 -0
- data/app/views/shared/_add_content.html.erb +1 -0
- data/lib/curate/rails/routes.rb +1 -0
- data/lib/curate/version.rb +1 -1
- data/lib/generators/curate/application_template.rb +1 -1
- data/lib/generators/curate/curate_generator.rb +3 -0
- data/spec/abilities/generic_file_abilities_spec.rb +12 -0
- data/spec/abilities/generic_work_abilities_spec.rb +12 -0
- data/spec/controllers/curate/organizations_controller_spec.rb +50 -0
- data/spec/factories/organizations_factory.rb +21 -0
- data/spec/internal/Gemfile +4 -22
- data/spec/internal/Gemfile.lock +1 -376
- data/spec/internal/app/assets/javascripts/application.js +0 -4
- data/spec/internal/app/assets/stylesheets/application.css +0 -1
- data/spec/internal/app/controllers/application_controller.rb +0 -9
- data/spec/internal/config/application.rb +0 -6
- data/spec/internal/config/environments/test.rb +1 -2
- data/spec/internal/config/initializers/mime_types.rb +1 -8
- data/spec/internal/config/initializers/secret_token.rb +1 -1
- data/spec/internal/config/locales/en.yml +20 -11
- data/spec/internal/config/routes.rb +0 -8
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/schema.rb +1 -216
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/lib/generators/test_app_generator.rb +2 -23
- data/spec/internal/log/development.log +4 -323
- data/spec/repository_models/organization_spec.rb +66 -0
- metadata +20 -160
- data/spec/internal/app/assets/images/blacklight/bg.png +0 -0
- data/spec/internal/app/assets/images/blacklight/border.png +0 -0
- data/spec/internal/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/checkmark.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/logo.png +0 -0
- data/spec/internal/app/assets/images/blacklight/magnifying_glass.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/remove.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/separator.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/start_over.gif +0 -0
- data/spec/internal/app/models/ability.rb +0 -20
- data/spec/internal/app/models/solr_document.rb +0 -38
- data/spec/internal/app/models/user.rb +0 -23
- data/spec/internal/config/SolrMarc/config-test.properties +0 -37
- data/spec/internal/config/SolrMarc/config.properties +0 -37
- data/spec/internal/config/SolrMarc/index.properties +0 -97
- data/spec/internal/config/SolrMarc/index_scripts/dewey.bsh +0 -47
- data/spec/internal/config/SolrMarc/index_scripts/format.bsh +0 -126
- data/spec/internal/config/SolrMarc/translation_maps/README_MAPS +0 -1
- data/spec/internal/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
- data/spec/internal/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
- data/spec/internal/config/SolrMarc/translation_maps/country_map.properties +0 -379
- data/spec/internal/config/SolrMarc/translation_maps/format_map.properties +0 -50
- data/spec/internal/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
- data/spec/internal/config/SolrMarc/translation_maps/language_map.properties +0 -490
- data/spec/internal/config/doi.yml +0 -5
- data/spec/internal/config/fedora.yml +0 -14
- data/spec/internal/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
- data/spec/internal/config/initializers/curate_config.rb +0 -24
- data/spec/internal/config/initializers/devise.rb +0 -254
- data/spec/internal/config/initializers/hydra-remote_identifier_config.rb +0 -29
- data/spec/internal/config/initializers/hydra_config.rb +0 -28
- data/spec/internal/config/initializers/mailboxer.rb +0 -17
- data/spec/internal/config/initializers/redis_config.rb +0 -32
- data/spec/internal/config/initializers/resque_admin.rb +0 -10
- data/spec/internal/config/initializers/resque_config.rb +0 -5
- data/spec/internal/config/initializers/sufia.rb +0 -81
- data/spec/internal/config/jetty.yml +0 -5
- data/spec/internal/config/locales/devise.en.yml +0 -59
- data/spec/internal/config/recipients_list.yml +0 -2
- data/spec/internal/config/redis.yml +0 -6
- data/spec/internal/config/role_map_cucumber.yml +0 -10
- data/spec/internal/config/role_map_development.yml +0 -12
- data/spec/internal/config/role_map_production.yml +0 -2
- data/spec/internal/config/role_map_test.yml +0 -15
- data/spec/internal/config/solr.yml +0 -10
- data/spec/internal/db/migrate/20140131175455_devise_create_users.rb +0 -42
- data/spec/internal/db/migrate/20140131175500_add_devise_guests_to_users.rb +0 -15
- data/spec/internal/db/migrate/20140131175501_create_searches.rb +0 -16
- data/spec/internal/db/migrate/20140131175502_create_bookmarks.rb +0 -18
- data/spec/internal/db/migrate/20140131175503_remove_editable_fields_from_bookmarks.rb +0 -12
- data/spec/internal/db/migrate/20140131175504_add_user_types_to_bookmarks_searches.rb +0 -16
- data/spec/internal/db/migrate/20140131175505_acts_as_follower_migration.rb +0 -17
- data/spec/internal/db/migrate/20140131175506_add_social_to_users.rb +0 -13
- data/spec/internal/db/migrate/20140131175507_create_single_use_links.rb +0 -12
- data/spec/internal/db/migrate/20140131175508_add_ldap_attrs_to_user.rb +0 -27
- data/spec/internal/db/migrate/20140131175509_add_avatars_to_users.rb +0 -9
- data/spec/internal/db/migrate/20140131175510_create_checksum_audit_logs.rb +0 -20
- data/spec/internal/db/migrate/20140131175511_create_version_committers.rb +0 -15
- data/spec/internal/db/migrate/20140131175512_add_groups_to_users.rb +0 -11
- data/spec/internal/db/migrate/20140131175513_create_local_authorities.rb +0 -50
- data/spec/internal/db/migrate/20140131175514_create_trophies.rb +0 -10
- data/spec/internal/db/migrate/20140131175536_create_mailboxer.mailboxer_engine.rb +0 -62
- data/spec/internal/db/migrate/20140131175537_add_notified_object.mailboxer_engine.rb +0 -18
- data/spec/internal/db/migrate/20140131175538_add_notification_code.mailboxer_engine.rb +0 -14
- data/spec/internal/db/migrate/20140131175539_add_attachments.mailboxer_engine.rb +0 -10
- data/spec/internal/db/migrate/20140131175540_rename_receipts_read.mailboxer_engine.rb +0 -10
- data/spec/internal/db/migrate/20140131175541_add_global_notification_support.mailboxer_engine.rb +0 -10
- data/spec/internal/db/migrate/20140131175545_add_terms_of_service_to_user.curate_engine.rb +0 -6
- data/spec/internal/db/migrate/20140131175546_add_user_force_update_profile.curate_engine.rb +0 -9
- data/spec/internal/db/migrate/20140131175547_create_help_requests.curate_engine.rb +0 -23
- data/spec/internal/db/migrate/20140131175548_add_repository_id_to_user.curate_engine.rb +0 -7
- data/spec/internal/db/migrate/20140131175549_create_curate_proxy_deposit_rights.curate_engine.rb +0 -12
- data/spec/internal/db/migrate/20140131175550_change_display_name_to_name.curate_engine.rb +0 -7
- data/spec/internal/fedora_conf/conf/development/fedora.fcfg +0 -953
- data/spec/internal/fedora_conf/conf/test/fedora.fcfg +0 -953
- data/spec/internal/solr_conf/conf/schema.xml +0 -273
- data/spec/internal/solr_conf/conf/solrconfig.xml +0 -167
- data/spec/internal/solr_conf/solr.xml +0 -35
- data/spec/internal/test/models/user_test.rb +0 -7
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Organization do
|
4
|
+
let(:organization) { Organization.new}
|
5
|
+
let(:person) { FactoryGirl.create(:person)}
|
6
|
+
let(:another_person) { FactoryGirl.create(:person)}
|
7
|
+
let(:work) { FactoryGirl.create(:generic_work)}
|
8
|
+
|
9
|
+
describe '#human_readable_type' do
|
10
|
+
it "indicates organization" do
|
11
|
+
organization.human_readable_type.should == 'Organization'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '#add_member' do
|
16
|
+
it 'should be able to add people' do
|
17
|
+
expect( organization.members ).to eq([])
|
18
|
+
organization.add_member(person).should be_true
|
19
|
+
expect( organization.members ).to include(person)
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should not add if collectible is not a person' do
|
23
|
+
expect( organization.members ).to eq([])
|
24
|
+
work = FactoryGirl.create(:generic_work)
|
25
|
+
organization.add_member(work).should be_false
|
26
|
+
expect( organization.members ).to eq([])
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'should handle attempt to add nil' do
|
30
|
+
expect( organization.members ).to eq([])
|
31
|
+
organization.add_member(nil).should be_false
|
32
|
+
expect( organization.members ).to eq([])
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'should handle attempt to add nil' do
|
36
|
+
expect( organization.members ).to eq([])
|
37
|
+
organization.add_member(nil)
|
38
|
+
expect( organization.members ).to eq([])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe '#remove_member' do
|
43
|
+
it 'should be able to remove people' do
|
44
|
+
organization.add_member(person)
|
45
|
+
expect( organization.members ).to include(person)
|
46
|
+
organization.remove_member(person).should be_true
|
47
|
+
expect( organization.members ).to eq([])
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'should handle attempt to remove person who is not in organization' do
|
51
|
+
organization.add_member(person)
|
52
|
+
expect( organization.members ).to include(person)
|
53
|
+
another_person = FactoryGirl.create(:person)
|
54
|
+
organization.remove_member(another_person).should be_false
|
55
|
+
expect( organization.members ).to include(person)
|
56
|
+
end
|
57
|
+
|
58
|
+
it 'should handle attempt to remove nil' do
|
59
|
+
organization.add_member(person)
|
60
|
+
expect( organization.members ).to include(person)
|
61
|
+
organization.remove_member(nil).should be_false
|
62
|
+
expect( organization.members ).to include(person)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -560,6 +560,7 @@ files:
|
|
560
560
|
- app/controllers/concerns/curate_controller.rb
|
561
561
|
- app/controllers/curate/collections_controller.rb
|
562
562
|
- app/controllers/curate/depositors_controller.rb
|
563
|
+
- app/controllers/curate/organizations_controller.rb
|
563
564
|
- app/controllers/curate/people_controller.rb
|
564
565
|
- app/controllers/curate/user_profiles_controller.rb
|
565
566
|
- app/controllers/curation_concern/articles_controller.rb
|
@@ -582,6 +583,7 @@ files:
|
|
582
583
|
- app/helpers/common_objects_helper.rb
|
583
584
|
- app/helpers/curate/catalog_helper.rb
|
584
585
|
- app/helpers/curate/collections_helper.rb
|
586
|
+
- app/helpers/curate/organizations_helper.rb
|
585
587
|
- app/helpers/curate/people_helper.rb
|
586
588
|
- app/helpers/curate_helper.rb
|
587
589
|
- app/helpers/generic_file_helper.rb
|
@@ -630,6 +632,7 @@ files:
|
|
630
632
|
- app/repository_models/generic_work.rb
|
631
633
|
- app/repository_models/image.rb
|
632
634
|
- app/repository_models/linked_resource.rb
|
635
|
+
- app/repository_models/organization.rb
|
633
636
|
- app/repository_models/person.rb
|
634
637
|
- app/repository_models/profile.rb
|
635
638
|
- app/repository_models/profile_section.rb
|
@@ -717,6 +720,14 @@ files:
|
|
717
720
|
- app/views/curate/collections/show.html.erb
|
718
721
|
- app/views/curate/collections/unauthorized.html.erb
|
719
722
|
- app/views/curate/depositors/index.html.erb
|
723
|
+
- app/views/curate/organizations/_button_create_organization.html.erb
|
724
|
+
- app/views/curate/organizations/_document_list.html.erb
|
725
|
+
- app/views/curate/organizations/_form.html.erb
|
726
|
+
- app/views/curate/organizations/_organization.html.erb
|
727
|
+
- app/views/curate/organizations/edit.html.erb
|
728
|
+
- app/views/curate/organizations/index.html.erb
|
729
|
+
- app/views/curate/organizations/new.html.erb
|
730
|
+
- app/views/curate/organizations/show.html.erb
|
720
731
|
- app/views/curate/people/_profile_image.html.erb
|
721
732
|
- app/views/curate/people/show.html.erb
|
722
733
|
- app/views/curation_concern/articles/_article.html.erb
|
@@ -790,6 +801,7 @@ files:
|
|
790
801
|
- app/views/layouts/curate_nd/catalog.html.erb
|
791
802
|
- app/views/layouts/curate_nd/dashboard.html.erb
|
792
803
|
- app/views/layouts/curate_nd.html.erb
|
804
|
+
- app/views/organizations/_organization.html.erb
|
793
805
|
- app/views/profiles/_profile.html.erb
|
794
806
|
- app/views/registrations/_form_account_deactivation.html.erb
|
795
807
|
- app/views/registrations/_form_attributes.html.erb
|
@@ -885,6 +897,7 @@ files:
|
|
885
897
|
- spec/controllers/common_objects_controller_spec.rb
|
886
898
|
- spec/controllers/curate/collections_controller_spec.rb
|
887
899
|
- spec/controllers/curate/depositors_controller_spec.rb
|
900
|
+
- spec/controllers/curate/organizations_controller_spec.rb
|
888
901
|
- spec/controllers/curate/people_controller_spec.rb
|
889
902
|
- spec/controllers/curate/user_profiles_controller_spec.rb
|
890
903
|
- spec/controllers/curation_concern/articles_controller_spec.rb
|
@@ -913,6 +926,7 @@ files:
|
|
913
926
|
- spec/factories/help_requests_factory.rb
|
914
927
|
- spec/factories/images_factory.rb
|
915
928
|
- spec/factories/linked_resources_factory.rb
|
929
|
+
- spec/factories/organizations_factory.rb
|
916
930
|
- spec/factories/person.rb
|
917
931
|
- spec/features/adding_items_to_collections.rb
|
918
932
|
- spec/features/adding_section_to_profile.rb
|
@@ -943,22 +957,10 @@ files:
|
|
943
957
|
- spec/inputs/composite_input_spec.rb
|
944
958
|
- spec/inputs/multi_value_input_spec.rb
|
945
959
|
- spec/inputs/multi_value_with_elements_input_spec.rb
|
946
|
-
- spec/internal/app/assets/images/blacklight/bg.png
|
947
|
-
- spec/internal/app/assets/images/blacklight/border.png
|
948
|
-
- spec/internal/app/assets/images/blacklight/bul_sq_gry.gif
|
949
|
-
- spec/internal/app/assets/images/blacklight/checkmark.gif
|
950
|
-
- spec/internal/app/assets/images/blacklight/logo.png
|
951
|
-
- spec/internal/app/assets/images/blacklight/magnifying_glass.gif
|
952
|
-
- spec/internal/app/assets/images/blacklight/remove.gif
|
953
|
-
- spec/internal/app/assets/images/blacklight/separator.gif
|
954
|
-
- spec/internal/app/assets/images/blacklight/start_over.gif
|
955
960
|
- spec/internal/app/assets/javascripts/application.js
|
956
961
|
- spec/internal/app/assets/stylesheets/application.css
|
957
962
|
- spec/internal/app/controllers/application_controller.rb
|
958
963
|
- spec/internal/app/helpers/application_helper.rb
|
959
|
-
- spec/internal/app/models/ability.rb
|
960
|
-
- spec/internal/app/models/solr_document.rb
|
961
|
-
- spec/internal/app/models/user.rb
|
962
964
|
- spec/internal/app/views/layouts/application.html.erb
|
963
965
|
- spec/internal/bin/bundle
|
964
966
|
- spec/internal/bin/rails
|
@@ -966,87 +968,24 @@ files:
|
|
966
968
|
- spec/internal/config/application.rb
|
967
969
|
- spec/internal/config/boot.rb
|
968
970
|
- spec/internal/config/database.yml
|
969
|
-
- spec/internal/config/doi.yml
|
970
971
|
- spec/internal/config/environment.rb
|
971
972
|
- spec/internal/config/environments/development.rb
|
972
973
|
- spec/internal/config/environments/production.rb
|
973
974
|
- spec/internal/config/environments/test.rb
|
974
|
-
- spec/internal/config/fedora.yml
|
975
|
-
- spec/internal/config/initializers/action_dispatch_http_upload_monkey_patch.rb
|
976
975
|
- spec/internal/config/initializers/backtrace_silencers.rb
|
977
|
-
- spec/internal/config/initializers/curate_config.rb
|
978
|
-
- spec/internal/config/initializers/devise.rb
|
979
976
|
- spec/internal/config/initializers/filter_parameter_logging.rb
|
980
|
-
- spec/internal/config/initializers/hydra-remote_identifier_config.rb
|
981
|
-
- spec/internal/config/initializers/hydra_config.rb
|
982
977
|
- spec/internal/config/initializers/inflections.rb
|
983
|
-
- spec/internal/config/initializers/mailboxer.rb
|
984
978
|
- spec/internal/config/initializers/mime_types.rb
|
985
|
-
- spec/internal/config/initializers/redis_config.rb
|
986
|
-
- spec/internal/config/initializers/resque_admin.rb
|
987
|
-
- spec/internal/config/initializers/resque_config.rb
|
988
979
|
- spec/internal/config/initializers/secret_token.rb
|
989
980
|
- spec/internal/config/initializers/session_store.rb
|
990
|
-
- spec/internal/config/initializers/sufia.rb
|
991
981
|
- spec/internal/config/initializers/wrap_parameters.rb
|
992
|
-
- spec/internal/config/jetty.yml
|
993
|
-
- spec/internal/config/locales/devise.en.yml
|
994
982
|
- spec/internal/config/locales/en.yml
|
995
|
-
- spec/internal/config/recipients_list.yml
|
996
|
-
- spec/internal/config/redis.yml
|
997
|
-
- spec/internal/config/role_map_cucumber.yml
|
998
|
-
- spec/internal/config/role_map_development.yml
|
999
|
-
- spec/internal/config/role_map_production.yml
|
1000
|
-
- spec/internal/config/role_map_test.yml
|
1001
983
|
- spec/internal/config/routes.rb
|
1002
|
-
- spec/internal/config/solr.yml
|
1003
|
-
- spec/internal/config/SolrMarc/config-test.properties
|
1004
|
-
- spec/internal/config/SolrMarc/config.properties
|
1005
|
-
- spec/internal/config/SolrMarc/index.properties
|
1006
|
-
- spec/internal/config/SolrMarc/index_scripts/dewey.bsh
|
1007
|
-
- spec/internal/config/SolrMarc/index_scripts/format.bsh
|
1008
|
-
- spec/internal/config/SolrMarc/translation_maps/callnumber_map.properties
|
1009
|
-
- spec/internal/config/SolrMarc/translation_maps/composition_era_map.properties
|
1010
|
-
- spec/internal/config/SolrMarc/translation_maps/country_map.properties
|
1011
|
-
- spec/internal/config/SolrMarc/translation_maps/format_map.properties
|
1012
|
-
- spec/internal/config/SolrMarc/translation_maps/instrument_map.properties
|
1013
|
-
- spec/internal/config/SolrMarc/translation_maps/language_map.properties
|
1014
|
-
- spec/internal/config/SolrMarc/translation_maps/README_MAPS
|
1015
984
|
- spec/internal/config.ru
|
1016
985
|
- spec/internal/db/development.sqlite3
|
1017
|
-
- spec/internal/db/migrate/20140131175455_devise_create_users.rb
|
1018
|
-
- spec/internal/db/migrate/20140131175500_add_devise_guests_to_users.rb
|
1019
|
-
- spec/internal/db/migrate/20140131175501_create_searches.rb
|
1020
|
-
- spec/internal/db/migrate/20140131175502_create_bookmarks.rb
|
1021
|
-
- spec/internal/db/migrate/20140131175503_remove_editable_fields_from_bookmarks.rb
|
1022
|
-
- spec/internal/db/migrate/20140131175504_add_user_types_to_bookmarks_searches.rb
|
1023
|
-
- spec/internal/db/migrate/20140131175505_acts_as_follower_migration.rb
|
1024
|
-
- spec/internal/db/migrate/20140131175506_add_social_to_users.rb
|
1025
|
-
- spec/internal/db/migrate/20140131175507_create_single_use_links.rb
|
1026
|
-
- spec/internal/db/migrate/20140131175508_add_ldap_attrs_to_user.rb
|
1027
|
-
- spec/internal/db/migrate/20140131175509_add_avatars_to_users.rb
|
1028
|
-
- spec/internal/db/migrate/20140131175510_create_checksum_audit_logs.rb
|
1029
|
-
- spec/internal/db/migrate/20140131175511_create_version_committers.rb
|
1030
|
-
- spec/internal/db/migrate/20140131175512_add_groups_to_users.rb
|
1031
|
-
- spec/internal/db/migrate/20140131175513_create_local_authorities.rb
|
1032
|
-
- spec/internal/db/migrate/20140131175514_create_trophies.rb
|
1033
|
-
- spec/internal/db/migrate/20140131175536_create_mailboxer.mailboxer_engine.rb
|
1034
|
-
- spec/internal/db/migrate/20140131175537_add_notified_object.mailboxer_engine.rb
|
1035
|
-
- spec/internal/db/migrate/20140131175538_add_notification_code.mailboxer_engine.rb
|
1036
|
-
- spec/internal/db/migrate/20140131175539_add_attachments.mailboxer_engine.rb
|
1037
|
-
- spec/internal/db/migrate/20140131175540_rename_receipts_read.mailboxer_engine.rb
|
1038
|
-
- spec/internal/db/migrate/20140131175541_add_global_notification_support.mailboxer_engine.rb
|
1039
|
-
- spec/internal/db/migrate/20140131175545_add_terms_of_service_to_user.curate_engine.rb
|
1040
|
-
- spec/internal/db/migrate/20140131175546_add_user_force_update_profile.curate_engine.rb
|
1041
|
-
- spec/internal/db/migrate/20140131175547_create_help_requests.curate_engine.rb
|
1042
|
-
- spec/internal/db/migrate/20140131175548_add_repository_id_to_user.curate_engine.rb
|
1043
|
-
- spec/internal/db/migrate/20140131175549_create_curate_proxy_deposit_rights.curate_engine.rb
|
1044
|
-
- spec/internal/db/migrate/20140131175550_change_display_name_to_name.curate_engine.rb
|
1045
986
|
- spec/internal/db/schema.rb
|
1046
987
|
- spec/internal/db/seeds.rb
|
1047
988
|
- spec/internal/db/test.sqlite3
|
1048
|
-
- spec/internal/fedora_conf/conf/development/fedora.fcfg
|
1049
|
-
- spec/internal/fedora_conf/conf/test/fedora.fcfg
|
1050
989
|
- spec/internal/Gemfile
|
1051
990
|
- spec/internal/Gemfile.lock
|
1052
991
|
- spec/internal/lib/generators/test_app_generator.rb
|
@@ -1058,10 +997,6 @@ files:
|
|
1058
997
|
- spec/internal/public/robots.txt
|
1059
998
|
- spec/internal/Rakefile
|
1060
999
|
- spec/internal/README.rdoc
|
1061
|
-
- spec/internal/solr_conf/conf/schema.xml
|
1062
|
-
- spec/internal/solr_conf/conf/solrconfig.xml
|
1063
|
-
- spec/internal/solr_conf/solr.xml
|
1064
|
-
- spec/internal/test/models/user_test.rb
|
1065
1000
|
- spec/internal/test/test_helper.rb
|
1066
1001
|
- spec/lib/curate/configuration_spec.rb
|
1067
1002
|
- spec/lib/curate/date_formatter_spec.rb
|
@@ -1094,6 +1029,7 @@ files:
|
|
1094
1029
|
- spec/repository_models/generic_work_spec.rb
|
1095
1030
|
- spec/repository_models/image_spec.rb
|
1096
1031
|
- spec/repository_models/linked_resource_spec.rb
|
1032
|
+
- spec/repository_models/organization_spec.rb
|
1097
1033
|
- spec/repository_models/person_spec.rb
|
1098
1034
|
- spec/repository_models/profile_section_spec.rb
|
1099
1035
|
- spec/repository_models/profile_spec.rb
|
@@ -1195,6 +1131,7 @@ test_files:
|
|
1195
1131
|
- spec/controllers/common_objects_controller_spec.rb
|
1196
1132
|
- spec/controllers/curate/collections_controller_spec.rb
|
1197
1133
|
- spec/controllers/curate/depositors_controller_spec.rb
|
1134
|
+
- spec/controllers/curate/organizations_controller_spec.rb
|
1198
1135
|
- spec/controllers/curate/people_controller_spec.rb
|
1199
1136
|
- spec/controllers/curate/user_profiles_controller_spec.rb
|
1200
1137
|
- spec/controllers/curation_concern/articles_controller_spec.rb
|
@@ -1223,6 +1160,7 @@ test_files:
|
|
1223
1160
|
- spec/factories/help_requests_factory.rb
|
1224
1161
|
- spec/factories/images_factory.rb
|
1225
1162
|
- spec/factories/linked_resources_factory.rb
|
1163
|
+
- spec/factories/organizations_factory.rb
|
1226
1164
|
- spec/factories/person.rb
|
1227
1165
|
- spec/features/adding_items_to_collections.rb
|
1228
1166
|
- spec/features/adding_section_to_profile.rb
|
@@ -1253,22 +1191,10 @@ test_files:
|
|
1253
1191
|
- spec/inputs/composite_input_spec.rb
|
1254
1192
|
- spec/inputs/multi_value_input_spec.rb
|
1255
1193
|
- spec/inputs/multi_value_with_elements_input_spec.rb
|
1256
|
-
- spec/internal/app/assets/images/blacklight/bg.png
|
1257
|
-
- spec/internal/app/assets/images/blacklight/border.png
|
1258
|
-
- spec/internal/app/assets/images/blacklight/bul_sq_gry.gif
|
1259
|
-
- spec/internal/app/assets/images/blacklight/checkmark.gif
|
1260
|
-
- spec/internal/app/assets/images/blacklight/logo.png
|
1261
|
-
- spec/internal/app/assets/images/blacklight/magnifying_glass.gif
|
1262
|
-
- spec/internal/app/assets/images/blacklight/remove.gif
|
1263
|
-
- spec/internal/app/assets/images/blacklight/separator.gif
|
1264
|
-
- spec/internal/app/assets/images/blacklight/start_over.gif
|
1265
1194
|
- spec/internal/app/assets/javascripts/application.js
|
1266
1195
|
- spec/internal/app/assets/stylesheets/application.css
|
1267
1196
|
- spec/internal/app/controllers/application_controller.rb
|
1268
1197
|
- spec/internal/app/helpers/application_helper.rb
|
1269
|
-
- spec/internal/app/models/ability.rb
|
1270
|
-
- spec/internal/app/models/solr_document.rb
|
1271
|
-
- spec/internal/app/models/user.rb
|
1272
1198
|
- spec/internal/app/views/layouts/application.html.erb
|
1273
1199
|
- spec/internal/bin/bundle
|
1274
1200
|
- spec/internal/bin/rails
|
@@ -1276,87 +1202,24 @@ test_files:
|
|
1276
1202
|
- spec/internal/config/application.rb
|
1277
1203
|
- spec/internal/config/boot.rb
|
1278
1204
|
- spec/internal/config/database.yml
|
1279
|
-
- spec/internal/config/doi.yml
|
1280
1205
|
- spec/internal/config/environment.rb
|
1281
1206
|
- spec/internal/config/environments/development.rb
|
1282
1207
|
- spec/internal/config/environments/production.rb
|
1283
1208
|
- spec/internal/config/environments/test.rb
|
1284
|
-
- spec/internal/config/fedora.yml
|
1285
|
-
- spec/internal/config/initializers/action_dispatch_http_upload_monkey_patch.rb
|
1286
1209
|
- spec/internal/config/initializers/backtrace_silencers.rb
|
1287
|
-
- spec/internal/config/initializers/curate_config.rb
|
1288
|
-
- spec/internal/config/initializers/devise.rb
|
1289
1210
|
- spec/internal/config/initializers/filter_parameter_logging.rb
|
1290
|
-
- spec/internal/config/initializers/hydra-remote_identifier_config.rb
|
1291
|
-
- spec/internal/config/initializers/hydra_config.rb
|
1292
1211
|
- spec/internal/config/initializers/inflections.rb
|
1293
|
-
- spec/internal/config/initializers/mailboxer.rb
|
1294
1212
|
- spec/internal/config/initializers/mime_types.rb
|
1295
|
-
- spec/internal/config/initializers/redis_config.rb
|
1296
|
-
- spec/internal/config/initializers/resque_admin.rb
|
1297
|
-
- spec/internal/config/initializers/resque_config.rb
|
1298
1213
|
- spec/internal/config/initializers/secret_token.rb
|
1299
1214
|
- spec/internal/config/initializers/session_store.rb
|
1300
|
-
- spec/internal/config/initializers/sufia.rb
|
1301
1215
|
- spec/internal/config/initializers/wrap_parameters.rb
|
1302
|
-
- spec/internal/config/jetty.yml
|
1303
|
-
- spec/internal/config/locales/devise.en.yml
|
1304
1216
|
- spec/internal/config/locales/en.yml
|
1305
|
-
- spec/internal/config/recipients_list.yml
|
1306
|
-
- spec/internal/config/redis.yml
|
1307
|
-
- spec/internal/config/role_map_cucumber.yml
|
1308
|
-
- spec/internal/config/role_map_development.yml
|
1309
|
-
- spec/internal/config/role_map_production.yml
|
1310
|
-
- spec/internal/config/role_map_test.yml
|
1311
1217
|
- spec/internal/config/routes.rb
|
1312
|
-
- spec/internal/config/solr.yml
|
1313
|
-
- spec/internal/config/SolrMarc/config-test.properties
|
1314
|
-
- spec/internal/config/SolrMarc/config.properties
|
1315
|
-
- spec/internal/config/SolrMarc/index.properties
|
1316
|
-
- spec/internal/config/SolrMarc/index_scripts/dewey.bsh
|
1317
|
-
- spec/internal/config/SolrMarc/index_scripts/format.bsh
|
1318
|
-
- spec/internal/config/SolrMarc/translation_maps/callnumber_map.properties
|
1319
|
-
- spec/internal/config/SolrMarc/translation_maps/composition_era_map.properties
|
1320
|
-
- spec/internal/config/SolrMarc/translation_maps/country_map.properties
|
1321
|
-
- spec/internal/config/SolrMarc/translation_maps/format_map.properties
|
1322
|
-
- spec/internal/config/SolrMarc/translation_maps/instrument_map.properties
|
1323
|
-
- spec/internal/config/SolrMarc/translation_maps/language_map.properties
|
1324
|
-
- spec/internal/config/SolrMarc/translation_maps/README_MAPS
|
1325
1218
|
- spec/internal/config.ru
|
1326
1219
|
- spec/internal/db/development.sqlite3
|
1327
|
-
- spec/internal/db/migrate/20140131175455_devise_create_users.rb
|
1328
|
-
- spec/internal/db/migrate/20140131175500_add_devise_guests_to_users.rb
|
1329
|
-
- spec/internal/db/migrate/20140131175501_create_searches.rb
|
1330
|
-
- spec/internal/db/migrate/20140131175502_create_bookmarks.rb
|
1331
|
-
- spec/internal/db/migrate/20140131175503_remove_editable_fields_from_bookmarks.rb
|
1332
|
-
- spec/internal/db/migrate/20140131175504_add_user_types_to_bookmarks_searches.rb
|
1333
|
-
- spec/internal/db/migrate/20140131175505_acts_as_follower_migration.rb
|
1334
|
-
- spec/internal/db/migrate/20140131175506_add_social_to_users.rb
|
1335
|
-
- spec/internal/db/migrate/20140131175507_create_single_use_links.rb
|
1336
|
-
- spec/internal/db/migrate/20140131175508_add_ldap_attrs_to_user.rb
|
1337
|
-
- spec/internal/db/migrate/20140131175509_add_avatars_to_users.rb
|
1338
|
-
- spec/internal/db/migrate/20140131175510_create_checksum_audit_logs.rb
|
1339
|
-
- spec/internal/db/migrate/20140131175511_create_version_committers.rb
|
1340
|
-
- spec/internal/db/migrate/20140131175512_add_groups_to_users.rb
|
1341
|
-
- spec/internal/db/migrate/20140131175513_create_local_authorities.rb
|
1342
|
-
- spec/internal/db/migrate/20140131175514_create_trophies.rb
|
1343
|
-
- spec/internal/db/migrate/20140131175536_create_mailboxer.mailboxer_engine.rb
|
1344
|
-
- spec/internal/db/migrate/20140131175537_add_notified_object.mailboxer_engine.rb
|
1345
|
-
- spec/internal/db/migrate/20140131175538_add_notification_code.mailboxer_engine.rb
|
1346
|
-
- spec/internal/db/migrate/20140131175539_add_attachments.mailboxer_engine.rb
|
1347
|
-
- spec/internal/db/migrate/20140131175540_rename_receipts_read.mailboxer_engine.rb
|
1348
|
-
- spec/internal/db/migrate/20140131175541_add_global_notification_support.mailboxer_engine.rb
|
1349
|
-
- spec/internal/db/migrate/20140131175545_add_terms_of_service_to_user.curate_engine.rb
|
1350
|
-
- spec/internal/db/migrate/20140131175546_add_user_force_update_profile.curate_engine.rb
|
1351
|
-
- spec/internal/db/migrate/20140131175547_create_help_requests.curate_engine.rb
|
1352
|
-
- spec/internal/db/migrate/20140131175548_add_repository_id_to_user.curate_engine.rb
|
1353
|
-
- spec/internal/db/migrate/20140131175549_create_curate_proxy_deposit_rights.curate_engine.rb
|
1354
|
-
- spec/internal/db/migrate/20140131175550_change_display_name_to_name.curate_engine.rb
|
1355
1220
|
- spec/internal/db/schema.rb
|
1356
1221
|
- spec/internal/db/seeds.rb
|
1357
1222
|
- spec/internal/db/test.sqlite3
|
1358
|
-
- spec/internal/fedora_conf/conf/development/fedora.fcfg
|
1359
|
-
- spec/internal/fedora_conf/conf/test/fedora.fcfg
|
1360
1223
|
- spec/internal/Gemfile
|
1361
1224
|
- spec/internal/Gemfile.lock
|
1362
1225
|
- spec/internal/lib/generators/test_app_generator.rb
|
@@ -1368,10 +1231,6 @@ test_files:
|
|
1368
1231
|
- spec/internal/public/robots.txt
|
1369
1232
|
- spec/internal/Rakefile
|
1370
1233
|
- spec/internal/README.rdoc
|
1371
|
-
- spec/internal/solr_conf/conf/schema.xml
|
1372
|
-
- spec/internal/solr_conf/conf/solrconfig.xml
|
1373
|
-
- spec/internal/solr_conf/solr.xml
|
1374
|
-
- spec/internal/test/models/user_test.rb
|
1375
1234
|
- spec/internal/test/test_helper.rb
|
1376
1235
|
- spec/lib/curate/configuration_spec.rb
|
1377
1236
|
- spec/lib/curate/date_formatter_spec.rb
|
@@ -1404,6 +1263,7 @@ test_files:
|
|
1404
1263
|
- spec/repository_models/generic_work_spec.rb
|
1405
1264
|
- spec/repository_models/image_spec.rb
|
1406
1265
|
- spec/repository_models/linked_resource_spec.rb
|
1266
|
+
- spec/repository_models/organization_spec.rb
|
1407
1267
|
- spec/repository_models/person_spec.rb
|
1408
1268
|
- spec/repository_models/profile_section_spec.rb
|
1409
1269
|
- spec/repository_models/profile_spec.rb
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class Ability
|
2
|
-
include Hydra::Ability
|
3
|
-
|
4
|
-
include Curate::Ability
|
5
|
-
|
6
|
-
# Define any customized permissions here.
|
7
|
-
def custom_permissions
|
8
|
-
# Limits deleting objects to a the admin user
|
9
|
-
#
|
10
|
-
# if current_user.admin?
|
11
|
-
# can [:destroy], ActiveFedora::Base
|
12
|
-
# end
|
13
|
-
|
14
|
-
# Limits creating new objects to a specific group
|
15
|
-
#
|
16
|
-
# if user_groups.include? 'special_group'
|
17
|
-
# can [:create], ActiveFedora::Base
|
18
|
-
# end
|
19
|
-
end
|
20
|
-
end
|