enju_event 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/app/views/event_categories/index.html.erb +1 -1
  2. data/app/views/event_import_files/index.html.erb +1 -1
  3. data/app/views/event_import_results/index.html.erb +1 -1
  4. data/app/views/events/index.html.erb +1 -1
  5. data/app/views/participates/index.html.erb +1 -1
  6. data/config/routes.rb +3 -0
  7. data/lib/enju_event/engine.rb +1 -8
  8. data/lib/enju_event/version.rb +1 -1
  9. data/spec/dummy/app/models/role.rb +39 -1
  10. data/spec/dummy/app/models/user.rb +61 -10
  11. data/spec/dummy/app/models/user_group.rb +38 -0
  12. data/spec/dummy/app/models/user_has_role.rb +1 -0
  13. data/spec/dummy/config/application.rb +3 -1
  14. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  15. data/spec/dummy/db/migrate/001_create_patrons.rb +1 -10
  16. data/spec/dummy/db/migrate/005_create_manifestations.rb +56 -0
  17. data/spec/dummy/db/migrate/006_create_items.rb +28 -0
  18. data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
  19. data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
  20. data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
  21. data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
  22. data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
  23. data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
  24. data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
  25. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
  26. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
  27. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +1 -5
  28. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +1 -5
  29. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
  30. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
  31. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
  32. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
  33. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  34. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
  35. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  36. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
  37. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
  38. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
  39. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
  40. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
  41. data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
  42. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -0
  43. data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
  44. data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
  45. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
  46. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
  47. data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
  48. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
  49. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  50. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
  51. data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
  52. data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
  53. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
  54. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
  55. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
  56. data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
  57. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
  58. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  59. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  60. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
  61. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
  62. data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
  63. data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
  64. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
  65. data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
  66. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
  67. data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
  68. data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
  69. data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
  70. data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
  71. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -10
  72. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
  73. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  74. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  75. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  76. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
  77. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
  78. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  79. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
  80. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  81. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
  82. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
  83. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
  84. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  85. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  86. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
  87. data/spec/dummy/db/schema.rb +490 -18
  88. data/spec/dummy/db/test.sqlite3 +0 -0
  89. data/spec/dummy/solr/data/test/index/_a.fdt +0 -0
  90. data/spec/dummy/solr/data/test/index/_a.fdx +0 -0
  91. data/spec/dummy/solr/data/test/index/{_2s.fnm → _a.fnm} +2 -2
  92. data/spec/dummy/solr/data/test/index/_a.frq +1 -0
  93. data/spec/dummy/solr/data/test/index/_a.nrm +1 -0
  94. data/spec/dummy/solr/data/test/index/_a.prx +0 -0
  95. data/spec/dummy/solr/data/test/index/{_2s.tii → _a.tii} +0 -0
  96. data/spec/dummy/solr/data/test/index/_a.tis +0 -0
  97. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  98. data/spec/dummy/solr/data/test/index/{segments_2k → segments_b} +0 -0
  99. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  100. metadata +178 -153
  101. data/db/migrate/20120602122753_add_edit_mode_to_event_import_file.rb +0 -5
  102. data/spec/dummy/app/models/country.rb +0 -44
  103. data/spec/dummy/app/models/language.rb +0 -4
  104. data/spec/dummy/app/models/library.rb +0 -128
  105. data/spec/dummy/app/models/library_group.rb +0 -86
  106. data/spec/dummy/app/models/patron.rb +0 -163
  107. data/spec/dummy/app/models/patron_type.rb +0 -19
  108. data/spec/dummy/app/models/shelf.rb +0 -54
  109. data/spec/dummy/db/development.sqlite3 +0 -0
  110. data/spec/dummy/lib/enju_leaf/import_file.rb +0 -13
  111. data/spec/dummy/lib/enju_leaf/localized_name.rb +0 -13
  112. data/spec/dummy/lib/enju_leaf/master_model.rb +0 -41
  113. data/spec/dummy/lib/enju_leaf/url_validator.rb +0 -10
  114. data/spec/dummy/lib/enju_leaf.rb +0 -4
  115. data/spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample1.tsv +0 -5
  116. data/spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample2.tsv +0 -3
  117. data/spec/dummy/solr/data/test/index/_2s.fdt +0 -0
  118. data/spec/dummy/solr/data/test/index/_2s.fdx +0 -0
  119. data/spec/dummy/solr/data/test/index/_2s.frq +0 -0
  120. data/spec/dummy/solr/data/test/index/_2s.nrm +0 -1
  121. data/spec/dummy/solr/data/test/index/_2s.prx +0 -0
  122. data/spec/dummy/solr/data/test/index/_2s.tis +0 -0
