enju_manifestation_viewer 0.1.0.pre16 → 0.1.0.pre17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +8 -1
  3. data/lib/enju_manifestation_viewer/version.rb +1 -1
  4. data/spec/dummy/bin/bundle +3 -0
  5. data/spec/dummy/bin/rails +4 -0
  6. data/spec/dummy/bin/rake +4 -0
  7. data/spec/dummy/bin/setup +29 -0
  8. data/spec/dummy/config/database.yml +23 -18
  9. data/spec/dummy/config/environments/test.rb +1 -1
  10. data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
  11. data/spec/dummy/db/migrate/002_devise_create_users.rb +46 -0
  12. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -8
  13. data/spec/dummy/db/migrate/006_create_items.rb +0 -3
  14. data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
  15. data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
  16. data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
  17. data/spec/dummy/db/migrate/077_create_user_groups.rb +12 -0
  18. data/spec/dummy/db/migrate/080_create_library_groups.rb +17 -0
  19. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  20. data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
  21. data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
  22. data/spec/dummy/db/migrate/{20090719201843_create_extents.rb → 131_create_request_types.rb} +2 -2
  23. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
  24. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
  25. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
  26. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
  27. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
  28. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
  29. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  30. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  31. data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
  32. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
  33. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  34. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +11 -0
  35. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
  36. data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20120129014038_create_budget_types.rb} +2 -2
  37. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  38. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
  39. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  40. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
  41. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
  42. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  43. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  44. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  45. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +18 -0
  46. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +18 -0
  47. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +18 -0
  48. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +18 -0
  49. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  50. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  51. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +18 -0
  52. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  53. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  54. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  55. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  56. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +18 -0
  57. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  58. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  59. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  60. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  61. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  62. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  63. data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
  64. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +14 -0
  65. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  66. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  67. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
  68. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
  69. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  70. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  71. data/spec/dummy/db/schema.rb +321 -122
  72. data/spec/fixtures/identifiers.yml +9 -3
  73. data/spec/fixtures/manifestations.yml +120 -120
  74. data/spec/helpers/book_jacket_helper_spec.rb +1 -1
  75. data/spec/spec_helper.rb +5 -0
  76. metadata +167 -63
  77. data/spec/dummy/db/migrate/029_create_subjects.rb +0 -27
  78. data/spec/dummy/db/migrate/142_create_classifications.rb +0 -19
  79. data/spec/dummy/db/migrate/143_create_subject_has_classifications.rb +0 -16
  80. data/spec/dummy/db/migrate/144_create_classification_types.rb +0 -16
  81. data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +0 -16
  82. data/spec/dummy/db/migrate/146_create_subject_types.rb +0 -16
  83. data/spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb +0 -18
  84. data/spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb +0 -16
  85. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  86. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  87. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  88. data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +0 -11
  89. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  90. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  91. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -13
  92. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +0 -52
  93. data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +0 -5
  94. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  95. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
  96. data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +0 -6
  97. data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +0 -6
  98. data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +0 -5
  99. data/spec/dummy/db/test.sqlite3 +0 -0
  100. data/spec/dummy/script/rails +0 -6
