enju_flower 0.1.0.pre11 → 0.1.0.pre12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/patrons.html.erb +2 -2
- data/app/views/manifestations/_index_form_contributor.html.erb +1 -1
- data/app/views/manifestations/_index_form_creator.html.erb +1 -1
- data/app/views/manifestations/_index_form_publisher.html.erb +1 -1
- data/app/views/manifestations/_manifestation_list.html.erb +6 -6
- data/app/views/manifestations/_show_creators.html.erb +4 -4
- data/app/views/manifestations/_show_creators.mobile.erb +4 -4
- data/app/views/manifestations/_title.html.erb +3 -3
- data/app/views/manifestations/_title.mobile.erb +3 -3
- data/app/views/manifestations/index.atom.builder +2 -2
- data/app/views/manifestations/index.html.erb +3 -3
- data/app/views/manifestations/index.opds.builder +2 -2
- data/app/views/manifestations/index.sru.builder +6 -6
- data/lib/enju_flower/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +5 -5
- data/spec/dummy/app/models/ability.rb +31 -31
- data/spec/dummy/app/models/{local_patron.rb → local_agent.rb} +1 -1
- data/spec/dummy/app/models/user.rb +5 -99
- data/spec/dummy/config/environments/test.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +8 -8
- data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
- data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
- data/spec/dummy/db/migrate/035_create_reserves.rb +1 -1
- data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
- data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
- data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -2
- data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
- data/spec/dummy/db/schema.rb +152 -140
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/{_1g9.frq → _23i.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_1g9.nrm → _23i.nrm} +1 -1
- data/spec/dummy/solr/data/test/index/{_1g9.prx → _23i.prx} +0 -0
- data/spec/dummy/solr/data/test/index/{_1g9.tii → _23i.tii} +0 -0
- data/spec/dummy/solr/data/test/index/{_1g9.tis → _23i.tis} +0 -0
- data/spec/dummy/solr/data/test/index/{_1gb.frq → _23k.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_1gb.nrm → _23k.nrm} +1 -1
- data/spec/dummy/solr/data/test/index/{_1gb.prx → _23k.prx} +0 -0
- data/spec/dummy/solr/data/test/index/{_1gb.tii → _23k.tii} +0 -0
- data/spec/dummy/solr/data/test/index/{_1gb.tis → _23k.tis} +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_2u7 +0 -0
- data/spec/factories/{patron.rb → agent.rb} +3 -3
- data/spec/factories/agent_relationship.rb +6 -0
- data/spec/factories/agent_relationship_type.rb +5 -0
- data/spec/factories/agent_type.rb +5 -0
- data/spec/factories/create.rb +1 -1
- data/spec/factories/donate.rb +1 -1
- data/spec/factories/library.rb +13 -0
- data/spec/factories/own.rb +1 -1
- data/spec/factories/produce.rb +1 -1
- data/spec/factories/realize.rb +1 -1
- data/spec/factories/user.rb +33 -11
- data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
- data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
- data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
- data/spec/fixtures/{patrons.yml → agents.yml} +47 -47
- data/spec/fixtures/creates.yml +8 -8
- data/spec/fixtures/donates.yml +4 -4
- data/spec/fixtures/owns.yml +3 -3
- data/spec/fixtures/picture_files.yml +1 -1
- data/spec/fixtures/produces.yml +20 -20
- data/spec/fixtures/realizes.yml +11 -11
- metadata +103 -107
- data/spec/dummy/app/mailers/notifier.rb +0 -40
- data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
- data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
- data/spec/dummy/solr/data/test/index/segments_1zb +0 -0
- data/spec/factories/patron_relationship.rb +0 -6
- data/spec/factories/patron_relationship_type.rb +0 -5
- data/spec/factories/patron_type.rb +0 -5
- data/spec/fixtures/patron_import_files.yml +0 -47
- data/spec/fixtures/patron_import_results.yml +0 -29
- /data/spec/dummy/solr/data/test/index/{_1g9.fdt → _23i.fdt} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1g9.fdx → _23i.fdx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1g9.fnm → _23i.fnm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.fdt → _23j.fdt} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.fdx → _23j.fdx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.fnm → _23j.fnm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.frq → _23j.frq} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.nrm → _23j.nrm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.prx → _23j.prx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.tii → _23j.tii} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1ga.tis → _23j.tis} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1gb.fdt → _23k.fdt} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1gb.fdx → _23k.fdx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_1gb.fnm → _23k.fnm} +0 -0
Binary file
|
Binary file
|
Binary file
|
@@ -1,13 +1,13 @@
|
|
1
1
|
FactoryGirl.define do
|
2
|
-
factory :
|
2
|
+
factory :agent do |f|
|
3
3
|
f.sequence(:full_name){|n| "full_name_#{n}"}
|
4
|
-
f.
|
4
|
+
f.agent_type_id{AgentType.find_by_name('Person').id}
|
5
5
|
f.country_id{Country.first.id}
|
6
6
|
f.language_id{Language.first.id}
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
FactoryGirl.define do
|
11
|
-
factory :
|
11
|
+
factory :invalid_agent, :class => Agent do |f|
|
12
12
|
end
|
13
13
|
end
|
data/spec/factories/create.rb
CHANGED
data/spec/factories/donate.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :library do |f|
|
3
|
+
f.sequence(:name){|n| "library#{n}"}
|
4
|
+
f.sequence(:short_display_name){|n| "library_#{n}"}
|
5
|
+
f.library_group_id{LibraryGroup.first.id}
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
FactoryGirl.define do
|
10
|
+
factory :invalid_library, :class => Library do |f|
|
11
|
+
f.library_group_id{LibraryGroup.first.id}
|
12
|
+
end
|
13
|
+
end
|
data/spec/factories/own.rb
CHANGED
data/spec/factories/produce.rb
CHANGED
data/spec/factories/realize.rb
CHANGED
data/spec/factories/user.rb
CHANGED
@@ -2,34 +2,56 @@ FactoryGirl.define do
|
|
2
2
|
factory :admin, :class => User do |f|
|
3
3
|
f.sequence(:username){|n| "admin_#{n}"}
|
4
4
|
f.sequence(:email){|n| "admin_#{n}@example.jp"}
|
5
|
-
f.
|
5
|
+
f.email_confirmation{|u| u.email}
|
6
|
+
f.library_id{FactoryGirl.create(:library).id}
|
6
7
|
f.password 'adminpassword'
|
7
8
|
f.password_confirmation 'adminpassword'
|
8
|
-
f.
|
9
|
-
f.
|
10
|
-
f.
|
9
|
+
f.user_group_id{UserGroup.where(:name => 'User').first.id}
|
10
|
+
f.required_role_id{Role.find_by_name('User').id}
|
11
|
+
f.locale 'ja'
|
12
|
+
f.after(:create) do |user|
|
13
|
+
user_has_role = UserHasRole.new
|
14
|
+
user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('Administrator').id})
|
15
|
+
user_has_role.save
|
16
|
+
user.reload
|
17
|
+
end
|
11
18
|
end
|
12
19
|
|
13
20
|
factory :librarian, :class => User do |f|
|
14
21
|
f.sequence(:username){|n| "librarian_#{n}"}
|
15
22
|
f.sequence(:email){|n| "librarian_#{n}@example.jp"}
|
16
|
-
f.
|
23
|
+
f.email_confirmation{|u| u.email}
|
24
|
+
f.library_id{FactoryGirl.create(:library).id}
|
17
25
|
f.password 'librarianpassword'
|
18
26
|
f.password_confirmation 'librarianpassword'
|
19
|
-
f.
|
20
|
-
f.
|
21
|
-
f.
|
27
|
+
f.user_group_id{UserGroup.where(:name => 'User').first.id}
|
28
|
+
f.required_role_id{Role.find_by_name('User').id}
|
29
|
+
f.locale 'ja'
|
30
|
+
f.after(:create) do |user|
|
31
|
+
user_has_role = UserHasRole.new
|
32
|
+
user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('Librarian').id})
|
33
|
+
user_has_role.save
|
34
|
+
user.reload
|
35
|
+
end
|
22
36
|
end
|
23
37
|
|
24
38
|
factory :user, :class => User do |f|
|
25
39
|
f.sequence(:username){|n| "user_#{n}"}
|
26
40
|
f.sequence(:email){|n| "user_#{n}@example.jp"}
|
27
|
-
f.
|
41
|
+
f.email_confirmation{|u| u.email}
|
42
|
+
f.library_id{FactoryGirl.create(:library).id}
|
28
43
|
f.password 'userpassword'
|
29
44
|
f.password_confirmation 'userpassword'
|
30
|
-
f.
|
31
|
-
f.
|
45
|
+
f.user_group_id{UserGroup.where(:name => '(not specified)').first.id}
|
46
|
+
f.required_role_id{Role.find_by_name('User').id}
|
47
|
+
f.locale 'ja'
|
32
48
|
f.sequence(:user_number){|n| "user_number_#{n}"}
|
49
|
+
f.after(:create) do |user|
|
50
|
+
user_has_role = UserHasRole.new
|
51
|
+
user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('User').id})
|
52
|
+
user_has_role.save
|
53
|
+
user.reload
|
54
|
+
end
|
33
55
|
end
|
34
56
|
|
35
57
|
factory :invalid_user, :class => User do |f|
|
@@ -1,18 +1,18 @@
|
|
1
1
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
2
|
|
3
|
-
|
3
|
+
agent_relationship_type_00001:
|
4
4
|
id: 1
|
5
5
|
name: See also
|
6
6
|
display_name: See also
|
7
7
|
note:
|
8
8
|
position: 1
|
9
|
-
|
9
|
+
agent_relationship_type_00002:
|
10
10
|
id: 2
|
11
11
|
name: Member
|
12
12
|
display_name: Member
|
13
13
|
note:
|
14
14
|
position: 2
|
15
|
-
|
15
|
+
agent_relationship_type_00003:
|
16
16
|
id: 3
|
17
17
|
name: Child
|
18
18
|
display_name: Child
|
@@ -21,7 +21,7 @@ patron_relationship_type_00003:
|
|
21
21
|
|
22
22
|
# == Schema Information
|
23
23
|
#
|
24
|
-
# Table name:
|
24
|
+
# Table name: agent_relationship_types
|
25
25
|
#
|
26
26
|
# id :integer not null, primary key
|
27
27
|
# name :string(255) not null
|
@@ -3,21 +3,21 @@
|
|
3
3
|
one:
|
4
4
|
parent_id: 1
|
5
5
|
child_id: 2
|
6
|
-
|
6
|
+
agent_relationship_type_id: 1
|
7
7
|
|
8
8
|
two:
|
9
9
|
parent_id: 2
|
10
10
|
child_id: 3
|
11
|
-
|
11
|
+
agent_relationship_type_id: 1
|
12
12
|
|
13
13
|
# == Schema Information
|
14
14
|
#
|
15
|
-
# Table name:
|
15
|
+
# Table name: agent_relationships
|
16
16
|
#
|
17
17
|
# id :integer not null, primary key
|
18
18
|
# parent_id :integer
|
19
19
|
# child_id :integer
|
20
|
-
#
|
20
|
+
# agent_relationship_type_id :integer
|
21
21
|
# created_at :datetime not null
|
22
22
|
# updated_at :datetime not null
|
23
23
|
# position :integer
|
@@ -1,19 +1,19 @@
|
|
1
1
|
---
|
2
|
-
|
2
|
+
agent_type_00001:
|
3
3
|
id: 1
|
4
4
|
name: Person
|
5
5
|
display_name: Person
|
6
6
|
note:
|
7
7
|
position: 1
|
8
8
|
|
9
|
-
|
9
|
+
agent_type_00002:
|
10
10
|
id: 2
|
11
11
|
name: CorporateBody
|
12
12
|
display_name: CorporateBody
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
|
16
|
-
|
16
|
+
agent_type_00003:
|
17
17
|
id: 3
|
18
18
|
name: Conference
|
19
19
|
display_name: Conference
|
@@ -22,7 +22,7 @@ patron_type_00003:
|
|
22
22
|
|
23
23
|
# == Schema Information
|
24
24
|
#
|
25
|
-
# Table name:
|
25
|
+
# Table name: agent_types
|
26
26
|
#
|
27
27
|
# id :integer not null, primary key
|
28
28
|
# name :string(255) not null
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
|
2
|
+
agent_00001:
|
3
3
|
place: ""
|
4
4
|
last_name: Administrator
|
5
5
|
first_name:
|
@@ -12,11 +12,11 @@ patron_00001:
|
|
12
12
|
address_1:
|
13
13
|
language_id: 1
|
14
14
|
country_id: 1
|
15
|
-
|
15
|
+
agent_type_id: 1
|
16
16
|
required_role_id: 1
|
17
17
|
created_at: 2007-11-19 17:06:06.507237 +09:00
|
18
18
|
user_id: 1
|
19
|
-
|
19
|
+
agent_00002:
|
20
20
|
place: ""
|
21
21
|
last_name: Librarian1
|
22
22
|
first_name:
|
@@ -29,11 +29,11 @@ patron_00002:
|
|
29
29
|
address_1:
|
30
30
|
language_id: 1
|
31
31
|
country_id: 1
|
32
|
-
|
32
|
+
agent_type_id: 1
|
33
33
|
required_role_id: 4
|
34
34
|
created_at: 2007-11-19 17:06:07.724517 +09:00
|
35
35
|
user_id: 2
|
36
|
-
|
36
|
+
agent_00003:
|
37
37
|
place:
|
38
38
|
last_name: Kosuke
|
39
39
|
first_name: Tanabe
|
@@ -46,11 +46,11 @@ patron_00003:
|
|
46
46
|
address_1:
|
47
47
|
language_id: 1
|
48
48
|
country_id: 1
|
49
|
-
|
49
|
+
agent_type_id: 1
|
50
50
|
required_role_id: 3
|
51
51
|
created_at: 2007-12-04 16:25:01.523618 +09:00
|
52
52
|
user_id: 3
|
53
|
-
|
53
|
+
agent_00004:
|
54
54
|
place:
|
55
55
|
last_name: Librarian2
|
56
56
|
first_name:
|
@@ -63,11 +63,11 @@ patron_00004:
|
|
63
63
|
address_1:
|
64
64
|
language_id: 1
|
65
65
|
country_id: 1
|
66
|
-
|
66
|
+
agent_type_id: 1
|
67
67
|
required_role_id: 1
|
68
68
|
created_at: 2007-12-04 16:25:01.785027 +09:00
|
69
69
|
user_id: 4
|
70
|
-
|
70
|
+
agent_00005:
|
71
71
|
place: ""
|
72
72
|
last_name: User2
|
73
73
|
first_name:
|
@@ -80,15 +80,15 @@ patron_00005:
|
|
80
80
|
address_1:
|
81
81
|
language_id: 1
|
82
82
|
country_id: 1
|
83
|
-
|
83
|
+
agent_type_id: 1
|
84
84
|
required_role_id: 2
|
85
85
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
86
86
|
user_id: 5
|
87
|
-
|
87
|
+
agent_00006:
|
88
88
|
place: ""
|
89
|
-
last_name: New
|
89
|
+
last_name: New agent 1
|
90
90
|
first_name:
|
91
|
-
full_name: New
|
91
|
+
full_name: New agent 1
|
92
92
|
updated_at: 2007-11-21 22:02:35.579396 +09:00
|
93
93
|
other_designation: ""
|
94
94
|
id: 6
|
@@ -97,14 +97,14 @@ patron_00006:
|
|
97
97
|
address_1:
|
98
98
|
language_id: 1
|
99
99
|
country_id: 1
|
100
|
-
|
100
|
+
agent_type_id: 1
|
101
101
|
required_role_id: 1
|
102
102
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
103
|
-
|
103
|
+
agent_00007:
|
104
104
|
place: ""
|
105
|
-
last_name: New
|
105
|
+
last_name: New agent 2
|
106
106
|
first_name:
|
107
|
-
full_name: New
|
107
|
+
full_name: New agent 2
|
108
108
|
updated_at: 2007-11-21 22:02:35.579396 +09:00
|
109
109
|
other_designation: ""
|
110
110
|
id: 7
|
@@ -113,14 +113,14 @@ patron_00007:
|
|
113
113
|
address_1:
|
114
114
|
language_id: 1
|
115
115
|
country_id: 1
|
116
|
-
|
116
|
+
agent_type_id: 1
|
117
117
|
required_role_id: 1
|
118
118
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
119
|
-
|
119
|
+
agent_00008:
|
120
120
|
place: ""
|
121
|
-
last_name: New
|
121
|
+
last_name: New agent 3
|
122
122
|
first_name:
|
123
|
-
full_name: New
|
123
|
+
full_name: New agent 3
|
124
124
|
updated_at: 2007-11-21 22:02:35.579396 +09:00
|
125
125
|
other_designation: ""
|
126
126
|
id: 8
|
@@ -129,14 +129,14 @@ patron_00008:
|
|
129
129
|
address_1:
|
130
130
|
language_id: 1
|
131
131
|
country_id: 1
|
132
|
-
|
132
|
+
agent_type_id: 1
|
133
133
|
required_role_id: 1
|
134
134
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
135
|
-
|
135
|
+
agent_00009:
|
136
136
|
place: ""
|
137
|
-
last_name: New
|
137
|
+
last_name: New agent 4
|
138
138
|
first_name:
|
139
|
-
full_name: New
|
139
|
+
full_name: New agent 4
|
140
140
|
updated_at: 2007-11-21 22:02:35.579396 +09:00
|
141
141
|
other_designation: ""
|
142
142
|
id: 9
|
@@ -145,14 +145,14 @@ patron_00009:
|
|
145
145
|
address_1:
|
146
146
|
language_id: 1
|
147
147
|
country_id: 1
|
148
|
-
|
148
|
+
agent_type_id: 1
|
149
149
|
required_role_id: 1
|
150
150
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
151
|
-
|
151
|
+
agent_00010:
|
152
152
|
place: ""
|
153
|
-
last_name: New
|
153
|
+
last_name: New agent 5
|
154
154
|
first_name:
|
155
|
-
full_name: New
|
155
|
+
full_name: New agent 5
|
156
156
|
updated_at: 2007-11-21 22:02:35.579396 +09:00
|
157
157
|
other_designation: ""
|
158
158
|
id: 10
|
@@ -161,10 +161,10 @@ patron_00010:
|
|
161
161
|
address_1:
|
162
162
|
language_id: 1
|
163
163
|
country_id: 1
|
164
|
-
|
164
|
+
agent_type_id: 1
|
165
165
|
required_role_id: 1
|
166
166
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
167
|
-
|
167
|
+
agent_00011:
|
168
168
|
place: ""
|
169
169
|
last_name: User3
|
170
170
|
first_name:
|
@@ -177,11 +177,11 @@ patron_00011:
|
|
177
177
|
address_1:
|
178
178
|
language_id: 1
|
179
179
|
country_id: 1
|
180
|
-
|
180
|
+
agent_type_id: 1
|
181
181
|
required_role_id: 1
|
182
182
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
183
183
|
user_id: 6
|
184
|
-
|
184
|
+
agent_00101:
|
185
185
|
place: ""
|
186
186
|
last_name: テスト名字
|
187
187
|
first_name: テスト名前
|
@@ -194,10 +194,10 @@ patron_00101:
|
|
194
194
|
address_1:
|
195
195
|
language_id: 1
|
196
196
|
country_id: 1
|
197
|
-
|
197
|
+
agent_type_id: 1
|
198
198
|
required_role_id: 1
|
199
199
|
created_at: 2010-03-03 17:00:00.579396 +09:00
|
200
|
-
|
200
|
+
agent_00102:
|
201
201
|
place: ""
|
202
202
|
last_name:
|
203
203
|
first_name:
|
@@ -210,10 +210,10 @@ patron_00102:
|
|
210
210
|
address_1:
|
211
211
|
language_id: 1
|
212
212
|
country_id: 1
|
213
|
-
|
213
|
+
agent_type_id: 1
|
214
214
|
required_role_id: 1
|
215
215
|
created_at: 2010-03-03 17:00:00.579396 +09:00
|
216
|
-
|
216
|
+
agent_00103:
|
217
217
|
place: ""
|
218
218
|
last_name:
|
219
219
|
first_name:
|
@@ -226,10 +226,10 @@ patron_00103:
|
|
226
226
|
address_1:
|
227
227
|
language_id: 1
|
228
228
|
country_id: 1
|
229
|
-
|
229
|
+
agent_type_id: 1
|
230
230
|
required_role_id: 1
|
231
231
|
created_at: 2010-03-16 19:00:00.579396 +09:00
|
232
|
-
|
232
|
+
agent_00104:
|
233
233
|
place: ""
|
234
234
|
last_name:
|
235
235
|
first_name:
|
@@ -242,10 +242,10 @@ patron_00104:
|
|
242
242
|
address_1:
|
243
243
|
language_id: 1
|
244
244
|
country_id: 1
|
245
|
-
|
245
|
+
agent_type_id: 1
|
246
246
|
required_role_id: 1
|
247
247
|
created_at: 2010-03-16 19:00:00.579396 +09:00
|
248
|
-
|
248
|
+
agent_00201:
|
249
249
|
place: ""
|
250
250
|
last_name:
|
251
251
|
first_name:
|
@@ -258,10 +258,10 @@ patron_00201:
|
|
258
258
|
address_1:
|
259
259
|
language_id: 1
|
260
260
|
country_id: 1
|
261
|
-
|
261
|
+
agent_type_id: 1
|
262
262
|
required_role_id: 1
|
263
263
|
created_at: 2010-03-15 17:00:00.579396 +09:00
|
264
|
-
|
264
|
+
agent_00202:
|
265
265
|
place: ""
|
266
266
|
last_name:
|
267
267
|
first_name:
|
@@ -274,13 +274,13 @@ patron_00202:
|
|
274
274
|
address_1:
|
275
275
|
language_id: 1
|
276
276
|
country_id: 1
|
277
|
-
|
277
|
+
agent_type_id: 1
|
278
278
|
required_role_id: 1
|
279
279
|
created_at: 2010-03-15 17:00:00.579396 +09:00
|
280
280
|
|
281
281
|
# == Schema Information
|
282
282
|
#
|
283
|
-
# Table name:
|
283
|
+
# Table name: agents
|
284
284
|
#
|
285
285
|
# id :integer not null, primary key
|
286
286
|
# user_id :integer
|
@@ -318,7 +318,7 @@ patron_00202:
|
|
318
318
|
# date_of_death :datetime
|
319
319
|
# language_id :integer default(1), not null
|
320
320
|
# country_id :integer default(1), not null
|
321
|
-
#
|
321
|
+
# agent_type_id :integer default(1), not null
|
322
322
|
# lock_version :integer default(0), not null
|
323
323
|
# note :text
|
324
324
|
# required_role_id :integer default(1), not null
|
@@ -329,6 +329,6 @@ patron_00202:
|
|
329
329
|
# full_name_alternative_transcription :text
|
330
330
|
# birth_date :string(255)
|
331
331
|
# death_date :string(255)
|
332
|
-
#
|
332
|
+
# agent_identifier :string(255)
|
333
333
|
#
|
334
334
|
|
data/spec/fixtures/creates.yml
CHANGED
@@ -1,49 +1,49 @@
|
|
1
1
|
---
|
2
2
|
create_00001:
|
3
3
|
updated_at: 2007-12-13 19:56:07.002082 +09:00
|
4
|
-
|
4
|
+
agent_id: 1
|
5
5
|
id: 1
|
6
6
|
work_id: 1
|
7
7
|
position: 1
|
8
8
|
created_at: 2007-12-13 19:56:07.002082 +09:00
|
9
9
|
create_00002:
|
10
10
|
updated_at: 2007-12-13 19:56:48.538796 +09:00
|
11
|
-
|
11
|
+
agent_id: 1
|
12
12
|
id: 2
|
13
13
|
work_id: 2
|
14
14
|
position: 1
|
15
15
|
created_at: 2007-12-13 19:56:48.538796 +09:00
|
16
16
|
create_00003:
|
17
17
|
updated_at: 2007-12-13 19:56:48.538796 +09:00
|
18
|
-
|
18
|
+
agent_id: 2
|
19
19
|
id: 3
|
20
20
|
work_id: 1
|
21
21
|
position: 2
|
22
22
|
created_at: 2007-12-13 19:56:48.538796 +09:00
|
23
23
|
create_00101:
|
24
24
|
updated_at: 2010-03-03 17:00:00.538796 +09:00
|
25
|
-
|
25
|
+
agent_id: 101
|
26
26
|
id: 101
|
27
27
|
work_id: 101
|
28
28
|
position: 2
|
29
29
|
created_at: 2010-03-03 17:00:00.538796 +09:00
|
30
30
|
create_00102:
|
31
31
|
updated_at: 2010-03-16 19:00:00.538796 +09:00
|
32
|
-
|
32
|
+
agent_id: 103
|
33
33
|
id: 102
|
34
34
|
work_id: 102
|
35
35
|
position: 2
|
36
36
|
created_at: 2010-03-16 19:00:00.538796 +09:00
|
37
37
|
create_00103:
|
38
38
|
updated_at: 2010-03-16 19:00:00.538796 +09:00
|
39
|
-
|
39
|
+
agent_id: 103
|
40
40
|
id: 103
|
41
41
|
work_id: 103
|
42
42
|
position: 2
|
43
43
|
created_at: 2010-03-16 19:00:00.538796 +09:00
|
44
44
|
create_00104:
|
45
45
|
updated_at: 2010-03-16 19:00:00.538796 +09:00
|
46
|
-
|
46
|
+
agent_id: 103
|
47
47
|
id: 104
|
48
48
|
work_id: 104
|
49
49
|
position: 2
|
@@ -54,7 +54,7 @@ create_00104:
|
|
54
54
|
# Table name: creates
|
55
55
|
#
|
56
56
|
# id :integer not null, primary key
|
57
|
-
#
|
57
|
+
# agent_id :integer not null
|
58
58
|
# work_id :integer not null
|
59
59
|
# position :integer
|
60
60
|
# created_at :datetime not null
|
data/spec/fixtures/donates.yml
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
donate_00001:
|
3
3
|
item_id: 5
|
4
4
|
updated_at: 2008-02-10 13:24:14.793431 +09:00
|
5
|
-
|
5
|
+
agent_id: 1
|
6
6
|
id: 1
|
7
7
|
created_at: 2008-02-10 13:24:14.793431 +09:00
|
8
8
|
donate_00002:
|
9
9
|
item_id: 6
|
10
10
|
updated_at: 2008-02-10 13:24:14.793431 +09:00
|
11
|
-
|
11
|
+
agent_id: 1
|
12
12
|
id: 2
|
13
13
|
created_at: 2008-02-10 13:24:14.793431 +09:00
|
14
14
|
donate_00003:
|
15
15
|
item_id: 7
|
16
16
|
updated_at: 2008-02-10 13:24:14.793431 +09:00
|
17
|
-
|
17
|
+
agent_id: 2
|
18
18
|
id: 3
|
19
19
|
created_at: 2008-02-10 13:24:14.793431 +09:00
|
20
20
|
|
@@ -23,7 +23,7 @@ donate_00003:
|
|
23
23
|
# Table name: donates
|
24
24
|
#
|
25
25
|
# id :integer not null, primary key
|
26
|
-
#
|
26
|
+
# agent_id :integer not null
|
27
27
|
# item_id :integer not null
|
28
28
|
# created_at :datetime not null
|
29
29
|
# updated_at :datetime not null
|
data/spec/fixtures/owns.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
own_00001:
|
3
3
|
item_id: 1
|
4
4
|
updated_at: 2007-11-21 21:22:57.654360 +09:00
|
5
|
-
|
5
|
+
agent_id: 1
|
6
6
|
id: 1
|
7
7
|
created_at: 2007-11-21 21:22:57.654360 +09:00
|
8
8
|
own_00002:
|
9
9
|
item_id: 2
|
10
10
|
updated_at: 2007-11-21 21:22:13.685287 +09:00
|
11
|
-
|
11
|
+
agent_id: 2
|
12
12
|
id: 2
|
13
13
|
created_at: 2007-11-21 21:22:13.685287 +09:00
|
14
14
|
|
@@ -17,7 +17,7 @@ own_00002:
|
|
17
17
|
# Table name: owns
|
18
18
|
#
|
19
19
|
# id :integer not null, primary key
|
20
|
-
#
|
20
|
+
# agent_id :integer not null
|
21
21
|
# item_id :integer not null
|
22
22
|
# position :integer
|
23
23
|
# created_at :datetime not null
|
@@ -35,7 +35,7 @@ picture_file_00004:
|
|
35
35
|
picture_file_size: 7028
|
36
36
|
id: 4
|
37
37
|
picture_file_name: overlay_spinner_geometry.gif
|
38
|
-
picture_attachable_type:
|
38
|
+
picture_attachable_type: Agent
|
39
39
|
picture_attachable_id: 1
|
40
40
|
created_at: 2007-12-22 15:06:30.464930 +09:00
|
41
41
|
position: 4
|