@@ -0,0 +1,5 @@
1
+ class AddAttachmentMetaToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :attachment_meta, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddMonthOfPublicationToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :month_of_publication, :integer
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddEditModeToPatronImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :patron_import_files, :edit_mode, :string
4
+ end
5
+ end
@@ -11,7 +11,25 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120415060342) do
14
+ ActiveRecord::Schema.define(:version => 20120602141129) do
15
+
16
+ create_table "carrier_types", :force => true do |t|
17
+ t.string "name", :null => false
18
+ t.text "display_name"
19
+ t.text "note"
20
+ t.integer "position"
21
+ t.datetime "created_at", :null => false
22
+ t.datetime "updated_at", :null => false
23
+ end
24
+
25
+ create_table "content_types", :force => true do |t|
26
+ t.string "name", :null => false
27
+ t.text "display_name"
28
+ t.text "note"
29
+ t.integer "position"
30
+ t.datetime "created_at", :null => false
31
+ t.datetime "updated_at", :null => false
32
+ end
15
33
 
16
34
  create_table "countries", :force => true do |t|
17
35
  t.string "name", :null => false
@@ -28,6 +46,27 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
28
46
  add_index "countries", ["name"], :name => "index_countries_on_name"
29
47
  add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
30
48
 
49
+ create_table "create_types", :force => true do |t|
50
+ t.string "name"
51
+ t.text "display_name"
52
+ t.text "note"
53
+ t.integer "position"
54
+ t.datetime "created_at", :null => false
55
+ t.datetime "updated_at", :null => false
56
+ end
57
+
58
+ create_table "creates", :force => true do |t|
59
+ t.integer "patron_id", :null => false
60
+ t.integer "work_id", :null => false
61
+ t.integer "position"
62
+ t.datetime "created_at", :null => false
63
+ t.datetime "updated_at", :null => false
64
+ t.integer "create_type_id"
65
+ end
66
+
67
+ add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
68
+ add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
69
+
31
70
  create_table "delayed_jobs", :force => true do |t|
32
71
  t.integer "priority", :default => 0
33
72
  t.integer "attempts", :default => 0
@@ -43,6 +82,16 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
43
82
 
44
83
  add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
45
84
 
85
+ create_table "donates", :force => true do |t|
86
+ t.integer "patron_id", :null => false
87
+ t.integer "item_id", :null => false
88
+ t.datetime "created_at", :null => false
89
+ t.datetime "updated_at", :null => false
90
+ end
91
+
92
+ add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
93
+ add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
94
+
46
95
  create_table "event_categories", :force => true do |t|
47
96
  t.string "name", :null => false
48
97
  t.text "display_name"
@@ -101,6 +150,86 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
101
150
  add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
102
151
  add_index "events", ["library_id"], :name => "index_events_on_library_id"
103
152
 