@@ -0,0 +1,5 @@
1
+ class AddDefaultLibraryIdToUserImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :user_import_files, :default_library_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDefaultUserGroupIdToUserImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :user_import_files, :default_user_group_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDefaultShelfIdToResourceImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :resource_import_files, :default_shelf_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddManifestationIdToItem < ActiveRecord::Migration
2
+ def change
3
+ add_column :items, :manifestation_id, :integer
4
+ add_index :items, :manifestation_id
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddExpiredAtToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :expired_at, :datetime
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPublicationPlaceToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :publication_place, :text
4
+ end
5
+ end
@@ -0,0 +1,14 @@
1
+ class CreateColors < ActiveRecord::Migration
2
+ def change
3
+ create_table :colors do |t|
4
+ t.integer :library_group_id
5
+ t.string :property
6
+ t.string :code
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+
12
+ add_index :colors, :library_group_id
13
+ end
14
+ end
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToResourceImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :resource_import_results, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddExtentToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :extent, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDimensionsToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :dimensions, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class RenameManifestationPeriodicalToSerial < ActiveRecord::Migration
2
+ def up
3
+ rename_column :manifestations, :periodical, :serial
4
+ end
5
+
6
+ def down
7
+ rename_column :manifestations, :serial, :periodical
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddFullNameTranscriptionToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :full_name_transcription, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDateOfBirthToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :date_of_birth, :datetime
4
+ end
5
+ end
@@ -11,7 +11,30 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20130509185724) do
14
+ ActiveRecord::Schema.define(version: 20141003182825) do
15
+
16
+ create_table "accepts", force: true do |t|
17
+ t.integer "basket_id"
18
+ t.integer "item_id"
19
+ t.integer "librarian_id"
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
+ end
23
+
24
+ add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
+
27
+ create_table "agent_import_file_transitions", force: true do |t|
28
+ t.string "to_state"
29
+ t.text "metadata", default: "{}"
30
+ t.integer "sort_key"
31
+ t.integer "agent_import_file_id"
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
34
+ end
35
+
36
+ add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
37
+ add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
15
38
 
16
39
  create_table "agent_import_files", force: true do |t|
17
40
  t.integer "parent_id"
@@ -20,7 +43,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
20
43
  t.integer "user_id"
21
44
  t.text "note"
22
45
  t.datetime "executed_at"
23
- t.string "state"
24
46
  t.string "agent_import_file_name"
25
47
  t.string "agent_import_content_type"
26
48
  t.integer "agent_import_file_size"
@@ -30,16 +52,15 @@ ActiveRecord::Schema.define(version: 20130509185724) do
30
52
  t.string "agent_import_fingerprint"
31
53
  t.text "error_message"
32
54
  t.string "edit_mode"
55
+ t.string "user_encoding"
33
56
  end
34
57
 
35
58
  add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
36
- add_index "agent_import_files", ["state"], name: "index_agent_import_files_on_state"
37
59
  add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
38
60
 
39
61
  create_table "agent_import_results", force: true do |t|
40
62
  t.integer "agent_import_file_id"
41
63
  t.integer "agent_id"
42
- t.integer "user_id"
43
64
  t.text "body"
44
65
  t.datetime "created_at"
45
66
  t.datetime "updated_at"
@@ -92,7 +113,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
92
113
  end
93
114
 
94
115
  create_table "agents", force: true do |t|
95
- t.integer "user_id"
96
116
  t.string "last_name"
97
117
  t.string "middle_name"
98
118
  t.string "first_name"
@@ -132,7 +152,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
132
152
  t.text "note"
133
153
  t.integer "required_role_id", default: 1, null: false
134
154
  t.integer "required_score", default: 0, null: false
135
- t.string "state"
136
155
  t.text "email"
137
156
  t.text "url"
138
157
  t.text "full_name_alternative_transcription"
@@ -146,10 +165,33 @@ ActiveRecord::Schema.define(version: 20130509185724) do
146
165
  add_index "agents", ["full_name"], name: "index_agents_on_full_name"
147
166
  add_index "agents", ["language_id"], name: "index_agents_on_language_id"
148
167
  add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
149
- add_index "agents", ["user_id"], name: "index_agents_on_user_id", unique: true
150
168
 
151
- create_table "carrier_types", force: true do |t|
152
- t.string "name", null: false
169
+ create_table "baskets", force: true do |t|
170
+ t.integer "user_id"
171
+ t.text "note"
172
+ t.integer "lock_version", default: 0, null: false
173
+ t.datetime "created_at"
174
+ t.datetime "updated_at"
175
+ end
176
+
177
+ add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
178
+
179
+ create_table "bookstores", force: true do |t|
180
+ t.text "name", null: false
181
+ t.string "zip_code"
182
+ t.text "address"
183
+ t.text "note"
184
+ t.string "telephone_number"
185
+ t.string "fax_number"
186
+ t.string "url"
187
+ t.integer "position"
188
+ t.datetime "deleted_at"
189
+ t.datetime "created_at"
190
+ t.datetime "updated_at"
191
+ end
192
+
193
+ create_table "budget_types", force: true do |t|
194
+ t.string "name"
153
195
  t.text "display_name"
