enju_book_jacket 0.1.0.pre3 → 0.1.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/app/views/manifestations/_google_book_thumbnail.html.erb +0 -32
  2. data/app/views/manifestations/_google_book_thumbnail_header.html.erb +38 -0
  3. data/lib/enju_book_jacket/book_jacket_helper.rb +10 -0
  4. data/lib/enju_book_jacket/version.rb +1 -1
  5. data/spec/dummy/db/migrate/001_create_patrons.rb +53 -0
  6. data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
  7. data/spec/dummy/db/migrate/006_create_items.rb +28 -0
  8. data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
  9. data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
  10. data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
  11. data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
  12. data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
  13. data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
  14. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  15. data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
  16. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
  17. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
  18. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +12 -0
  19. data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
  20. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
  21. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
  22. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
  23. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
  24. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
  25. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  26. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
  27. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  28. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
  29. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
  30. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
  31. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
  32. data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
  33. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -0
  34. data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
  35. data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
  36. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
  37. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
  38. data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
  39. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
  40. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  41. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
  42. data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
  43. data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
  44. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
  45. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
  46. data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
  47. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
  48. data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
  49. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
  50. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  51. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  52. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
  53. data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
  54. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
  55. data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
  56. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
  57. data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
  58. data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
  59. data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
  60. data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
  61. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
  62. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  63. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  64. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  65. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
  66. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
  67. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  68. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
  69. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  70. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
  71. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
  72. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
  73. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  74. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  75. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +6 -0
  76. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
  77. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +11 -0
  78. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  79. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
  80. data/spec/dummy/db/migrate/20121119153944_add_manifestation_id_to_item.rb +5 -0
  81. data/spec/dummy/db/schema.rb +529 -14
  82. data/spec/dummy/db/test.sqlite3 +0 -0
  83. metadata +157 -6