153
+ create_table "exemplifies", :force => true do |t|
154
+ t.integer "manifestation_id", :null => false
155
+ t.integer "item_id", :null => false
156
+ t.integer "position"
157
+ t.datetime "created_at", :null => false
158
+ t.datetime "updated_at", :null => false
159
+ end
160
+
161
+ add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
162
+ add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
163
+
164
+ create_table "extents", :force => true do |t|
165
+ t.string "name", :null => false
166
+ t.text "display_name"
167
+ t.text "note"
168
+ t.integer "position"
169
+ t.datetime "created_at", :null => false
170
+ t.datetime "updated_at", :null => false
171
+ end
172
+
173
+ create_table "form_of_works", :force => true do |t|
174
+ t.string "name", :null => false
175
+ t.text "display_name"
176
+ t.text "note"
177
+ t.integer "position"
178
+ t.datetime "created_at", :null => false
179
+ t.datetime "updated_at", :null => false
180
+ end
181
+
182
+ create_table "frequencies", :force => true do |t|
183
+ t.string "name", :null => false
184
+ t.text "display_name"
185
+ t.text "note"
186
+ t.integer "position"
187
+ t.datetime "created_at", :null => false
188
+ t.datetime "updated_at", :null => false
189
+ end
190
+
191
+ create_table "import_requests", :force => true do |t|
192
+ t.string "isbn"
193
+ t.string "state"
194
+ t.integer "manifestation_id"
195
+ t.integer "user_id"
196
+ t.datetime "created_at", :null => false
197
+ t.datetime "updated_at", :null => false
198
+ end
199
+
200
+ add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
201
+ add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
202
+ add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
203
+
204
+ create_table "items", :force => true do |t|
205
+ t.string "call_number"
206
+ t.string "item_identifier"
207
+ t.integer "circulation_status_id", :default => 5, :null => false
208
+ t.integer "checkout_type_id", :default => 1, :null => false
209
+ t.datetime "created_at", :null => false
210
+ t.datetime "updated_at", :null => false
211
+ t.datetime "deleted_at"
212
+ t.integer "shelf_id", :default => 1, :null => false
213
+ t.boolean "include_supplements", :default => false, :null => false
214
+ t.text "note"
215
+ t.string "url"
216
+ t.integer "price"
217
+ t.integer "lock_version", :default => 0, :null => false
218
+ t.integer "required_role_id", :default => 1, :null => false
219
+ t.string "state"
220
+ t.integer "required_score", :default => 0, :null => false
221
+ t.datetime "acquired_at"
222
+ t.integer "bookstore_id"
223
+ t.integer "budget_type_id"
224
+ end
225
+
226
+ add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
227
+ add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
228
+ add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
229
+ add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
230
+ add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
231
+ add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
232
+
104
233
  create_table "languages", :force => true do |t|
105
234
  t.string "name", :null => false
106
235
  t.string "native_name"
@@ -168,6 +297,133 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
168
297
 
169
298
  add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
170
299
 