154
196
  t.text "note"
155
197
  t.integer "position"
@@ -157,7 +199,7 @@ ActiveRecord::Schema.define(version: 20130509185724) do
157
199
  t.datetime "updated_at"
158
200
  end
159
201
 
160
- create_table "classification_types", force: true do |t|
202
+ create_table "carrier_types", force: true do |t|
161
203
  t.string "name", null: false
162
204
  t.text "display_name"
163
205
  t.text "note"
@@ -166,22 +208,16 @@ ActiveRecord::Schema.define(version: 20130509185724) do
166
208
  t.datetime "updated_at"
167
209
  end
168
210
 
169
- create_table "classifications", force: true do |t|
170
- t.integer "parent_id"
171
- t.string "category", null: false
172
- t.text "note"
173
- t.integer "classification_type_id", null: false
211
+ create_table "colors", force: true do |t|
212
+ t.integer "library_group_id"
213
+ t.string "property"
214
+ t.string "code"
215
+ t.integer "position"
174
216
  t.datetime "created_at"
175
217
  t.datetime "updated_at"
176
- t.integer "lft"
177
- t.integer "rgt"
178
- t.integer "manifestation_id"
179
218
  end
180
219
 
181
- add_index "classifications", ["category"], name: "index_classifications_on_category"
182
- add_index "classifications", ["classification_type_id"], name: "index_classifications_on_classification_type_id"
183
- add_index "classifications", ["manifestation_id"], name: "index_classifications_on_manifestation_id"
184
- add_index "classifications", ["parent_id"], name: "index_classifications_on_parent_id"
220
+ add_index "colors", ["library_group_id"], name: "index_colors_on_library_group_id"
185
221
 
186
222
  create_table "content_types", force: true do |t|
187
223
  t.string "name", null: false
@@ -249,15 +285,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
249
285
  add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
250
286
  add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
251
287
 
252
- create_table "extents", force: true do |t|
253
- t.string "name", null: false
254
- t.text "display_name"
255
- t.text "note"
256
- t.integer "position"
257
- t.datetime "created_at"
258
- t.datetime "updated_at"
259
- end
260
-
261
288
  create_table "form_of_works", force: true do |t|
262
289
  t.string "name", null: false
263
290
  t.text "display_name"
@@ -298,9 +325,20 @@ ActiveRecord::Schema.define(version: 20130509185724) do
298
325
  add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
299
326
  add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
300
327
 
328
+ create_table "import_request_transitions", force: true do |t|
329
+ t.string "to_state"
330
+ t.text "metadata", default: "{}"
331
+ t.integer "sort_key"
332
+ t.integer "import_request_id"
333
+ t.datetime "created_at"
334
+ t.datetime "updated_at"
335
+ end
336
+
337
+ add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
338
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
339
+
301
340
  create_table "import_requests", force: true do |t|
302
341
  t.string "isbn"
303
- t.string "state"
304
342
  t.integer "manifestation_id"
305
343
  t.integer "user_id"
306
344
  t.datetime "created_at"
@@ -317,22 +355,27 @@ ActiveRecord::Schema.define(version: 20130509185724) do
317
355
  t.datetime "created_at"
318
356
  t.datetime "updated_at"
319
357
  t.datetime "deleted_at"
320
- t.integer "shelf_id", default: 1, null: false
321
- t.boolean "include_supplements", default: false, null: false
358
+ t.integer "shelf_id", default: 1, null: false
359
+ t.boolean "include_supplements", default: false, null: false
322
360
  t.text "note"
323
361
  t.string "url"
324
362
  t.integer "price"