@@ -11,23 +11,224 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20110916091020) do
14
+ ActiveRecord::Schema.define(:version => 20121119153944) do
15
+
16
+ create_table "baskets", :force => true do |t|
17
+ t.integer "user_id"
18
+ t.text "note"
19
+ t.integer "lock_version", :default => 0, :null => false
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
25
+
26
+ create_table "carrier_types", :force => true do |t|
27
+ t.string "name", :null => false
28
+ t.text "display_name"
29
+ t.text "note"
30
+ t.integer "position"
31
+ t.datetime "created_at", :null => false
32
+ t.datetime "updated_at", :null => false
33
+ end
34
+
35
+ create_table "content_types", :force => true do |t|
36
+ t.string "name", :null => false
37
+ t.text "display_name"
38
+ t.text "note"
39
+ t.integer "position"
40
+ t.datetime "created_at", :null => false
41
+ t.datetime "updated_at", :null => false
42
+ end
43
+
44
+ create_table "countries", :force => true do |t|
45
+ t.string "name", :null => false
46
+ t.text "display_name"
47
+ t.string "alpha_2"
48
+ t.string "alpha_3"
49
+ t.string "numeric_3"
50
+ t.text "note"
51
+ t.integer "position"
52
+ end
53
+
54
+ add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
55
+ add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
56
+ add_index "countries", ["name"], :name => "index_countries_on_name"
57
+ add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
58
+
59
+ create_table "create_types", :force => true do |t|
60
+ t.string "name"
61
+ t.text "display_name"
62
+ t.text "note"
63
+ t.integer "position"
64
+ t.datetime "created_at", :null => false
65
+ t.datetime "updated_at", :null => false
66
+ end
67
+
68
+ create_table "creates", :force => true do |t|
69
+ t.integer "patron_id", :null => false
70
+ t.integer "work_id", :null => false
71
+ t.integer "position"
72
+ t.datetime "created_at", :null => false
73
+ t.datetime "updated_at", :null => false
74
+ t.integer "create_type_id"
75
+ end
76
+
77
+ add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
78
+ add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
79
+
80
+ create_table "donates", :force => true do |t|
81
+ t.integer "patron_id", :null => false
82
+ t.integer "item_id", :null => false
83
+ t.datetime "created_at", :null => false
84
+ t.datetime "updated_at", :null => false
85
+ end
86
+
87
+ add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
88
+ add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
89
+
90
+ create_table "exemplifies", :force => true do |t|
91
+ t.integer "manifestation_id", :null => false
92
+ t.integer "item_id", :null => false
93
+ t.integer "position"
94
+ t.datetime "created_at", :null => false
95
+ t.datetime "updated_at", :null => false
96
+ end
97
+
98
+ add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
99
+ add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
100
+
101
+ create_table "extents", :force => true do |t|
102
+ t.string "name", :null => false
103
+ t.text "display_name"
104
+ t.text "note"
105
+ t.integer "position"
106
+ t.datetime "created_at", :null => false
107
+ t.datetime "updated_at", :null => false
108
+ end
109
+
110
+ create_table "form_of_works", :force => true do |t|
111
+ t.string "name", :null => false
112
+ t.text "display_name"
113
+ t.text "note"
114
+ t.integer "position"
115
+ t.datetime "created_at", :null => false
116
+ t.datetime "updated_at", :null => false
117
+ end
118
+
119
+ create_table "frequencies", :force => true do |t|
120
+ t.string "name", :null => false
121
+ t.text "display_name"
122
+ t.text "note"
123
+ t.integer "position"
124
+ t.datetime "created_at", :null => false
125
+ t.datetime "updated_at", :null => false
126
+ end
127
+
128
+ create_table "import_requests", :force => true do |t|
129
+ t.string "isbn"
130
+ t.string "state"
131
+ t.integer "manifestation_id"
132
+ t.integer "user_id"
133
+ t.datetime "created_at", :null => false
134
+ t.datetime "updated_at", :null => false
135
+ end
136
+
137
+ add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
138
+ add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
139
+ add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
140
+
141
+ create_table "items", :force => true do |t|
142
+ t.string "call_number"
143
+ t.string "item_identifier"
144
+ t.integer "circulation_status_id", :default => 5, :null => false
145
+ t.integer "checkout_type_id", :default => 1, :null => false
146
+ t.datetime "created_at", :null => false
147
+ t.datetime "updated_at", :null => false
148
+ t.datetime "deleted_at"
149
+ t.integer "shelf_id", :default => 1, :null => false
150
+ t.boolean "include_supplements", :default => false, :null => false
151
+ t.text "note"
152
+ t.string "url"
153
+ t.integer "price"
154
+ t.integer "lock_version", :default => 0, :null => false
155
+ t.integer "required_role_id", :default => 1, :null => false
156
+ t.string "state"
157
+ t.integer "required_score", :default => 0, :null => false
158
+ t.datetime "acquired_at"
159
+ t.integer "bookstore_id"
160
+ t.integer "budget_type_id"
161
+ t.integer "manifestation_id"
162
+ end
163
+
164
+ add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
165
+ add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
166
+ add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
167
+ add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
168
+ add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
169
+ add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
170
+
171
+ create_table "languages", :force => true do |t|
172
+ t.string "name", :null => false
173
+ t.string "native_name"
174
+ t.text "display_name"
175
+ t.string "iso_639_1"
176
+ t.string "iso_639_2"
177
+ t.string "iso_639_3"
178
+ t.text "note"
179
+ t.integer "position"
180
+ end
181
+
182
+ add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
183
+ add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
184
+ add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
185
+ add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
186
+
187
+ create_table "licenses", :force => true do |t|
188
+ t.string "name", :null => false
189
+ t.string "display_name"
190
+ t.text "note"
191
+ t.integer "position"
192
+ t.datetime "created_at", :null => false
193
+ t.datetime "updated_at", :null => false
194
+ end
195
+
196
+ create_table "manifestation_relationship_types", :force => true do |t|
197
+ t.string "name", :null => false
198
+ t.text "display_name"
199
+ t.text "note"
200
+ t.integer "position"
201
+ t.datetime "created_at", :null => false
202
+ t.datetime "updated_at", :null => false
203
+ end
204
+
205
+ create_table "manifestation_relationships", :force => true do |t|
206
+ t.integer "parent_id"
207
+ t.integer "child_id"
208
+ t.integer "manifestation_relationship_type_id"
209
+ t.datetime "created_at", :null => false
210
+ t.datetime "updated_at", :null => false
211
+ t.integer "position"
212
+ end
213
+
214
+ add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
215
+ add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
15
216
 
16
217
  create_table "manifestations", :force => true do |t|
17
- t.text "original_title", :null => false
218
+ t.text "original_title", :null => false
18
219
  t.text "title_alternative"
19
220
  t.text "title_transcription"
20
221
  t.string "classification_number"
21
222
  t.string "manifestation_identifier"
22
223
  t.datetime "date_of_publication"