300
+ create_table "licenses", :force => true do |t|
301
+ t.string "name", :null => false
302
+ t.string "display_name"
303
+ t.text "note"
304
+ t.integer "position"
305
+ t.datetime "created_at", :null => false
306
+ t.datetime "updated_at", :null => false
307
+ end
308
+
309
+ create_table "manifestation_relationship_types", :force => true do |t|
310
+ t.string "name", :null => false
311
+ t.text "display_name"
312
+ t.text "note"
313
+ t.integer "position"
314
+ t.datetime "created_at", :null => false
315
+ t.datetime "updated_at", :null => false
316
+ end
317
+
318
+ create_table "manifestation_relationships", :force => true do |t|
319
+ t.integer "parent_id"
320
+ t.integer "child_id"
321
+ t.integer "manifestation_relationship_type_id"
322
+ t.datetime "created_at", :null => false
323
+ t.datetime "updated_at", :null => false
324
+ t.integer "position"
325
+ end
326
+
327
+ add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
328
+ add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
329
+
330
+ create_table "manifestations", :force => true do |t|
331
+ t.text "original_title", :null => false
332
+ t.text "title_alternative"
333
+ t.text "title_transcription"
334
+ t.string "classification_number"
335
+ t.string "manifestation_identifier"
336
+ t.datetime "date_of_publication"
337
+ t.datetime "date_copyrighted"
338
+ t.datetime "created_at", :null => false
339
+ t.datetime "updated_at", :null => false
340
+ t.datetime "deleted_at"
341
+ t.string "access_address"
342
+ t.integer "language_id", :default => 1, :null => false
343
+ t.integer "carrier_type_id", :default => 1, :null => false
344
+ t.integer "extent_id", :default => 1, :null => false
345
+ t.integer "start_page"
346
+ t.integer "end_page"
347
+ t.integer "height"
348
+ t.integer "width"
349
+ t.integer "depth"
350
+ t.string "isbn"
351
+ t.string "isbn10"
352
+ t.string "wrong_isbn"
353
+ t.string "nbn"
354
+ t.string "lccn"
355
+ t.string "oclc_number"
356
+ t.string "issn"
357
+ t.integer "price"
358
+ t.text "fulltext"
359
+ t.string "volume_number_string"
360
+ t.string "issue_number_string"
361
+ t.string "serial_number_string"
362
+ t.integer "edition"
363
+ t.text "note"
364
+ t.boolean "repository_content", :default => false, :null => false
365
+ t.integer "lock_version", :default => 0, :null => false
366
+ t.integer "required_role_id", :default => 1, :null => false
367
+ t.string "state"
368
+ t.integer "required_score", :default => 0, :null => false
369
+ t.integer "frequency_id", :default => 1, :null => false
370
+ t.boolean "subscription_master", :default => false, :null => false
371
+ t.string "attachment_file_name"
372
+ t.string "attachment_content_type"
373
+ t.integer "attachment_file_size"
374
+ t.datetime "attachment_updated_at"
375
+ t.text "title_alternative_transcription"
376
+ t.text "description"
377
+ t.text "abstract"
378
+ t.datetime "available_at"
379
+ t.datetime "valid_until"
380
+ t.datetime "date_submitted"
381
+ t.datetime "date_accepted"
382
+ t.datetime "date_caputured"
383
+ t.string "pub_date"
384
+ t.string "edition_string"
385
+ t.integer "volume_number"
386
+ t.integer "issue_number"
387
+ t.integer "serial_number"
388
+ t.string "ndc"
389
+ t.integer "content_type_id", :default => 1
390
+ t.integer "year_of_publication"
391
+ t.text "attachment_meta"
392
+ t.integer "month_of_publication"
393
+ end
394
+
395
+ add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
396
+ add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
397
+ add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
398
+ add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
399
+ add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
400
+ add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
401
+ add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
402
+ add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
403
+ add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
404
+ add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
405
+ add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
406
+
407
+ create_table "medium_of_performances", :force => true do |t|
408
+ t.string "name", :null => false
409
+ t.text "display_name"
410
+ t.text "note"
411
+ t.integer "position"
412
+ t.datetime "created_at", :null => false
413
+ t.datetime "updated_at", :null => false
414
+ end
415
+
416
+ create_table "owns", :force => true do |t|
417
+ t.integer "patron_id", :null => false
418
+ t.integer "item_id", :null => false
419
+ t.integer "position"
420
+ t.datetime "created_at", :null => false
421
+ t.datetime "updated_at", :null => false
422
+ end
423
+
424
+ add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
425
+ add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
426
+
171
427
  create_table "participates", :force => true do |t|
172
428
  t.integer "patron_id", :null => false
173
429
  t.integer "event_id", :null => false
@@ -179,6 +435,59 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
179
435
  add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
180
436
  add_index "participates", ["patron_id"], :name => "index_participates_on_patron_id"
181
437
 