325
- t.integer "lock_version", default: 0, null: false
326
- t.integer "required_role_id", default: 1, null: false
327
- t.string "state"
328
- t.integer "required_score", default: 0, null: false
363
+ t.integer "lock_version", default: 0, null: false
364
+ t.integer "required_role_id", default: 1, null: false
365
+ t.integer "required_score", default: 0, null: false
329
366
  t.datetime "acquired_at"
330
367
  t.integer "bookstore_id"
331
368
  t.integer "budget_type_id"
369
+ t.string "binding_item_identifier"
370
+ t.string "binding_call_number"
371
+ t.datetime "binded_at"
372
+ t.integer "manifestation_id"
332
373
  end
333
374
 
375
+ add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
334
376
  add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
335
377
  add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
378
+ add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
336
379
  add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
337
380
  add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
338
381
 
@@ -352,6 +395,53 @@ ActiveRecord::Schema.define(version: 20130509185724) do
352
395
  add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
353
396
  add_index "languages", ["name"], name: "index_languages_on_name", unique: true
354
397
 
398
+ create_table "libraries", force: true do |t|
399
+ t.string "name", null: false
400
+ t.text "display_name"
401
+ t.string "short_display_name", null: false
402
+ t.string "zip_code"
403
+ t.text "street"
404
+ t.text "locality"
405
+ t.text "region"
406
+ t.string "telephone_number_1"
407
+ t.string "telephone_number_2"
408
+ t.string "fax_number"
409
+ t.text "note"
410
+ t.integer "call_number_rows", default: 1, null: false
411
+ t.string "call_number_delimiter", default: "|", null: false
412
+ t.integer "library_group_id", default: 1, null: false
413
+ t.integer "users_count", default: 0, null: false
414
+ t.integer "position"
415
+ t.integer "country_id"
416
+ t.datetime "created_at"
417
+ t.datetime "updated_at"
418
+ t.datetime "deleted_at"
419
+ t.text "opening_hour"
420
+ t.string "isil"
421
+ t.float "latitude"
422
+ t.float "longitude"
423
+ end
424
+
425
+ add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
426
+ add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
427
+
428
+ create_table "library_groups", force: true do |t|
429
+ t.string "name", null: false
430
+ t.text "display_name"
431
+ t.string "short_name", null: false
432
+ t.text "my_networks"
433
+ t.text "login_banner"
434
+ t.text "note"
435
+ t.integer "country_id"
436
+ t.integer "position"
437
+ t.datetime "created_at"
438
+ t.datetime "updated_at"
439
+ t.text "admin_networks"
440
+ t.string "url", default: "http://localhost:3000/"
441
+ end
442
+
443
+ add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
444
+
355
445
  create_table "licenses", force: true do |t|
356
446
  t.string "name", null: false
357
447
  t.string "display_name"
@@ -396,7 +486,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
396
486
  t.string "access_address"
397
487
  t.integer "language_id", default: 1, null: false
398
488
  t.integer "carrier_type_id", default: 1, null: false
399
- t.integer "extent_id", default: 1, null: false
400
489
  t.integer "start_page"
401
490
  t.integer "end_page"
402
491
  t.integer "height"
@@ -412,7 +501,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
412
501
  t.boolean "repository_content", default: false, null: false
413
502
  t.integer "lock_version", default: 0, null: false
414
503
  t.integer "required_role_id", default: 1, null: false
415
- t.string "state"
416
504
  t.integer "required_score", default: 0, null: false
417
505
  t.integer "frequency_id", default: 1, null: false
418
506
  t.boolean "subscription_master", default: false, null: false
@@ -433,22 +521,21 @@ ActiveRecord::Schema.define(version: 20130509185724) do
433
521
  t.integer "volume_number"
434
522
  t.integer "issue_number"
435
523
  t.integer "serial_number"
436
- t.string "ndc"
437
524
  t.integer "content_type_id", default: 1
438
525
  t.integer "year_of_publication"
439
526
  t.text "attachment_meta"
