enju_oai 0.1.0.pre10 → 0.1.0.pre11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/config/initializers/mime_types.rb +1 -1
  3. data/lib/enju_oai/version.rb +1 -1
  4. data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +9 -8
  5. data/spec/dummy/db/migrate/002_devise_create_users.rb +0 -35
  6. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -18
  7. data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
  8. data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
  9. data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
  10. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -3
  11. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  12. data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
  13. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
  14. data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
  15. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
  16. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -1
  17. data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
  18. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  19. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  20. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
  21. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
  22. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  23. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
  24. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  25. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  26. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  27. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  28. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  29. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  30. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  31. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  32. data/spec/dummy/db/migrate/{20100502171926_add_latitude_and_longitude_to_library.rb → 20130412083556_add_latitude_and_longitude_to_library.rb} +1 -6
  33. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -0
  34. data/spec/dummy/db/schema.rb +172 -216
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/solr/conf/schema.xml +1 -0
  37. data/spec/dummy/solr/data/test/index/{_43.frq → _r.frq} +0 -0
  38. data/spec/dummy/solr/data/test/index/{_43.nrm → _r.nrm} +1 -1
  39. data/spec/dummy/solr/data/test/index/{_43.prx → _r.prx} +0 -0
  40. data/spec/dummy/solr/data/test/index/_r.tii +0 -0
  41. data/spec/dummy/solr/data/test/index/{_43.tis → _r.tis} +0 -0
  42. data/spec/dummy/solr/data/test/index/{_44.frq → _s.frq} +0 -0
  43. data/spec/dummy/solr/data/test/index/{_44.prx → _s.prx} +0 -0
  44. data/spec/dummy/solr/data/test/index/_s.tii +0 -0
  45. data/spec/dummy/solr/data/test/index/{_44.tis → _s.tis} +0 -0
  46. data/spec/dummy/solr/data/test/index/{_45.fnm → _t.fnm} +3 -2
  47. data/spec/dummy/solr/data/test/index/_t.frq +0 -0
  48. data/spec/dummy/solr/data/test/index/{_45.nrm → _t.nrm} +1 -1
  49. data/spec/dummy/solr/data/test/index/_t.prx +0 -0
  50. data/spec/dummy/solr/data/test/index/_t.tii +0 -0
  51. data/spec/dummy/solr/data/test/index/_t.tis +0 -0
  52. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  53. data/spec/dummy/solr/data/test/index/segments_15 +0 -0
  54. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  55. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  56. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  57. data/spec/fixtures/{patron_import_files.yml → agent_import_files.yml} +18 -18
  58. data/spec/fixtures/{patron_import_results.yml → agent_import_results.yml} +7 -7
  59. data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
  60. data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
  61. data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
  62. data/spec/fixtures/{patrons.yml → agents.yml} +46 -46
  63. data/spec/fixtures/creates.yml +8 -8
  64. data/spec/fixtures/donates.yml +4 -4
  65. data/spec/fixtures/manifestations.yml +25 -162
  66. data/spec/fixtures/owns.yml +3 -3
  67. data/spec/fixtures/produces.yml +20 -20
  68. data/spec/fixtures/realizes.yml +11 -11
  69. data/spec/fixtures/user_groups.yml +0 -7
  70. metadata +101 -139
  71. data/spec/dummy/app/models/role.rb +0 -46
  72. data/spec/dummy/app/models/user_has_role.rb +0 -4
  73. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  74. data/spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb +0 -11
  75. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  76. data/spec/dummy/db/migrate/20100627193848_add_enju_access_key_to_user.rb +0 -10
  77. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  78. data/spec/dummy/db/migrate/20100919121500_drop_user_email_unique_index.rb +0 -11
  79. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  80. data/spec/dummy/db/migrate/20101103090330_add_title_to_patron.rb +0 -9
  81. data/spec/dummy/db/migrate/20101103090457_rename_manifestation_identifier_to_identifier.rb +0 -9
  82. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +0 -9
  83. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  84. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  85. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  86. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +0 -9
  87. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +0 -12
  88. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +0 -13
  89. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  90. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  91. data/spec/dummy/db/migrate/20110927135845_add_missing_since_to_item.rb +0 -9
  92. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  93. data/spec/dummy/db/migrate/20111103221239_rename_manifestation_identifier_to_manifestation_identifier.rb +0 -9
  94. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  95. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  96. data/spec/dummy/db/migrate/20120413225628_add_fingerprint_to_manifestation.rb +0 -5
  97. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  98. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  99. data/spec/dummy/db/migrate/20120426034355_add_unique_index_to_item_identifier.rb +0 -11
  100. data/spec/dummy/db/migrate/20120426042730_add_unique_index_to_manifestation_identifier.rb +0 -11
  101. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
  102. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  103. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
  104. data/spec/dummy/solr/data/test/index/_43.tii +0 -0
  105. data/spec/dummy/solr/data/test/index/_44.tii +0 -0
  106. data/spec/dummy/solr/data/test/index/_45.frq +0 -0
  107. data/spec/dummy/solr/data/test/index/_45.prx +0 -0
  108. data/spec/dummy/solr/data/test/index/_45.tii +0 -0
  109. data/spec/dummy/solr/data/test/index/_45.tis +0 -0
  110. data/spec/dummy/solr/data/test/index/segments_5v +0 -0
  111. /data/spec/dummy/solr/data/test/index/{_43.fdt → _r.fdt} +0 -0
  112. /data/spec/dummy/solr/data/test/index/{_43.fdx → _r.fdx} +0 -0
  113. /data/spec/dummy/solr/data/test/index/{_43.fnm → _r.fnm} +0 -0
  114. /data/spec/dummy/solr/data/test/index/{_44.fdt → _s.fdt} +0 -0
  115. /data/spec/dummy/solr/data/test/index/{_44.fdx → _s.fdx} +0 -0
  116. /data/spec/dummy/solr/data/test/index/{_44.fnm → _s.fnm} +0 -0
  117. /data/spec/dummy/solr/data/test/index/{_44.nrm → _s.nrm} +0 -0
  118. /data/spec/dummy/solr/data/test/index/{_45.fdt → _t.fdt} +0 -0
  119. /data/spec/dummy/solr/data/test/index/{_45.fdx → _t.fdx} +0 -0