23
- t.datetime "copyright_date"
24
- t.datetime "created_at", :null => false
25
- t.datetime "updated_at", :null => false
224
+ t.datetime "date_copyrighted"
225
+ t.datetime "created_at", :null => false
226
+ t.datetime "updated_at", :null => false
26
227
  t.datetime "deleted_at"
27
228
  t.string "access_address"
28
- t.integer "language_id", :default => 1, :null => false
29
- t.integer "carrier_type_id", :default => 1, :null => false
30
- t.integer "extent_id", :default => 1, :null => false
229
+ t.integer "language_id", :default => 1, :null => false
230
+ t.integer "carrier_type_id", :default => 1, :null => false
231
+ t.integer "extent_id", :default => 1, :null => false
31
232
  t.integer "start_page"
32
233
  t.integer "end_page"
33
234
  t.integer "height"
@@ -47,20 +248,42 @@ ActiveRecord::Schema.define(:version => 20110916091020) do
47
248
  t.string "serial_number_string"
48
249
  t.integer "edition"
49
250
  t.text "note"
50
- t.boolean "repository_content", :default => false, :null => false
51
- t.integer "lock_version", :default => 0, :null => false
52
- t.integer "required_role_id", :default => 1, :null => false
251
+ t.boolean "repository_content", :default => false, :null => false
252
+ t.integer "lock_version", :default => 0, :null => false
253
+ t.integer "required_role_id", :default => 1, :null => false
53
254
  t.string "state"
54
- t.integer "required_score", :default => 0, :null => false
55
- t.integer "frequency_id", :default => 1, :null => false
56
- t.boolean "subscription_master", :default => false, :null => false
255
+ t.integer "required_score", :default => 0, :null => false
256
+ t.integer "frequency_id", :default => 1, :null => false
257
+ t.boolean "subscription_master", :default => false, :null => false
57
258
  t.integer "volume_number"
58
259
  t.integer "issue_number"
59
260
  t.integer "serial_number"
261
+ t.string "attachment_file_name"
262
+ t.string "attachment_content_type"
263
+ t.integer "attachment_file_size"
264
+ t.datetime "attachment_updated_at"
265
+ t.text "title_alternative_transcription"
266
+ t.text "description"
267
+ t.text "abstract"
268
+ t.datetime "available_at"
269
+ t.datetime "valid_until"
270
+ t.datetime "date_submitted"
271
+ t.datetime "date_accepted"
272
+ t.datetime "date_caputured"
273
+ t.string "pub_date"
274
+ t.string "edition_string"
275
+ t.string "ndc"
276
+ t.integer "content_type_id", :default => 1
277
+ t.integer "year_of_publication"
278
+ t.text "attachment_meta"
279
+ t.integer "month_of_publication"
280
+ t.boolean "fulltext_content"
281
+ t.string "doi"
60
282
  end
61
283
 
62
284
  add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
63
285
  add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
286
+ add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
64
287
  add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
65
288
  add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
66
289
  add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
@@ -71,4 +294,296 @@ ActiveRecord::Schema.define(:version => 20110916091020) do
71
294
  add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
72
295
  add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
73
296
 