440
527
  t.integer "month_of_publication"
441
- t.string "doi"
442
- t.boolean "periodical"
528
+ t.boolean "fulltext_content"
529
+ t.boolean "serial"
443
530
  t.text "statement_of_responsibility"
531
+ t.text "publication_place"
532
+ t.text "extent"
533
+ t.text "dimensions"
444
534
  end
445
535
 
446
536
  add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
447
- add_index "manifestations", ["carrier_type_id"], name: "index_manifestations_on_carrier_type_id"
448
- add_index "manifestations", ["doi"], name: "index_manifestations_on_doi"
449
- add_index "manifestations", ["frequency_id"], name: "index_manifestations_on_frequency_id"
537
+ add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
450
538
  add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
451
- add_index "manifestations", ["required_role_id"], name: "index_manifestations_on_required_role_id"
452
539
  add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
453
540
 
454
541
  create_table "medium_of_performances", force: true do |t|
@@ -511,6 +598,26 @@ ActiveRecord::Schema.define(version: 20130509185724) do
511
598
  add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
512
599
  add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
513
600
 
601
+ create_table "profiles", force: true do |t|
602
+ t.integer "user_id"
603
+ t.integer "user_group_id"
604
+ t.integer "library_id"
605
+ t.string "locale"
606
+ t.string "user_number"
607
+ t.text "full_name"
608
+ t.text "note"
609
+ t.text "keyword_list"
610
+ t.integer "required_role_id"
611
+ t.datetime "created_at"
612
+ t.datetime "updated_at"
613
+ t.datetime "expired_at"
614
+ t.text "full_name_transcription"
615
+ t.datetime "date_of_birth"
616
+ end
617
+
618
+ add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
619
+ add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
620
+
514
621
  create_table "realize_types", force: true do |t|
515
622
  t.string "name"
516
623
  t.text "display_name"
@@ -532,6 +639,59 @@ ActiveRecord::Schema.define(version: 20130509185724) do
532
639
  add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
533
640
  add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
534
641
 
642
+ create_table "request_status_types", force: true do |t|
643
+ t.string "name", null: false
644
+ t.text "display_name"
645
+ t.text "note"
646
+ t.integer "position"
647
+ t.datetime "created_at"
648
+ t.datetime "updated_at"
649
+ end
650
+
651
+ create_table "request_types", force: true do |t|
652
+ t.string "name", null: false
653
+ t.text "display_name"
654
+ t.text "note"
655
+ t.integer "position"
656
+ t.datetime "created_at"
657
+ t.datetime "updated_at"
658
+ end
659
+
660
+ create_table "resource_export_file_transitions", force: true do |t|
661
+ t.string "to_state"
662
+ t.text "metadata", default: "{}"
663
+ t.integer "sort_key"
664
+ t.integer "resource_export_file_id"
665
+ t.datetime "created_at"
666
+ t.datetime "updated_at"
667
+ end
668
+
669
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
670
+ add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
671
+
672
+ create_table "resource_export_files", force: true do |t|
673
+ t.integer "user_id"
674
+ t.string "resource_export_file_name"
675
+ t.string "resource_export_content_type"
676
+ t.integer "resource_export_file_size"
677
+ t.datetime "resource_export_updated_at"
678
+ t.datetime "executed_at"
679
+ t.datetime "created_at"
680
+ t.datetime "updated_at"
681
+ end
682
+
683
+ create_table "resource_import_file_transitions", force: true do |t|
684
+ t.string "to_state"
685
+ t.text "metadata", default: "{}"
686
+ t.integer "sort_key"
687
+ t.integer "resource_import_file_id"
688
+ t.datetime "created_at"
689
+ t.datetime "updated_at"
690
+ end
691
+
692
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
693
+ add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
694
+
535
695
  create_table "resource_import_files", force: true do |t|
536
696
  t.integer "parent_id"
537
697
  t.string "content_type"
@@ -539,7 +699,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
539
699
  t.integer "user_id"
540
700
  t.text "note"