@@ -1,30 +1,30 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
 
3
- patron_import_file_00001:
3
+ agent_import_file_00001:
4
4
  id: 1
5
- patron_import_file_name: MyString
6
- patron_import_file_size: 1
5
+ agent_import_file_name: MyString
6
+ agent_import_file_size: 1
7
7
  user_id: 1
8
- patron_import_content_type: text/csv
8
+ agent_import_content_type: text/csv
9
9
  state: completed
10
- patron_import_file_00002:
10
+ agent_import_file_00002:
11
11
  id: 2
12
- patron_import_file_name: MyString
13
- patron_import_file_size: 1
12
+ agent_import_file_name: MyString
13
+ agent_import_file_size: 1
14
14
  user_id: 1
15
- patron_import_content_type: text/csv
15
+ agent_import_content_type: text/csv
16
16
  state: pending
17
- patron_import_file_00003:
17
+ agent_import_file_00003:
18
18
  id: 3
19
- patron_import_file_name: MyString
20
- patron_import_file_size: 1
19
+ agent_import_file_name: MyString
20
+ agent_import_file_size: 1
21
21
  user_id: 1
22
- patron_import_content_type: text/csv
22
+ agent_import_content_type: text/csv
23
23
  state: pending
24
24
 
25
25
  # == Schema Information
26
26
  #
27
- # Table name: patron_import_files
27
+ # Table name: agent_import_files
28
28
  #
29
29
  # id :integer not null, primary key
30
30
  # parent_id :integer
@@ -34,13 +34,13 @@ patron_import_file_00003:
34
34
  # note :text
35
35
  # executed_at :datetime
36
36
  # state :string(255)
37
- # patron_import_file_name :string(255)
38
- # patron_import_content_type :string(255)
39
- # patron_import_file_size :integer
40
- # patron_import_updated_at :datetime
37
+ # agent_import_file_name :string(255)
38
+ # agent_import_content_type :string(255)
39
+ # agent_import_file_size :integer
40
+ # agent_import_updated_at :datetime
41
41
  # created_at :datetime not null
42
42
  # updated_at :datetime not null
43
- # patron_import_fingerprint :string(255)
43
+ # agent_import_fingerprint :string(255)
44
44
  # error_message :text
45
45
  # edit_mode :string(255)
46
46
  #
@@ -2,25 +2,25 @@
2
2
 
3
3
  one:
4
4
  id: 1
5
- patron_import_file_id: 1
6
- patron_id: 1
5
+ agent_import_file_id: 1
6
+ agent_id: 1
7
7
  user_id: 1
8
8
  body: MyText
9
9
 
10
10
  two:
11
11
  id: 2
12
- patron_import_file_id: 1
13
- patron_id: 1
12
+ agent_import_file_id: 1
13
+ agent_id: 1
14
14
  user_id: 1
15
15
  body: MyText
16
16
 
17
17
  # == Schema Information
18
18
  #
19
- # Table name: patron_import_results
19
+ # Table name: agent_import_results
20
20
  #
21
21
  # id :integer not null, primary key
22
- # patron_import_file_id :integer
23
- # patron_id :integer
22
+ # agent_import_file_id :integer
23
+ # agent_id :integer
24
24
  # user_id :integer
25
25
  # body :text
26
26
  # created_at :datetime
@@ -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
22
22
  # updated_at :datetime
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,7 +274,7 @@ 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
 
@@ -285,7 +285,7 @@ patron_00202:
285
285
 
286
286
  # == Schema Information
287
287
  #
288
- # Table name: patrons
288
+ # Table name: agents
289
289
  #
290
290
  # id :integer not null, primary key
291
291
  # user_id :integer
@@ -323,7 +323,7 @@ patron_00202:
323
323
  # date_of_death :datetime
324
324
  # language_id :integer default(1), not null
325
325
  # country_id :integer default(1), not null
326
- # patron_type_id :integer default(1), not null
326
+ # agent_type_id :integer default(1), not null
327
327
  # lock_version :integer default(0), not null
328
328
  # note :text
329
329
  # required_role_id :integer default(1), not null
@@ -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
@@ -55,7 +55,7 @@ create_00104:
55
55
  # Table name: creates
56
56
  #
57
57
  # id :integer not null, primary key
58
- # patron_id :integer not null
58
+ # agent_id :integer not null
59
59
  # work_id :integer not null
60
60
  # position :integer
61
61
  # 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
29
29
  # updated_at :datetime