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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/layouts/patrons.html.erb +2 -2
  3. data/app/views/manifestations/_index_form_contributor.html.erb +1 -1
  4. data/app/views/manifestations/_index_form_creator.html.erb +1 -1
  5. data/app/views/manifestations/_index_form_publisher.html.erb +1 -1
  6. data/app/views/manifestations/_manifestation_list.html.erb +6 -6
  7. data/app/views/manifestations/_show_creators.html.erb +4 -4
  8. data/app/views/manifestations/_show_creators.mobile.erb +4 -4
  9. data/app/views/manifestations/_title.html.erb +3 -3
  10. data/app/views/manifestations/_title.mobile.erb +3 -3
  11. data/app/views/manifestations/index.atom.builder +2 -2
  12. data/app/views/manifestations/index.html.erb +3 -3
  13. data/app/views/manifestations/index.opds.builder +2 -2
  14. data/app/views/manifestations/index.sru.builder +6 -6
  15. data/lib/enju_flower/version.rb +1 -1
  16. data/spec/controllers/manifestations_controller_spec.rb +5 -5
  17. data/spec/dummy/app/models/ability.rb +31 -31
  18. data/spec/dummy/app/models/{local_patron.rb → local_agent.rb} +1 -1
  19. data/spec/dummy/app/models/user.rb +5 -99
  20. data/spec/dummy/config/environments/test.rb +1 -0
  21. data/spec/dummy/db/development.sqlite3 +0 -0
  22. data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +8 -8
  23. data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
  24. data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
  25. data/spec/dummy/db/migrate/035_create_reserves.rb +1 -1
  26. data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
  27. data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
  28. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
  29. data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
  30. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
  31. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -2
  32. data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
  33. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  34. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
  35. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
  36. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  37. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
  38. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
  39. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  40. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  41. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  42. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  43. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  44. data/spec/dummy/db/schema.rb +152 -140
  45. data/spec/dummy/db/test.sqlite3 +0 -0
  46. data/spec/dummy/solr/data/test/index/{_1g9.frq → _23i.frq} +0 -0
  47. data/spec/dummy/solr/data/test/index/{_1g9.nrm → _23i.nrm} +1 -1
  48. data/spec/dummy/solr/data/test/index/{_1g9.prx → _23i.prx} +0 -0
  49. data/spec/dummy/solr/data/test/index/{_1g9.tii → _23i.tii} +0 -0
  50. data/spec/dummy/solr/data/test/index/{_1g9.tis → _23i.tis} +0 -0
  51. data/spec/dummy/solr/data/test/index/{_1gb.frq → _23k.frq} +0 -0
  52. data/spec/dummy/solr/data/test/index/{_1gb.nrm → _23k.nrm} +1 -1
  53. data/spec/dummy/solr/data/test/index/{_1gb.prx → _23k.prx} +0 -0
  54. data/spec/dummy/solr/data/test/index/{_1gb.tii → _23k.tii} +0 -0
  55. data/spec/dummy/solr/data/test/index/{_1gb.tis → _23k.tis} +0 -0
  56. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  57. data/spec/dummy/solr/data/test/index/segments_2u7 +0 -0
  58. data/spec/factories/{patron.rb → agent.rb} +3 -3
  59. data/spec/factories/agent_relationship.rb +6 -0
  60. data/spec/factories/agent_relationship_type.rb +5 -0
  61. data/spec/factories/agent_type.rb +5 -0
  62. data/spec/factories/create.rb +1 -1
  63. data/spec/factories/donate.rb +1 -1
  64. data/spec/factories/library.rb +13 -0
  65. data/spec/factories/own.rb +1 -1
  66. data/spec/factories/produce.rb +1 -1
  67. data/spec/factories/realize.rb +1 -1
  68. data/spec/factories/user.rb +33 -11
  69. data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
  70. data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
  71. data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
  72. data/spec/fixtures/{patrons.yml → agents.yml} +47 -47
  73. data/spec/fixtures/creates.yml +8 -8
  74. data/spec/fixtures/donates.yml +4 -4
  75. data/spec/fixtures/owns.yml +3 -3
  76. data/spec/fixtures/picture_files.yml +1 -1
  77. data/spec/fixtures/produces.yml +20 -20
  78. data/spec/fixtures/realizes.yml +11 -11
  79. metadata +103 -107
  80. data/spec/dummy/app/mailers/notifier.rb +0 -40
  81. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  82. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  83. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  84. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  85. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  86. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  87. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  88. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  89. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
  90. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  91. data/spec/dummy/solr/data/test/index/segments_1zb +0 -0
  92. data/spec/factories/patron_relationship.rb +0 -6
  93. data/spec/factories/patron_relationship_type.rb +0 -5
  94. data/spec/factories/patron_type.rb +0 -5
  95. data/spec/fixtures/patron_import_files.yml +0 -47
  96. data/spec/fixtures/patron_import_results.yml +0 -29
  97. /data/spec/dummy/solr/data/test/index/{_1g9.fdt → _23i.fdt} +0 -0
  98. /data/spec/dummy/solr/data/test/index/{_1g9.fdx → _23i.fdx} +0 -0
  99. /data/spec/dummy/solr/data/test/index/{_1g9.fnm → _23i.fnm} +0 -0
  100. /data/spec/dummy/solr/data/test/index/{_1ga.fdt → _23j.fdt} +0 -0
  101. /data/spec/dummy/solr/data/test/index/{_1ga.fdx → _23j.fdx} +0 -0
  102. /data/spec/dummy/solr/data/test/index/{_1ga.fnm → _23j.fnm} +0 -0
  103. /data/spec/dummy/solr/data/test/index/{_1ga.frq → _23j.frq} +0 -0
  104. /data/spec/dummy/solr/data/test/index/{_1ga.nrm → _23j.nrm} +0 -0
  105. /data/spec/dummy/solr/data/test/index/{_1ga.prx → _23j.prx} +0 -0
  106. /data/spec/dummy/solr/data/test/index/{_1ga.tii → _23j.tii} +0 -0
  107. /data/spec/dummy/solr/data/test/index/{_1ga.tis → _23j.tis} +0 -0
  108. /data/spec/dummy/solr/data/test/index/{_1gb.fdt → _23k.fdt} +0 -0
  109. /data/spec/dummy/solr/data/test/index/{_1gb.fdx → _23k.fdx} +0 -0
  110. /data/spec/dummy/solr/data/test/index/{_1gb.fnm → _23k.fnm} +0 -0