297
+ create_table "medium_of_performances", :force => true do |t|
298
+ t.string "name", :null => false
299
+ t.text "display_name"
300
+ t.text "note"
301
+ t.integer "position"
302
+ t.datetime "created_at", :null => false
303
+ t.datetime "updated_at", :null => false
304
+ end
305
+
306
+ create_table "owns", :force => true do |t|
307
+ t.integer "patron_id", :null => false
308
+ t.integer "item_id", :null => false
309
+ t.integer "position"
310
+ t.datetime "created_at", :null => false
311
+ t.datetime "updated_at", :null => false
312
+ end
313
+
314
+ add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
315
+ add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
316
+
317
+ create_table "patron_import_files", :force => true do |t|
318
+ t.integer "parent_id"
319
+ t.string "content_type"
320
+ t.integer "size"
321
+ t.integer "user_id"
322
+ t.text "note"
323
+ t.datetime "executed_at"
324
+ t.string "state"
325
+ t.string "patron_import_file_name"
326
+ t.string "patron_import_content_type"
327
+ t.integer "patron_import_file_size"
328
+ t.datetime "patron_import_updated_at"
329
+ t.datetime "created_at", :null => false
330
+ t.datetime "updated_at", :null => false
331
+ t.string "patron_import_fingerprint"
332
+ t.text "error_message"
333
+ t.string "edit_mode"
334
+ end
335
+
336
+ add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
337
+ add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
338
+ add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
339
+
340
+ create_table "patron_import_results", :force => true do |t|
341
+ t.integer "patron_import_file_id"
342
+ t.integer "patron_id"
343
+ t.integer "user_id"
344
+ t.text "body"
345
+ t.datetime "created_at", :null => false
346
+ t.datetime "updated_at", :null => false
347
+ end
348
+
349
+ create_table "patron_relationship_types", :force => true do |t|
350
+ t.string "name", :null => false
351
+ t.text "display_name"
352
+ t.text "note"
353
+ t.integer "position"
354
+ t.datetime "created_at", :null => false
355
+ t.datetime "updated_at", :null => false
356
+ end
357
+
358
+ create_table "patron_relationships", :force => true do |t|
359
+ t.integer "parent_id"
360
+ t.integer "child_id"
361
+ t.integer "patron_relationship_type_id"
362
+ t.datetime "created_at", :null => false
363
+ t.datetime "updated_at", :null => false
364
+ t.integer "position"
365
+ end
366
+
367
+ add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
368
+ add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
369
+
370
+ create_table "patron_types", :force => true do |t|
371
+ t.string "name", :null => false
372
+ t.text "display_name"
373
+ t.text "note"
374
+ t.integer "position"
375
+ t.datetime "created_at", :null => false
376
+ t.datetime "updated_at", :null => false
377
+ end
378
+
379
+ create_table "patrons", :force => true do |t|
380
+ t.integer "user_id"
381
+ t.string "last_name"
382
+ t.string "middle_name"
383
+ t.string "first_name"
384
+ t.string "last_name_transcription"
385
+ t.string "middle_name_transcription"
386
+ t.string "first_name_transcription"
387
+ t.string "corporate_name"
388
+ t.string "corporate_name_transcription"
389
+ t.string "full_name"
390
+ t.text "full_name_transcription"
391
+ t.text "full_name_alternative"
392
+ t.datetime "created_at", :null => false
393
+ t.datetime "updated_at", :null => false
394
+ t.datetime "deleted_at"
395
+ t.string "zip_code_1"
396
+ t.string "zip_code_2"
397
+ t.text "address_1"
398
+ t.text "address_2"
399
+ t.text "address_1_note"
400
+ t.text "address_2_note"
401
+ t.string "telephone_number_1"
402
+ t.string "telephone_number_2"
403
+ t.string "fax_number_1"
404
+ t.string "fax_number_2"
405
+ t.text "other_designation"
406
+ t.text "place"
407
+ t.string "postal_code"
408
+ t.text "street"
409
+ t.text "locality"
410
+ t.text "region"
411
+ t.datetime "date_of_birth"
412
+ t.datetime "date_of_death"
413
+ t.integer "language_id", :default => 1, :null => false
414
+ t.integer "country_id", :default => 1, :null => false
415
+ t.integer "patron_type_id", :default => 1, :null => false
416
+ t.integer "lock_version", :default => 0, :null => false
417
+ t.text "note"
418
+ t.integer "required_role_id", :default => 1, :null => false
419
+ t.integer "required_score", :default => 0, :null => false
420
+ t.string "state"
421
+ t.text "email"
422
+ t.text "url"
423
+ t.text "full_name_alternative_transcription"
424
+ t.string "birth_date"
425
+ t.string "death_date"
426
+ t.string "patron_identifier"
427
+ end
428
+
429
+ add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
430
+ add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
431
+ add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
432
+ add_index "patrons", ["patron_identifier"], :name => "index_patrons_on_patron_identifier"
433
+ add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
434
+ add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
435
+
436
+ create_table "picture_files", :force => true do |t|
437
+ t.integer "picture_attachable_id"
438
+ t.string "picture_attachable_type"
439
+ t.string "content_type"
440
+ t.text "title"
441
+ t.string "thumbnail"
442
+ t.integer "position"
443
+ t.datetime "created_at", :null => false
444
+ t.datetime "updated_at", :null => false
445
+ t.string "picture_file_name"
446
+ t.string "picture_content_type"
447
+ t.integer "picture_file_size"
448
+ t.datetime "picture_updated_at"
449
+ t.text "picture_meta"
450
+ t.string "picture_fingerprint"
451
+ end
452
+
453
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
454
+
455
+ create_table "produce_types", :force => true do |t|
456
+ t.string "name"
457
+ t.text "display_name"
458
+ t.text "note"
459
+ t.integer "position"
460
+ t.datetime "created_at", :null => false
461
+ t.datetime "updated_at", :null => false
462
+ end
463
+
464
+ create_table "produces", :force => true do |t|
465
+ t.integer "patron_id", :null => false
466
+ t.integer "manifestation_id", :null => false
467
+ t.integer "position"
468
+ t.datetime "created_at", :null => false
469
+ t.datetime "updated_at", :null => false
470
+ t.integer "produce_type_id"
471
+ end
472
+
473
+ add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
474
+ add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
475
+
476
+ create_table "realize_types", :force => true do |t|
477
+ t.string "name"
478
+ t.text "display_name"
479
+ t.text "note"
480
+ t.integer "position"
481
+ t.datetime "created_at", :null => false
482
+ t.datetime "updated_at", :null => false
483
+ end
484
+
485
+ create_table "realizes", :force => true do |t|
486
+ t.integer "patron_id", :null => false
487
+ t.integer "expression_id", :null => false
488
+ t.integer "position"
489
+ t.datetime "created_at", :null => false
490
+ t.datetime "updated_at", :null => false
491
+ t.integer "realize_type_id"
492
+ end
493
+
494
+ add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
495
+ add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
496
+
497
+ create_table "resource_import_files", :force => true do |t|
498
+ t.integer "parent_id"
499
+ t.string "content_type"
500
+ t.integer "size"
501
+ t.integer "user_id"
502
+ t.text "note"
503
+ t.datetime "executed_at"
504
+ t.string "state"
505
+ t.string "resource_import_file_name"
506
+ t.string "resource_import_content_type"
507
+ t.integer "resource_import_file_size"
508
+ t.datetime "resource_import_updated_at"
509
+ t.datetime "created_at", :null => false
510
+ t.datetime "updated_at", :null => false
511
+ t.string "edit_mode"
512
+ t.string "resource_import_fingerprint"
513
+ t.text "error_message"
514
+ end
515
+
516
+ add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
517
+ add_index "resource_import_files", ["state"], :name => "index_resource_import_files_on_state"
518
+ add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
519
+
520
+ create_table "resource_import_results", :force => true do |t|
521
+ t.integer "resource_import_file_id"
522
+ t.integer "manifestation_id"
523
+ t.integer "item_id"
524
+ t.text "body"
525
+ t.datetime "created_at", :null => false
526
+ t.datetime "updated_at", :null => false
527
+ end
528
+
529
+ add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
530
+ add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
531
+ add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
532
+
533
+ create_table "series_has_manifestations", :force => true do |t|
534
+ t.integer "series_statement_id"
535
+ t.integer "manifestation_id"
536
+ t.integer "position"
537
+ t.datetime "created_at", :null => false
538
+ t.datetime "updated_at", :null => false
539
+ end
540
+
541
+ add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
542
+ add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
543
+
544
+ create_table "series_statement_merge_lists", :force => true do |t|
545
+ t.string "title"
546
+ t.datetime "created_at", :null => false
547
+ t.datetime "updated_at", :null => false
548
+ end
549
+
550
+ create_table "series_statement_merges", :force => true do |t|
551
+ t.integer "series_statement_id", :null => false
552
+ t.integer "series_statement_merge_list_id", :null => false
553
+ t.datetime "created_at", :null => false
554
+ t.datetime "updated_at", :null => false
555
+ end
556
+
557
+ add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
558
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
559
+
560
+ create_table "series_statement_relationships", :force => true do |t|
561
+ t.integer "parent_id"
562
+ t.integer "child_id"
563
+ t.integer "position"
564
+ t.datetime "created_at", :null => false
565
+ t.datetime "updated_at", :null => false
566
+ end
567
+
568
+ create_table "series_statements", :force => true do |t|
569
+ t.text "original_title"
570
+ t.text "numbering"
571
+ t.text "title_subseries"
572
+ t.text "numbering_subseries"
573
+ t.integer "position"
574
+ t.datetime "created_at", :null => false
575
+ t.datetime "updated_at", :null => false
576
+ t.text "title_transcription"
577
+ t.text "title_alternative"
578
+ t.string "series_statement_identifier"
579
+ t.string "issn"
580
+ t.boolean "periodical", :default => false, :null => false
581
+ t.integer "root_manifestation_id"
582
+ t.text "note"
583
+ t.text "title_subseries_transcription"
584
+ end
585
+
586
+ add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_manifestation_id"
587
+ add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
588
+
74
589
  end
Binary file