541
701
  t.datetime "executed_at"
542
- t.string "state"
543
702
  t.string "resource_import_file_name"
544
703
  t.string "resource_import_content_type"
545
704
  t.integer "resource_import_file_size"
@@ -549,10 +708,11 @@ ActiveRecord::Schema.define(version: 20130509185724) do
549
708
  t.string "edit_mode"
550
709
  t.string "resource_import_fingerprint"
551
710
  t.text "error_message"
711
+ t.string "user_encoding"
712
+ t.integer "default_shelf_id"
552
713
  end
553
714
 
554
715
  add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
555
- add_index "resource_import_files", ["state"], name: "index_resource_import_files_on_state"
556
716
  add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
557
717
 
558
718
  create_table "resource_import_results", force: true do |t|
@@ -562,6 +722,7 @@ ActiveRecord::Schema.define(version: 20130509185724) do
562
722
  t.text "body"
563
723
  t.datetime "created_at"
564
724
  t.datetime "updated_at"
725
+ t.text "error_message"
565
726
  end
566
727
 
567
728
  add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
@@ -569,25 +730,29 @@ ActiveRecord::Schema.define(version: 20130509185724) do
569
730
  add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
570
731
 
571
732
  create_table "roles", force: true do |t|
572
- t.string "name"
573
- t.text "display_name"
733
+ t.string "name", null: false
734
+ t.string "display_name"
574
735
  t.text "note"
575
- t.integer "position"
576
736
  t.datetime "created_at"
577
737
  t.datetime "updated_at"
738
+ t.integer "score", default: 0, null: false
739
+ t.integer "position"
578
740
  end
579
741
 
580
- create_table "series_has_manifestations", force: true do |t|
581
- t.integer "series_statement_id"
582
- t.integer "manifestation_id"
742
+ create_table "search_engines", force: true do |t|
743
+ t.string "name", null: false
744
+ t.text "display_name"
745
+ t.string "url", null: false
746
+ t.text "base_url", null: false
747
+ t.text "http_method", null: false
748
+ t.text "query_param", null: false
749
+ t.text "additional_param"
750
+ t.text "note"
583
751
  t.integer "position"
584
752
  t.datetime "created_at"
585
753
  t.datetime "updated_at"
586
754
  end
587
755
 
588
- add_index "series_has_manifestations", ["manifestation_id"], name: "index_series_has_manifestations_on_manifestation_id"
589
- add_index "series_has_manifestations", ["series_statement_id"], name: "index_series_has_manifestations_on_series_statement_id"
590
-
591
756
  create_table "series_statement_merge_lists", force: true do |t|
592
757
  t.string "title"
593
758
  t.datetime "created_at"
@@ -615,8 +780,6 @@ ActiveRecord::Schema.define(version: 20130509185724) do
615
780
  t.text "title_transcription"
616
781
  t.text "title_alternative"
617
782
  t.string "series_statement_identifier"
618
- t.string "issn"
619
- t.boolean "periodical"
620
783
  t.integer "manifestation_id"
621
784
  t.text "note"
622
785
  t.text "title_subseries_transcription"
@@ -631,70 +794,82 @@ ActiveRecord::Schema.define(version: 20130509185724) do
631
794
  add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
632
795
  add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
633
796
 
634
- create_table "subject_has_classifications", force: true do |t|
635
- t.integer "subject_id"
636
- t.string "subject_type"
637
- t.integer "classification_id", null: false
797
+ create_table "shelves", force: true do |t|
798
+ t.string "name", null: false
799
+ t.text "display_name"
800
+ t.text "note"
801
+ t.integer "library_id", default: 1, null: false
802
+ t.integer "items_count", default: 0, null: false
803
+ t.integer "position"
638
804
  t.datetime "created_at"
639
805
  t.datetime "updated_at"
806
+ t.datetime "deleted_at"
807
+ t.boolean "closed", default: false, null: false
640
808
  end
641
809
 