@@ -1,13 +1,13 @@
1
1
  FactoryGirl.define do
2
- factory :patron do |f|
2
+ factory :agent do |f|
3
3
  f.sequence(:full_name){|n| "full_name_#{n}"}
4
- f.patron_type_id{PatronType.find_by_name('Person').id}
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 :invalid_patron, :class => Patron do |f|
11
+ factory :invalid_agent, :class => Agent do |f|
12
12
  end
13
13
  end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :agent_relationship do |f|
3
+ f.parent_id{FactoryGirl.create(:agent).id}
4
+ f.child_id{FactoryGirl.create(:agent).id}
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :agent_relationship_type do |f|
3
+ f.sequence(:name){|n| "agent_relationship_type_#{n}"}
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :agent_type do |f|
3
+ f.sequence(:name){|n| "agent_type_#{n}"}
4
+ end
5
+ end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :create do |f|
3
3
  f.work_id{FactoryGirl.create(:manifestation).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :donate do |f|
3
3
  f.item_id{FactoryGirl.create(:item).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :own do |f|
3
3
  f.item_id{FactoryGirl.create(:item).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :produce do |f|
3
3
  f.manifestation_id{FactoryGirl.create(:manifestation).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :realize do |f|
3
3
  f.expression_id{FactoryGirl.create(:manifestation).id}
4
- f.patron_id{FactoryGirl.create(:patron).id}
4
+ f.agent_id{FactoryGirl.create(:agent).id}
5
5
  end
6
6
  end
@@ -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.role {Role.find_by_name('Administrator')}
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.user_group {UserGroup.first}
9
- f.required_role {Role.find_by_name('User')}
10
- f.sequence(:user_number){|n| "user_number_#{n}"}
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.role {Role.find_by_name('Librarian')}
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.user_group {UserGroup.first}
20
- f.required_role {Role.find_by_name('User')}
21
- f.sequence(:user_number){|n| "user_number_#{n}"}
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.role {Role.find_by_name('User')}
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.user_group {UserGroup.first}
31
- f.required_role {Role.find_by_name('User')}
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
- patron_relationship_type_00001:
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
- patron_relationship_type_00002:
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
- patron_relationship_type_00003:
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: patron_relationship_types
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
- patron_relationship_type_id: 1
6
+ agent_relationship_type_id: 1
7
7
 
8
8
  two:
9
9
  parent_id: 2
10
10
  child_id: 3
11
- patron_relationship_type_id: 1
11
+ agent_relationship_type_id: 1
12
12
 
13
13
  # == Schema Information
14
14
  #
15
- # Table name: patron_relationships
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
- # patron_relationship_type_id :integer
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
- patron_type_00001:
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
- patron_type_00002:
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
- patron_type_00003:
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: patron_types
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
- patron_00001:
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
- patron_type_id: 1
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
- patron_00002:
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
- patron_type_id: 1
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
- patron_00003:
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
- patron_type_id: 1
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
- patron_00004:
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
- patron_type_id: 1
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
- patron_00005:
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
- patron_type_id: 1
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
- patron_00006:
87
+ agent_00006:
88
88
  place: ""
89
- last_name: New patron 1
89
+ last_name: New agent 1
90
90
  first_name:
91
- full_name: New patron 1
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
- patron_type_id: 1
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
- patron_00007:
103
+ agent_00007:
104
104
  place: ""
105
- last_name: New patron 2
105
+ last_name: New agent 2
106
106
  first_name:
107
- full_name: New patron 2
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
- patron_type_id: 1
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
- patron_00008:
119
+ agent_00008:
120
120
  place: ""
121
- last_name: New patron 3
121
+ last_name: New agent 3
122
122
  first_name:
123
- full_name: New patron 3
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
- patron_type_id: 1
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
- patron_00009:
135
+ agent_00009:
136
136
  place: ""
137
- last_name: New patron 4
137
+ last_name: New agent 4
138
138
  first_name:
139
- full_name: New patron 4
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
- patron_type_id: 1
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
- patron_00010:
151
+ agent_00010:
152
152
  place: ""
153
- last_name: New patron 5
153
+ last_name: New agent 5
154
154
  first_name:
155
- full_name: New patron 5
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
- patron_type_id: 1
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
- patron_00011:
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
- patron_type_id: 1
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
- patron_00101:
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
- patron_type_id: 1
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
- patron_00102:
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
- patron_type_id: 1
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
- patron_00103:
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
- patron_type_id: 1
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
- patron_00104:
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
- patron_type_id: 1
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
- patron_00201:
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
- patron_type_id: 1
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
- patron_00202:
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
- patron_type_id: 1
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: patrons
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
- # patron_type_id :integer default(1), not null
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
- # patron_identifier :string(255)
332
+ # agent_identifier :string(255)
333
333
  #
334
334
 
@@ -1,49 +1,49 @@
1
1
  ---
2
2
  create_00001:
3
3
  updated_at: 2007-12-13 19:56:07.002082 +09:00
4
- patron_id: 1
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
- patron_id: 1
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
- patron_id: 2
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
- patron_id: 101
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
- patron_id: 103
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
- patron_id: 103
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
- patron_id: 103
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
- # patron_id :integer not null
57
+ # agent_id :integer not null
58
58
  # work_id :integer not null
59
59
  # position :integer
60
60
  # created_at :datetime not null
@@ -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
- patron_id: 1
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
- patron_id: 1
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
- patron_id: 2
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
- # patron_id :integer not null
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
@@ -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
- patron_id: 1
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
- patron_id: 2
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
- # patron_id :integer not null
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: Patron
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