438
+ create_table "patron_import_files", :force => true do |t|
439
+ t.integer "parent_id"
440
+ t.string "content_type"
441
+ t.integer "size"
442
+ t.integer "user_id"
443
+ t.text "note"
444
+ t.datetime "executed_at"
445
+ t.string "state"
446
+ t.string "patron_import_file_name"
447
+ t.string "patron_import_content_type"
448
+ t.integer "patron_import_file_size"
449
+ t.datetime "patron_import_updated_at"
450
+ t.datetime "created_at", :null => false
451
+ t.datetime "updated_at", :null => false
452
+ t.string "patron_import_fingerprint"
453
+ t.text "error_message"
454
+ t.string "edit_mode"
455
+ end
456
+
457
+ add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
458
+ add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
459
+ add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
460
+
461
+ create_table "patron_import_results", :force => true do |t|
462
+ t.integer "patron_import_file_id"
463
+ t.integer "patron_id"
464
+ t.integer "user_id"
465
+ t.text "body"
466
+ t.datetime "created_at", :null => false
467
+ t.datetime "updated_at", :null => false
468
+ end
469
+
470
+ create_table "patron_relationship_types", :force => true do |t|
471
+ t.string "name", :null => false
472
+ t.text "display_name"
473
+ t.text "note"
474
+ t.integer "position"
475
+ t.datetime "created_at", :null => false
476
+ t.datetime "updated_at", :null => false
477
+ end
478
+
479
+ create_table "patron_relationships", :force => true do |t|
480
+ t.integer "parent_id"
481
+ t.integer "child_id"
482
+ t.integer "patron_relationship_type_id"
483
+ t.datetime "created_at", :null => false
484
+ t.datetime "updated_at", :null => false
485
+ t.integer "position"
486
+ end
487
+
488
+ add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
489
+ add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
490
+
182
491
  create_table "patron_types", :force => true do |t|
183
492
  t.string "name", :null => false
184
493
  t.text "display_name"
@@ -201,8 +510,8 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
201
510
  t.string "full_name"
202
511
  t.text "full_name_transcription"
203
512
  t.text "full_name_alternative"
204
- t.datetime "created_at", :null => false
205
- t.datetime "updated_at", :null => false
513
+ t.datetime "created_at", :null => false
514
+ t.datetime "updated_at", :null => false
206
515
  t.datetime "deleted_at"
207
516
  t.string "zip_code_1"
208
517
  t.string "zip_code_2"
@@ -222,20 +531,19 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
222
531
  t.text "region"
223
532
  t.datetime "date_of_birth"
224
533
  t.datetime "date_of_death"
225
- t.integer "language_id", :default => 1, :null => false
226
- t.integer "country_id", :default => 1, :null => false
227
- t.integer "patron_type_id", :default => 1, :null => false
228
- t.integer "lock_version", :default => 0, :null => false
534
+ t.integer "language_id", :default => 1, :null => false
535
+ t.integer "country_id", :default => 1, :null => false
536
+ t.integer "patron_type_id", :default => 1, :null => false
537
+ t.integer "lock_version", :default => 0, :null => false
229
538
  t.text "note"
230
- t.integer "creates_count", :default => 0, :null => false
231
- t.integer "realizes_count", :default => 0, :null => false
232
- t.integer "produces_count", :default => 0, :null => false
233
- t.integer "owns_count", :default => 0, :null => false
234
- t.integer "required_role_id", :default => 1, :null => false
235
- t.integer "required_score", :default => 0, :null => false
539
+ t.integer "required_role_id", :default => 1, :null => false
540
+ t.integer "required_score", :default => 0, :null => false
236
541
  t.string "state"
237
542
  t.text "email"
238
543
  t.text "url"
544
+ t.text "full_name_alternative_transcription"
545
+ t.string "birth_date"
546
+ t.string "death_date"
239
547
  end
240
548
 
241
549
  add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
@@ -244,6 +552,102 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
244
552
  add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
245
553
  add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
246
554
 