642
- add_index "subject_has_classifications", ["classification_id"], name: "index_subject_has_classifications_on_classification_id"
643
- add_index "subject_has_classifications", ["subject_id"], name: "index_subject_has_classifications_on_subject_id"
810
+ add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
644
811
 
645
- create_table "subject_heading_type_has_subjects", force: true do |t|
646
- t.integer "subject_id", null: false
647
- t.string "subject_type"
648
- t.integer "subject_heading_type_id", null: false
812
+ create_table "subscribes", force: true do |t|
813
+ t.integer "subscription_id", null: false
814
+ t.integer "work_id", null: false
815
+ t.datetime "start_at", null: false
816
+ t.datetime "end_at", null: false
649
817
  t.datetime "created_at"
650
818
  t.datetime "updated_at"
651
819
  end
652
820
 
653
- add_index "subject_heading_type_has_subjects", ["subject_id"], name: "index_subject_heading_type_has_subjects_on_subject_id"
821
+ add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
822
+ add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
654
823
 
655
- create_table "subject_heading_types", force: true do |t|
656
- t.string "name", null: false
657
- t.text "display_name"
824
+ create_table "subscriptions", force: true do |t|
825
+ t.text "title", null: false
658
826
  t.text "note"
659
- t.integer "position"
827
+ t.integer "user_id"
828
+ t.integer "order_list_id"
829
+ t.datetime "deleted_at"
830
+ t.integer "subscribes_count", default: 0, null: false
660
831
  t.datetime "created_at"
661
832
  t.datetime "updated_at"
662
833
  end
663
834
 
664
- create_table "subject_types", force: true do |t|
665
- t.string "name", null: false
666
- t.text "display_name"
667
- t.text "note"
668
- t.integer "position"
835
+ add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
836
+ add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
837
+
838
+ create_table "user_export_file_transitions", force: true do |t|
839
+ t.string "to_state"
840
+ t.text "metadata", default: "{}"
841
+ t.integer "sort_key"
842
+ t.integer "user_export_file_id"
669
843
  t.datetime "created_at"
670
844
  t.datetime "updated_at"
671
845
  end
672
846
 
673
- create_table "subjects", force: true do |t|
674
- t.integer "parent_id"
675
- t.integer "use_term_id"
676
- t.string "term"
677
- t.text "term_transcription"
678
- t.integer "subject_type_id", null: false
679
- t.text "scope_note"
847
+ add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
848
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
849
+
850
+ create_table "user_export_files", force: true do |t|
851
+ t.integer "user_id"
852
+ t.string "user_export_file_name"
853
+ t.string "user_export_content_type"
854
+ t.integer "user_export_file_size"
855
+ t.datetime "user_export_updated_at"
856
+ t.datetime "executed_at"
857
+ t.datetime "created_at"
858
+ t.datetime "updated_at"
859
+ end
860
+
861
+ create_table "user_groups", force: true do |t|
862
+ t.string "name"
863
+ t.text "display_name"
680
864
  t.text "note"
681
- t.integer "required_role_id", default: 1, null: false
682
- t.integer "lock_version", default: 0, null: false
865
+ t.integer "position"
683
866
  t.datetime "created_at"
684
867
  t.datetime "updated_at"
685
868
  t.datetime "deleted_at"
686
- t.string "url"
687
- t.integer "manifestation_id"
688
- t.integer "subject_heading_type_id"
869
+ t.integer "valid_period_for_new_user", default: 0, null: false
870
+ t.datetime "expired_at"
689
871
  end
690
872
 
691
- add_index "subjects", ["manifestation_id"], name: "index_subjects_on_manifestation_id"
692
- add_index "subjects", ["parent_id"], name: "index_subjects_on_parent_id"
693
- add_index "subjects", ["required_role_id"], name: "index_subjects_on_required_role_id"
694
- add_index "subjects", ["subject_type_id"], name: "index_subjects_on_subject_type_id"
695
- add_index "subjects", ["term"], name: "index_subjects_on_term"
696
- add_index "subjects", ["use_term_id"], name: "index_subjects_on_use_term_id"
697
-
698
873
  create_table "user_has_roles", force: true do |t|