555
+ create_table "picture_files", :force => true do |t|
556
+ t.integer "picture_attachable_id"
557
+ t.string "picture_attachable_type"
558
+ t.string "content_type"
559
+ t.text "title"
560
+ t.string "thumbnail"
561
+ t.integer "position"
562
+ t.datetime "created_at", :null => false
563
+ t.datetime "updated_at", :null => false
564
+ t.string "picture_file_name"
565
+ t.string "picture_content_type"
566
+ t.integer "picture_file_size"
567
+ t.datetime "picture_updated_at"
568
+ t.text "picture_meta"
569
+ t.string "picture_fingerprint"
570
+ end
571
+
572
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
573
+
574
+ create_table "produce_types", :force => true do |t|
575
+ t.string "name"
576
+ t.text "display_name"
577
+ t.text "note"
578
+ t.integer "position"
579
+ t.datetime "created_at", :null => false
580
+ t.datetime "updated_at", :null => false
581
+ end
582
+
583
+ create_table "produces", :force => true do |t|
584
+ t.integer "patron_id", :null => false
585
+ t.integer "manifestation_id", :null => false
586
+ t.integer "position"
587
+ t.datetime "created_at", :null => false
588
+ t.datetime "updated_at", :null => false
589
+ t.integer "produce_type_id"
590
+ end
591
+
592
+ add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
593
+ add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
594
+
595
+ create_table "realize_types", :force => true do |t|
596
+ t.string "name"
597
+ t.text "display_name"
598
+ t.text "note"
599
+ t.integer "position"
600
+ t.datetime "created_at", :null => false
601
+ t.datetime "updated_at", :null => false
602
+ end
603
+
604
+ create_table "realizes", :force => true do |t|
605
+ t.integer "patron_id", :null => false
606
+ t.integer "expression_id", :null => false
607
+ t.integer "position"
608
+ t.datetime "created_at", :null => false
609
+ t.datetime "updated_at", :null => false
610
+ t.integer "realize_type_id"
611
+ end
612
+
613
+ add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
614
+ add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
615
+
616
+ create_table "resource_import_files", :force => true do |t|
617
+ t.integer "parent_id"
618
+ t.string "content_type"
619
+ t.integer "size"
620
+ t.integer "user_id"
621
+ t.text "note"
622
+ t.datetime "executed_at"
623
+ t.string "state"
624
+ t.string "resource_import_file_name"
625
+ t.string "resource_import_content_type"
626
+ t.integer "resource_import_file_size"
627
+ t.datetime "resource_import_updated_at"
628
+ t.datetime "created_at", :null => false
629
+ t.datetime "updated_at", :null => false
630
+ t.string "resource_import_fingerprint"
631
+ t.text "error_message"
632
+ end
633
+
634
+ add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
635
+ add_index "resource_import_files", ["state"], :name => "index_resource_import_files_on_state"
636
+ add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
637
+
638
+ create_table "resource_import_results", :force => true do |t|
639
+ t.integer "resource_import_file_id"
640
+ t.integer "manifestation_id"
641
+ t.integer "item_id"
642
+ t.text "body"
643
+ t.datetime "created_at", :null => false
644
+ t.datetime "updated_at", :null => false
645
+ end
646
+
647
+ add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
648
+ add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
649
+ add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
650
+
247
651
  create_table "roles", :force => true do |t|
248
652
  t.string "name"
249
653
  t.text "display_name"
@@ -253,6 +657,54 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
253
657
  t.datetime "updated_at", :null => false
254
658
  end
255
659
 