699
874
  t.integer "user_id"
700
875
  t.integer "role_id"
@@ -702,14 +877,48 @@ ActiveRecord::Schema.define(version: 20130509185724) do
702
877
  t.datetime "updated_at"
703
878
  end
704
879
 
705
- create_table "users", force: true do |t|
706
- t.integer "user_group_id"
707
- t.integer "required_role_id"
708
- t.string "username"
880
+ add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
881
+ add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
882
+
883
+ create_table "user_import_file_transitions", force: true do |t|
884
+ t.string "to_state"
885
+ t.text "metadata", default: "{}"
886
+ t.integer "sort_key"
887
+ t.integer "user_import_file_id"
888
+ t.datetime "created_at"
889
+ t.datetime "updated_at"
890
+ end
891
+
892
+ add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
893
+ add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
894
+
895
+ create_table "user_import_files", force: true do |t|
896
+ t.integer "user_id"
709
897
  t.text "note"
710
- t.string "locale"
898
+ t.datetime "executed_at"
899
+ t.string "user_import_file_name"
900
+ t.string "user_import_content_type"
901
+ t.string "user_import_file_size"
902
+ t.datetime "user_import_updated_at"
903
+ t.string "user_import_fingerprint"
904
+ t.string "edit_mode"
905
+ t.text "error_message"
906
+ t.datetime "created_at"
907
+ t.datetime "updated_at"
908
+ t.string "user_encoding"
909
+ t.integer "default_library_id"
910
+ t.integer "default_user_group_id"
911
+ end
912
+
913
+ create_table "user_import_results", force: true do |t|
914
+ t.integer "user_import_file_id"
915
+ t.integer "user_id"
916
+ t.text "body"
711
917
  t.datetime "created_at"
712
918
  t.datetime "updated_at"
919
+ end
920
+
921
+ create_table "users", force: true do |t|
713
922
  t.string "email", default: "", null: false
714
923
  t.string "encrypted_password", default: "", null: false
715
924
  t.string "reset_password_token"
@@ -720,19 +929,21 @@ ActiveRecord::Schema.define(version: 20130509185724) do
720
929
  t.datetime "last_sign_in_at"
721
930
  t.string "current_sign_in_ip"
722
931
  t.string "last_sign_in_ip"
723
- t.string "password_salt"
724
- t.string "confirmation_token"
725
- t.datetime "confirmed_at"
726
- t.datetime "confirmation_sent_at"
727
- t.string "unconfirmed_email"
932
+ t.datetime "created_at"
933
+ t.datetime "updated_at"
934
+ t.string "username"
935
+ t.datetime "deleted_at"
936
+ t.datetime "expired_at"
728
937
  t.integer "failed_attempts", default: 0
729
938
  t.string "unlock_token"
730
939
  t.datetime "locked_at"
731
- t.string "authentication_token"
940
+ t.datetime "confirmed_at"
732
941
  end
733
942
 
734
943
  add_index "users", ["email"], name: "index_users_on_email"
735
944
  add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
945
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
946
+ add_index "users", ["username"], name: "index_users_on_username", unique: true
736
947
 
737
948
  create_table "versions", force: true do |t|
738
949
  t.string "item_type", null: false
@@ -745,16 +956,4 @@ ActiveRecord::Schema.define(version: 20130509185724) do
745
956
 
746
957
  add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
747
958
 
748
- create_table "work_has_subjects", force: true do |t|
749
- t.integer "subject_id"
750
- t.string "subject_type"
751
- t.integer "work_id"
752
- t.integer "position"
753
- t.datetime "created_at"
754
- t.datetime "updated_at"
755
- end
756
-
757
- add_index "work_has_subjects", ["subject_id"], name: "index_work_has_subjects_on_subject_id"
758
- add_index "work_has_subjects", ["work_id"], name: "index_work_has_subjects_on_work_id"
759
-
760
959
  end