660
+ create_table "series_has_manifestations", :force => true do |t|
661
+ t.integer "series_statement_id"
662
+ t.integer "manifestation_id"
663
+ t.integer "position"
664
+ t.datetime "created_at", :null => false
665
+ t.datetime "updated_at", :null => false
666
+ end
667
+
668
+ add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
669
+ add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
670
+
671
+ create_table "series_statement_merge_lists", :force => true do |t|
672
+ t.string "title"
673
+ t.datetime "created_at", :null => false
674
+ t.datetime "updated_at", :null => false
675
+ end
676
+
677
+ create_table "series_statement_merges", :force => true do |t|
678
+ t.integer "series_statement_id", :null => false
679
+ t.integer "series_statement_merge_list_id", :null => false
680
+ t.datetime "created_at", :null => false
681
+ t.datetime "updated_at", :null => false
682
+ end
683
+
684
+ add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
685
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
686
+
687
+ create_table "series_statements", :force => true do |t|
688
+ t.text "original_title"
689
+ t.text "numbering"
690
+ t.text "title_subseries"
691
+ t.text "numbering_subseries"
692
+ t.integer "position"
693
+ t.datetime "created_at", :null => false
694
+ t.datetime "updated_at", :null => false
695
+ t.text "title_transcription"
696
+ t.text "title_alternative"
697
+ t.string "series_statement_identifier"
698
+ t.string "issn"
699
+ t.boolean "periodical"
700
+ t.integer "root_manifestation_id"
701
+ t.text "note"
702
+ t.text "title_subseries_transcription"
703
+ end
704
+
705
+ add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_manifestation_id"
706
+ add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
707
+
256
708
  create_table "shelves", :force => true do |t|
257
709
  t.string "name", :null => false
258
710
  t.text "display_name"
@@ -290,21 +742,41 @@ ActiveRecord::Schema.define(:version => 20120415060342) do
290
742
  t.text "note"
291
743
  t.string "locale"
292
744
  t.string "user_number"
293
- t.datetime "created_at", :null => false
294
- t.datetime "updated_at", :null => false
295
- t.string "email", :default => "", :null => false
296
- t.string "encrypted_password", :limit => 128, :default => "", :null => false
745
+ t.datetime "created_at", :null => false
746
+ t.datetime "updated_at", :null => false
747
+ t.string "email", :default => "", :null => false
748
+ t.string "encrypted_password", :default => "", :null => false
297
749
  t.string "reset_password_token"
298
750
  t.datetime "reset_password_sent_at"
299
751
  t.datetime "remember_created_at"
300
- t.integer "sign_in_count", :default => 0
752
+ t.integer "sign_in_count", :default => 0
301
753
  t.datetime "current_sign_in_at"
302
754
  t.datetime "last_sign_in_at"
303
755
  t.string "current_sign_in_ip"
304
756
  t.string "last_sign_in_ip"
757
+ t.string "password_salt"
758
+ t.string "confirmation_token"
759
+ t.datetime "confirmed_at"
760
+ t.datetime "confirmation_sent_at"
761
+ t.string "unconfirmed_email"
762
+ t.integer "failed_attempts", :default => 0
763
+ t.string "unlock_token"
764
+ t.datetime "locked_at"
765
+ t.string "authentication_token"
305
766
  end
306
767
 
307
768
  add_index "users", ["email"], :name => "index_users_on_email"
308
769
  add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
309
770
 
771
+ create_table "versions", :force => true do |t|
772
+ t.string "item_type", :null => false
773
+ t.integer "item_id", :null => false
774
+ t.string "event", :null => false
775
+ t.string "whodunnit"
776
+ t.text "object"
777
+ t.datetime "created_at"
778
+ end
779
+
780
+ add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
781
+
310
782
  end
Binary file
@@ -1,4 +1,4 @@
1
- ����idtype
1
+ ����idtype
2
2
  class_name created_at_d updated_at_drequired_role_id_ipatron_type_id_i name_text
3
3
  position_idisplay_name_text address_text library_id_i
4
- start_at_dend_at_d note_text
4
+ start_at_dend_at_d
@@ -0,0 +1 @@
1
+ 
@@ -0,0 +1 @@
1
+ NRM�|||||||�|
File without changes