enju_library 0.1.0.pre42 → 0.1.0.pre43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/enju_library/ability.rb +3 -1
- data/app/views/libraries/index.html.erb +3 -0
- data/app/views/library_groups/index.html.erb +1 -1
- data/config/locales/translation_en.yml +6 -0
- data/config/locales/translation_ja.yml +6 -0
- data/lib/enju_library/version.rb +1 -1
- data/spec/dummy/db/schema.rb +227 -227
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 767d1a2574aa91d33f0942d5f420d18ab116dae6
|
4
|
+
data.tar.gz: ce58f1227a0b7b218349fc8ea9ea1aec067837a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 462c6d6bcc2961b23c4720fa695c5f93312e134455fafdcd84c7232d520e68b5c4bf8376a90b4dcf6704fc71d7356a8f7c59533082d4d4849e9ce16e74a604c2
|
7
|
+
data.tar.gz: 1d7d237e366edba4e726f09813640b1307b38d229435465e437e121e3cf850feb48e6afc36529d10324c5924855e7a74ea922f2fa122560a0098cdd7d99e68f9
|
@@ -11,7 +11,9 @@ module EnjuLibrary
|
|
11
11
|
end
|
12
12
|
can [:read, :create, :update], Library
|
13
13
|
can [:delete, :destroy], Library do |library|
|
14
|
-
library.
|
14
|
+
if library.profiles.empty?
|
15
|
+
true if library.shelves.empty? && !library.web?
|
16
|
+
end
|
15
17
|
end
|
16
18
|
can [:read, :create, :update], Shelf
|
17
19
|
can [:delete, :destroy], Shelf do |shelf|
|
@@ -1,3 +1,6 @@
|
|
1
|
+
<% if flash[:notice] %>
|
2
|
+
<div style="color:red"><%= flash[:notice] %></div>
|
3
|
+
<% end %>
|
1
4
|
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
5
|
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.library')) -%></h1>
|
3
6
|
<div id="content_list">
|
@@ -108,3 +108,9 @@ en:
|
|
108
108
|
update_display_order: Update display order
|
109
109
|
page:
|
110
110
|
restart_required: "Web server restart required"
|
111
|
+
accept:
|
112
|
+
item_not_found: " not found."
|
113
|
+
enter_item_identifier: "Enter item identifier."
|
114
|
+
already_accepted: " is already accepted."
|
115
|
+
accept: "Accept!"
|
116
|
+
successfully_accepted: "This items was successfully accepted."
|
@@ -108,3 +108,9 @@ ja:
|
|
108
108
|
update_display_order: "表示順序を変更する"
|
109
109
|
page:
|
110
110
|
restart_required: "Webサーバの再起動が必要です"
|
111
|
+
accept:
|
112
|
+
item_not_found: "が見つかりません。"
|
113
|
+
enter_item_identifier: "所蔵情報番号を入力してください。"
|
114
|
+
already_accepted: "はすでに検収されています。"
|
115
|
+
accept: "検収"
|
116
|
+
successfully_accepted: "この資料は正常に検収されました。"
|
data/lib/enju_library/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -25,8 +25,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
25
25
|
add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
|
26
26
|
|
27
27
|
create_table "agent_import_file_transitions", force: :cascade do |t|
|
28
|
-
t.string "to_state"
|
29
|
-
t.text "metadata",
|
28
|
+
t.string "to_state"
|
29
|
+
t.text "metadata", default: "{}"
|
30
30
|
t.integer "sort_key"
|
31
31
|
t.integer "agent_import_file_id"
|
32
32
|
t.datetime "created_at"
|
@@ -38,21 +38,21 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
38
38
|
|
39
39
|
create_table "agent_import_files", force: :cascade do |t|
|
40
40
|
t.integer "parent_id"
|
41
|
-
t.string "content_type"
|
41
|
+
t.string "content_type"
|
42
42
|
t.integer "size"
|
43
43
|
t.integer "user_id"
|
44
44
|
t.text "note"
|
45
45
|
t.datetime "executed_at"
|
46
|
-
t.string "agent_import_file_name"
|
47
|
-
t.string "agent_import_content_type"
|
46
|
+
t.string "agent_import_file_name"
|
47
|
+
t.string "agent_import_content_type"
|
48
48
|
t.integer "agent_import_file_size"
|
49
49
|
t.datetime "agent_import_updated_at"
|
50
50
|
t.datetime "created_at"
|
51
51
|
t.datetime "updated_at"
|
52
|
-
t.string "agent_import_fingerprint"
|
52
|
+
t.string "agent_import_fingerprint"
|
53
53
|
t.text "error_message"
|
54
|
-
t.string "edit_mode"
|
55
|
-
t.string "user_encoding"
|
54
|
+
t.string "edit_mode"
|
55
|
+
t.string "user_encoding"
|
56
56
|
end
|
57
57
|
|
58
58
|
add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
|
@@ -67,7 +67,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
create_table "agent_merge_lists", force: :cascade do |t|
|
70
|
-
t.string "title"
|
70
|
+
t.string "title"
|
71
71
|
t.datetime "created_at"
|
72
72
|
t.datetime "updated_at"
|
73
73
|
end
|
@@ -83,7 +83,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
83
83
|
add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
|
84
84
|
|
85
85
|
create_table "agent_relationship_types", force: :cascade do |t|
|
86
|
-
t.string "name",
|
86
|
+
t.string "name", null: false
|
87
87
|
t.text "display_name"
|
88
88
|
t.text "note"
|
89
89
|
t.integer "position"
|
@@ -104,7 +104,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
104
104
|
add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
|
105
105
|
|
106
106
|
create_table "agent_types", force: :cascade do |t|
|
107
|
-
t.string "name",
|
107
|
+
t.string "name", null: false
|
108
108
|
t.text "display_name"
|
109
109
|
t.text "note"
|
110
110
|
t.integer "position"
|
@@ -113,51 +113,51 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
113
113
|
end
|
114
114
|
|
115
115
|
create_table "agents", force: :cascade do |t|
|
116
|
-
t.string "last_name"
|
117
|
-
t.string "middle_name"
|
118
|
-
t.string "first_name"
|
119
|
-
t.string "last_name_transcription"
|
120
|
-
t.string "middle_name_transcription"
|
121
|
-
t.string "first_name_transcription"
|
122
|
-
t.string "corporate_name"
|
123
|
-
t.string "corporate_name_transcription"
|
124
|
-
t.string "full_name"
|
116
|
+
t.string "last_name"
|
117
|
+
t.string "middle_name"
|
118
|
+
t.string "first_name"
|
119
|
+
t.string "last_name_transcription"
|
120
|
+
t.string "middle_name_transcription"
|
121
|
+
t.string "first_name_transcription"
|
122
|
+
t.string "corporate_name"
|
123
|
+
t.string "corporate_name_transcription"
|
124
|
+
t.string "full_name"
|
125
125
|
t.text "full_name_transcription"
|
126
126
|
t.text "full_name_alternative"
|
127
127
|
t.datetime "created_at"
|
128
128
|
t.datetime "updated_at"
|
129
129
|
t.datetime "deleted_at"
|
130
|
-
t.string "zip_code_1"
|
131
|
-
t.string "zip_code_2"
|
130
|
+
t.string "zip_code_1"
|
131
|
+
t.string "zip_code_2"
|
132
132
|
t.text "address_1"
|
133
133
|
t.text "address_2"
|
134
134
|
t.text "address_1_note"
|
135
135
|
t.text "address_2_note"
|
136
|
-
t.string "telephone_number_1"
|
137
|
-
t.string "telephone_number_2"
|
138
|
-
t.string "fax_number_1"
|
139
|
-
t.string "fax_number_2"
|
136
|
+
t.string "telephone_number_1"
|
137
|
+
t.string "telephone_number_2"
|
138
|
+
t.string "fax_number_1"
|
139
|
+
t.string "fax_number_2"
|
140
140
|
t.text "other_designation"
|
141
141
|
t.text "place"
|
142
|
-
t.string "postal_code"
|
142
|
+
t.string "postal_code"
|
143
143
|
t.text "street"
|
144
144
|
t.text "locality"
|
145
145
|
t.text "region"
|
146
146
|
t.datetime "date_of_birth"
|
147
147
|
t.datetime "date_of_death"
|
148
|
-
t.integer "language_id",
|
149
|
-
t.integer "country_id",
|
150
|
-
t.integer "agent_type_id",
|
151
|
-
t.integer "lock_version",
|
148
|
+
t.integer "language_id", default: 1, null: false
|
149
|
+
t.integer "country_id", default: 1, null: false
|
150
|
+
t.integer "agent_type_id", default: 1, null: false
|
151
|
+
t.integer "lock_version", default: 0, null: false
|
152
152
|
t.text "note"
|
153
|
-
t.integer "required_role_id",
|
154
|
-
t.integer "required_score",
|
153
|
+
t.integer "required_role_id", default: 1, null: false
|
154
|
+
t.integer "required_score", default: 0, null: false
|
155
155
|
t.text "email"
|
156
156
|
t.text "url"
|
157
157
|
t.text "full_name_alternative_transcription"
|
158
|
-
t.string "birth_date"
|
159
|
-
t.string "death_date"
|
160
|
-
t.string "agent_identifier"
|
158
|
+
t.string "birth_date"
|
159
|
+
t.string "death_date"
|
160
|
+
t.string "agent_identifier"
|
161
161
|
end
|
162
162
|
|
163
163
|
add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
|
@@ -177,13 +177,13 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
177
177
|
add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
|
178
178
|
|
179
179
|
create_table "bookstores", force: :cascade do |t|
|
180
|
-
t.text "name",
|
181
|
-
t.string "zip_code"
|
180
|
+
t.text "name", null: false
|
181
|
+
t.string "zip_code"
|
182
182
|
t.text "address"
|
183
183
|
t.text "note"
|
184
|
-
t.string "telephone_number"
|
185
|
-
t.string "fax_number"
|
186
|
-
t.string "url"
|
184
|
+
t.string "telephone_number"
|
185
|
+
t.string "fax_number"
|
186
|
+
t.string "url"
|
187
187
|
t.integer "position"
|
188
188
|
t.datetime "deleted_at"
|
189
189
|
t.datetime "created_at"
|
@@ -191,7 +191,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
191
191
|
end
|
192
192
|
|
193
193
|
create_table "budget_types", force: :cascade do |t|
|
194
|
-
t.string "name"
|
194
|
+
t.string "name"
|
195
195
|
t.text "display_name"
|
196
196
|
t.text "note"
|
197
197
|
t.integer "position"
|
@@ -212,7 +212,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
212
212
|
add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
|
213
213
|
|
214
214
|
create_table "carrier_types", force: :cascade do |t|
|
215
|
-
t.string "name",
|
215
|
+
t.string "name", null: false
|
216
216
|
t.text "display_name"
|
217
217
|
t.text "note"
|
218
218
|
t.integer "position"
|
@@ -268,7 +268,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
268
268
|
add_index "checkout_stat_has_users", ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
|
269
269
|
|
270
270
|
create_table "checkout_types", force: :cascade do |t|
|
271
|
-
t.string "name",
|
271
|
+
t.string "name", null: false
|
272
272
|
t.text "display_name"
|
273
273
|
t.text "note"
|
274
274
|
t.integer "position"
|
@@ -303,7 +303,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
303
303
|
add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
|
304
304
|
|
305
305
|
create_table "circulation_statuses", force: :cascade do |t|
|
306
|
-
t.string "name",
|
306
|
+
t.string "name", null: false
|
307
307
|
t.text "display_name"
|
308
308
|
t.text "note"
|
309
309
|
t.integer "position"
|
@@ -313,8 +313,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
313
313
|
|
314
314
|
create_table "colors", force: :cascade do |t|
|
315
315
|
t.integer "library_group_id"
|
316
|
-
t.string "property"
|
317
|
-
t.string "code"
|
316
|
+
t.string "property"
|
317
|
+
t.string "code"
|
318
318
|
t.integer "position"
|
319
319
|
t.datetime "created_at"
|
320
320
|
t.datetime "updated_at"
|
@@ -323,7 +323,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
323
323
|
add_index "colors", ["library_group_id"], name: "index_colors_on_library_group_id"
|
324
324
|
|
325
325
|
create_table "content_types", force: :cascade do |t|
|
326
|
-
t.string "name",
|
326
|
+
t.string "name", null: false
|
327
327
|
t.text "display_name"
|
328
328
|
t.text "note"
|
329
329
|
t.integer "position"
|
@@ -332,11 +332,11 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
332
332
|
end
|
333
333
|
|
334
334
|
create_table "countries", force: :cascade do |t|
|
335
|
-
t.string "name",
|
335
|
+
t.string "name", null: false
|
336
336
|
t.text "display_name"
|
337
|
-
t.string "alpha_2"
|
338
|
-
t.string "alpha_3"
|
339
|
-
t.string "numeric_3"
|
337
|
+
t.string "alpha_2"
|
338
|
+
t.string "alpha_3"
|
339
|
+
t.string "numeric_3"
|
340
340
|
t.text "note"
|
341
341
|
t.integer "position"
|
342
342
|
end
|
@@ -347,7 +347,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
347
347
|
add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
|
348
348
|
|
349
349
|
create_table "create_types", force: :cascade do |t|
|
350
|
-
t.string "name"
|
350
|
+
t.string "name"
|
351
351
|
t.text "display_name"
|
352
352
|
t.text "note"
|
353
353
|
t.integer "position"
|
@@ -378,7 +378,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
378
378
|
add_index "donates", ["item_id"], name: "index_donates_on_item_id"
|
379
379
|
|
380
380
|
create_table "event_categories", force: :cascade do |t|
|
381
|
-
t.string "name",
|
381
|
+
t.string "name", null: false
|
382
382
|
t.text "display_name"
|
383
383
|
t.text "note"
|
384
384
|
t.integer "position"
|
@@ -387,8 +387,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
387
387
|
end
|
388
388
|
|
389
389
|
create_table "event_export_file_transitions", force: :cascade do |t|
|
390
|
-
t.string "to_state"
|
391
|
-
t.text "metadata",
|
390
|
+
t.string "to_state"
|
391
|
+
t.text "metadata", default: "{}"
|
392
392
|
t.integer "sort_key"
|
393
393
|
t.integer "event_export_file_id"
|
394
394
|
t.datetime "created_at"
|
@@ -400,8 +400,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
400
400
|
|
401
401
|
create_table "event_export_files", force: :cascade do |t|
|
402
402
|
t.integer "user_id"
|
403
|
-
t.string "event_export_file_name"
|
404
|
-
t.string "event_export_content_type"
|
403
|
+
t.string "event_export_file_name"
|
404
|
+
t.string "event_export_content_type"
|
405
405
|
t.integer "event_export_file_size"
|
406
406
|
t.datetime "event_export_updated_at"
|
407
407
|
t.datetime "executed_at"
|
@@ -410,8 +410,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
410
410
|
end
|
411
411
|
|
412
412
|
create_table "event_import_file_transitions", force: :cascade do |t|
|
413
|
-
t.string "to_state"
|
414
|
-
t.text "metadata",
|
413
|
+
t.string "to_state"
|
414
|
+
t.text "metadata", default: "{}"
|
415
415
|
t.integer "sort_key"
|
416
416
|
t.integer "event_import_file_id"
|
417
417
|
t.datetime "created_at"
|
@@ -423,21 +423,21 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
423
423
|
|
424
424
|
create_table "event_import_files", force: :cascade do |t|
|
425
425
|
t.integer "parent_id"
|
426
|
-
t.string "content_type"
|
426
|
+
t.string "content_type"
|
427
427
|
t.integer "size"
|
428
428
|
t.integer "user_id"
|
429
429
|
t.text "note"
|
430
430
|
t.datetime "executed_at"
|
431
|
-
t.string "event_import_file_name"
|
432
|
-
t.string "event_import_content_type"
|
431
|
+
t.string "event_import_file_name"
|
432
|
+
t.string "event_import_content_type"
|
433
433
|
t.integer "event_import_file_size"
|
434
434
|
t.datetime "event_import_updated_at"
|
435
|
-
t.string "edit_mode"
|
435
|
+
t.string "edit_mode"
|
436
436
|
t.datetime "created_at"
|
437
437
|
t.datetime "updated_at"
|
438
|
-
t.string "event_import_fingerprint"
|
438
|
+
t.string "event_import_fingerprint"
|
439
439
|
t.text "error_message"
|
440
|
-
t.string "user_encoding"
|
440
|
+
t.string "user_encoding"
|
441
441
|
t.integer "default_library_id"
|
442
442
|
t.integer "default_event_category_id"
|
443
443
|
end
|
@@ -454,13 +454,13 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
454
454
|
end
|
455
455
|
|
456
456
|
create_table "events", force: :cascade do |t|
|
457
|
-
t.integer "library_id",
|
458
|
-
t.integer "event_category_id",
|
459
|
-
t.string "name"
|
457
|
+
t.integer "library_id", null: false
|
458
|
+
t.integer "event_category_id", null: false
|
459
|
+
t.string "name"
|
460
460
|
t.text "note"
|
461
461
|
t.datetime "start_at"
|
462
462
|
t.datetime "end_at"
|
463
|
-
t.boolean "all_day",
|
463
|
+
t.boolean "all_day", default: false, null: false
|
464
464
|
t.datetime "deleted_at"
|
465
465
|
t.text "display_name"
|
466
466
|
t.datetime "created_at"
|
@@ -482,7 +482,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
482
482
|
add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
|
483
483
|
|
484
484
|
create_table "extents", force: :cascade do |t|
|
485
|
-
t.string "name",
|
485
|
+
t.string "name", null: false
|
486
486
|
t.text "display_name"
|
487
487
|
t.text "note"
|
488
488
|
t.integer "position"
|
@@ -491,7 +491,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
491
491
|
end
|
492
492
|
|
493
493
|
create_table "form_of_works", force: :cascade do |t|
|
494
|
-
t.string "name",
|
494
|
+
t.string "name", null: false
|
495
495
|
t.text "display_name"
|
496
496
|
t.text "note"
|
497
497
|
t.integer "position"
|
@@ -500,7 +500,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
500
500
|
end
|
501
501
|
|
502
502
|
create_table "frequencies", force: :cascade do |t|
|
503
|
-
t.string "name",
|
503
|
+
t.string "name", null: false
|
504
504
|
t.text "display_name"
|
505
505
|
t.text "note"
|
506
506
|
t.integer "position"
|
@@ -509,7 +509,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
509
509
|
end
|
510
510
|
|
511
511
|
create_table "identifier_types", force: :cascade do |t|
|
512
|
-
t.string "name"
|
512
|
+
t.string "name"
|
513
513
|
t.text "display_name"
|
514
514
|
t.text "note"
|
515
515
|
t.integer "position"
|
@@ -518,8 +518,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
518
518
|
end
|
519
519
|
|
520
520
|
create_table "identifiers", force: :cascade do |t|
|
521
|
-
t.string "body",
|
522
|
-
t.integer "identifier_type_id",
|
521
|
+
t.string "body", null: false
|
522
|
+
t.integer "identifier_type_id", null: false
|
523
523
|
t.integer "manifestation_id"
|
524
524
|
t.boolean "primary"
|
525
525
|
t.integer "position"
|
@@ -531,8 +531,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
531
531
|
add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
|
532
532
|
|
533
533
|
create_table "import_request_transitions", force: :cascade do |t|
|
534
|
-
t.string "to_state"
|
535
|
-
t.text "metadata",
|
534
|
+
t.string "to_state"
|
535
|
+
t.text "metadata", default: "{}"
|
536
536
|
t.integer "sort_key"
|
537
537
|
t.integer "import_request_id"
|
538
538
|
t.datetime "created_at"
|
@@ -543,7 +543,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
543
543
|
add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
|
544
544
|
|
545
545
|
create_table "import_requests", force: :cascade do |t|
|
546
|
-
t.string "isbn"
|
546
|
+
t.string "isbn"
|
547
547
|
t.integer "manifestation_id"
|
548
548
|
t.integer "user_id"
|
549
549
|
t.datetime "created_at"
|
@@ -565,26 +565,26 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
565
565
|
add_index "item_has_use_restrictions", ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
|
566
566
|
|
567
567
|
create_table "items", force: :cascade do |t|
|
568
|
-
t.string "call_number"
|
569
|
-
t.string "item_identifier"
|
568
|
+
t.string "call_number"
|
569
|
+
t.string "item_identifier"
|
570
570
|
t.datetime "created_at"
|
571
571
|
t.datetime "updated_at"
|
572
572
|
t.datetime "deleted_at"
|
573
|
-
t.integer "shelf_id",
|
574
|
-
t.boolean "include_supplements",
|
573
|
+
t.integer "shelf_id", default: 1, null: false
|
574
|
+
t.boolean "include_supplements", default: false, null: false
|
575
575
|
t.text "note"
|
576
|
-
t.string "url"
|
576
|
+
t.string "url"
|
577
577
|
t.integer "price"
|
578
|
-
t.integer "lock_version",
|
579
|
-
t.integer "required_role_id",
|
580
|
-
t.integer "required_score",
|
578
|
+
t.integer "lock_version", default: 0, null: false
|
579
|
+
t.integer "required_role_id", default: 1, null: false
|
580
|
+
t.integer "required_score", default: 0, null: false
|
581
581
|
t.datetime "acquired_at"
|
582
582
|
t.integer "bookstore_id"
|
583
583
|
t.integer "budget_type_id"
|
584
|
-
t.integer "circulation_status_id",
|
585
|
-
t.integer "checkout_type_id",
|
586
|
-
t.string "binding_item_identifier"
|
587
|
-
t.string "binding_call_number"
|
584
|
+
t.integer "circulation_status_id", default: 5, null: false
|
585
|
+
t.integer "checkout_type_id", default: 1, null: false
|
586
|
+
t.string "binding_item_identifier"
|
587
|
+
t.string "binding_call_number"
|
588
588
|
t.datetime "binded_at"
|
589
589
|
t.integer "manifestation_id"
|
590
590
|
end
|
@@ -599,12 +599,12 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
599
599
|
add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
|
600
600
|
|
601
601
|
create_table "languages", force: :cascade do |t|
|
602
|
-
t.string "name",
|
603
|
-
t.string "native_name"
|
602
|
+
t.string "name", null: false
|
603
|
+
t.string "native_name"
|
604
604
|
t.text "display_name"
|
605
|
-
t.string "iso_639_1"
|
606
|
-
t.string "iso_639_2"
|
607
|
-
t.string "iso_639_3"
|
605
|
+
t.string "iso_639_1"
|
606
|
+
t.string "iso_639_2"
|
607
|
+
t.string "iso_639_3"
|
608
608
|
t.text "note"
|
609
609
|
t.integer "position"
|
610
610
|
end
|
@@ -630,28 +630,28 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
630
630
|
add_index "lending_policies", ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
|
631
631
|
|
632
632
|
create_table "libraries", force: :cascade do |t|
|
633
|
-
t.string "name",
|
633
|
+
t.string "name", null: false
|
634
634
|
t.text "display_name"
|
635
|
-
t.string "short_display_name",
|
636
|
-
t.string "zip_code"
|
635
|
+
t.string "short_display_name", null: false
|
636
|
+
t.string "zip_code"
|
637
637
|
t.text "street"
|
638
638
|
t.text "locality"
|
639
639
|
t.text "region"
|
640
|
-
t.string "telephone_number_1"
|
641
|
-
t.string "telephone_number_2"
|
642
|
-
t.string "fax_number"
|
640
|
+
t.string "telephone_number_1"
|
641
|
+
t.string "telephone_number_2"
|
642
|
+
t.string "fax_number"
|
643
643
|
t.text "note"
|
644
|
-
t.integer "call_number_rows",
|
645
|
-
t.string "call_number_delimiter",
|
646
|
-
t.integer "library_group_id",
|
647
|
-
t.integer "users_count",
|
644
|
+
t.integer "call_number_rows", default: 1, null: false
|
645
|
+
t.string "call_number_delimiter", default: "|", null: false
|
646
|
+
t.integer "library_group_id", default: 1, null: false
|
647
|
+
t.integer "users_count", default: 0, null: false
|
648
648
|
t.integer "position"
|
649
649
|
t.integer "country_id"
|
650
650
|
t.datetime "created_at"
|
651
651
|
t.datetime "updated_at"
|
652
652
|
t.datetime "deleted_at"
|
653
653
|
t.text "opening_hour"
|
654
|
-
t.string "isil"
|
654
|
+
t.string "isil"
|
655
655
|
t.float "latitude"
|
656
656
|
t.float "longitude"
|
657
657
|
end
|
@@ -660,9 +660,9 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
660
660
|
add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
|
661
661
|
|
662
662
|
create_table "library_groups", force: :cascade do |t|
|
663
|
-
t.string "name",
|
663
|
+
t.string "name", null: false
|
664
664
|
t.text "display_name"
|
665
|
-
t.string "short_name",
|
665
|
+
t.string "short_name", null: false
|
666
666
|
t.text "my_networks"
|
667
667
|
t.text "login_banner"
|
668
668
|
t.text "note"
|
@@ -671,15 +671,15 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
671
671
|
t.datetime "created_at"
|
672
672
|
t.datetime "updated_at"
|
673
673
|
t.text "admin_networks"
|
674
|
-
t.string "url",
|
674
|
+
t.string "url", default: "http://localhost:3000/"
|
675
675
|
t.text "settings"
|
676
676
|
end
|
677
677
|
|
678
678
|
add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
|
679
679
|
|
680
680
|
create_table "licenses", force: :cascade do |t|
|
681
|
-
t.string "name",
|
682
|
-
t.string "display_name"
|
681
|
+
t.string "name", null: false
|
682
|
+
t.string "display_name"
|
683
683
|
t.text "note"
|
684
684
|
t.integer "position"
|
685
685
|
t.datetime "created_at"
|
@@ -687,8 +687,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
687
687
|
end
|
688
688
|
|
689
689
|
create_table "manifestation_checkout_stat_transitions", force: :cascade do |t|
|
690
|
-
t.string "to_state"
|
691
|
-
t.text "metadata",
|
690
|
+
t.string "to_state"
|
691
|
+
t.text "metadata", default: "{}"
|
692
692
|
t.integer "sort_key"
|
693
693
|
t.integer "manifestation_checkout_stat_id"
|
694
694
|
t.datetime "created_at"
|
@@ -712,7 +712,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
712
712
|
add_index "manifestation_checkout_stats", ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
|
713
713
|
|
714
714
|
create_table "manifestation_relationship_types", force: :cascade do |t|
|
715
|
-
t.string "name",
|
715
|
+
t.string "name", null: false
|
716
716
|
t.text "display_name"
|
717
717
|
t.text "note"
|
718
718
|
t.integer "position"
|
@@ -733,8 +733,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
733
733
|
add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
|
734
734
|
|
735
735
|
create_table "manifestation_reserve_stat_transitions", force: :cascade do |t|
|
736
|
-
t.string "to_state"
|
737
|
-
t.text "metadata",
|
736
|
+
t.string "to_state"
|
737
|
+
t.text "metadata", default: "{}"
|
738
738
|
t.integer "sort_key"
|
739
739
|
t.integer "manifestation_reserve_stat_id"
|
740
740
|
t.datetime "created_at"
|
@@ -758,19 +758,19 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
758
758
|
add_index "manifestation_reserve_stats", ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
|
759
759
|
|
760
760
|
create_table "manifestations", force: :cascade do |t|
|
761
|
-
t.text "original_title",
|
761
|
+
t.text "original_title", null: false
|
762
762
|
t.text "title_alternative"
|
763
763
|
t.text "title_transcription"
|
764
|
-
t.string "classification_number"
|
765
|
-
t.string "manifestation_identifier"
|
764
|
+
t.string "classification_number"
|
765
|
+
t.string "manifestation_identifier"
|
766
766
|
t.datetime "date_of_publication"
|
767
767
|
t.datetime "date_copyrighted"
|
768
768
|
t.datetime "created_at"
|
769
769
|
t.datetime "updated_at"
|
770
770
|
t.datetime "deleted_at"
|
771
|
-
t.string "access_address"
|
772
|
-
t.integer "language_id",
|
773
|
-
t.integer "carrier_type_id",
|
771
|
+
t.string "access_address"
|
772
|
+
t.integer "language_id", default: 1, null: false
|
773
|
+
t.integer "carrier_type_id", default: 1, null: false
|
774
774
|
t.integer "start_page"
|
775
775
|
t.integer "end_page"
|
776
776
|
t.integer "height"
|
@@ -778,19 +778,19 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
778
778
|
t.integer "depth"
|
779
779
|
t.integer "price"
|
780
780
|
t.text "fulltext"
|
781
|
-
t.string "volume_number_string"
|
782
|
-
t.string "issue_number_string"
|
783
|
-
t.string "serial_number_string"
|
781
|
+
t.string "volume_number_string"
|
782
|
+
t.string "issue_number_string"
|
783
|
+
t.string "serial_number_string"
|
784
784
|
t.integer "edition"
|
785
785
|
t.text "note"
|
786
|
-
t.boolean "repository_content",
|
787
|
-
t.integer "lock_version",
|
788
|
-
t.integer "required_role_id",
|
789
|
-
t.integer "required_score",
|
790
|
-
t.integer "frequency_id",
|
791
|
-
t.boolean "subscription_master",
|
792
|
-
t.string "attachment_file_name"
|
793
|
-
t.string "attachment_content_type"
|
786
|
+
t.boolean "repository_content", default: false, null: false
|
787
|
+
t.integer "lock_version", default: 0, null: false
|
788
|
+
t.integer "required_role_id", default: 1, null: false
|
789
|
+
t.integer "required_score", default: 0, null: false
|
790
|
+
t.integer "frequency_id", default: 1, null: false
|
791
|
+
t.boolean "subscription_master", default: false, null: false
|
792
|
+
t.string "attachment_file_name"
|
793
|
+
t.string "attachment_content_type"
|
794
794
|
t.integer "attachment_file_size"
|
795
795
|
t.datetime "attachment_updated_at"
|
796
796
|
t.text "title_alternative_transcription"
|
@@ -801,17 +801,17 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
801
801
|
t.datetime "date_submitted"
|
802
802
|
t.datetime "date_accepted"
|
803
803
|
t.datetime "date_caputured"
|
804
|
-
t.string "pub_date"
|
805
|
-
t.string "edition_string"
|
804
|
+
t.string "pub_date"
|
805
|
+
t.string "edition_string"
|
806
806
|
t.integer "volume_number"
|
807
807
|
t.integer "issue_number"
|
808
808
|
t.integer "serial_number"
|
809
|
-
t.integer "content_type_id",
|
809
|
+
t.integer "content_type_id", default: 1
|
810
810
|
t.integer "year_of_publication"
|
811
811
|
t.text "attachment_meta"
|
812
812
|
t.integer "month_of_publication"
|
813
813
|
t.boolean "fulltext_content"
|
814
|
-
t.string "doi"
|
814
|
+
t.string "doi"
|
815
815
|
t.boolean "serial"
|
816
816
|
t.text "statement_of_responsibility"
|
817
817
|
t.text "publication_place"
|
@@ -826,7 +826,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
826
826
|
add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
|
827
827
|
|
828
828
|
create_table "medium_of_performances", force: :cascade do |t|
|
829
|
-
t.string "name",
|
829
|
+
t.string "name", null: false
|
830
830
|
t.text "display_name"
|
831
831
|
t.text "note"
|
832
832
|
t.integer "position"
|
@@ -835,8 +835,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
835
835
|
end
|
836
836
|
|
837
837
|
create_table "message_request_transitions", force: :cascade do |t|
|
838
|
-
t.string "to_state"
|
839
|
-
t.text "metadata",
|
838
|
+
t.string "to_state"
|
839
|
+
t.text "metadata", default: "{}"
|
840
840
|
t.integer "sort_key"
|
841
841
|
t.integer "message_request_id"
|
842
842
|
t.datetime "created_at"
|
@@ -858,11 +858,11 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
858
858
|
end
|
859
859
|
|
860
860
|
create_table "message_templates", force: :cascade do |t|
|
861
|
-
t.string "status",
|
862
|
-
t.text "title",
|
863
|
-
t.text "body",
|
861
|
+
t.string "status", null: false
|
862
|
+
t.text "title", null: false
|
863
|
+
t.text "body", null: false
|
864
864
|
t.integer "position"
|
865
|
-
t.string "locale",
|
865
|
+
t.string "locale", default: "en"
|
866
866
|
t.datetime "created_at"
|
867
867
|
t.datetime "updated_at"
|
868
868
|
end
|
@@ -870,8 +870,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
870
870
|
add_index "message_templates", ["status"], name: "index_message_templates_on_status", unique: true
|
871
871
|
|
872
872
|
create_table "message_transitions", force: :cascade do |t|
|
873
|
-
t.string "to_state"
|
874
|
-
t.text "metadata",
|
873
|
+
t.string "to_state"
|
874
|
+
t.text "metadata", default: "{}"
|
875
875
|
t.integer "sort_key"
|
876
876
|
t.integer "message_id"
|
877
877
|
t.datetime "created_at"
|
@@ -885,7 +885,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
885
885
|
t.datetime "read_at"
|
886
886
|
t.integer "receiver_id"
|
887
887
|
t.integer "sender_id"
|
888
|
-
t.string "subject",
|
888
|
+
t.string "subject", null: false
|
889
889
|
t.text "body"
|
890
890
|
t.integer "message_request_id"
|
891
891
|
t.integer "parent_id"
|
@@ -925,25 +925,25 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
925
925
|
|
926
926
|
create_table "picture_files", force: :cascade do |t|
|
927
927
|
t.integer "picture_attachable_id"
|
928
|
-
t.string "picture_attachable_type"
|
929
|
-
t.string "content_type"
|
928
|
+
t.string "picture_attachable_type"
|
929
|
+
t.string "content_type"
|
930
930
|
t.text "title"
|
931
|
-
t.string "thumbnail"
|
931
|
+
t.string "thumbnail"
|
932
932
|
t.integer "position"
|
933
933
|
t.datetime "created_at"
|
934
934
|
t.datetime "updated_at"
|
935
|
-
t.string "picture_file_name"
|
936
|
-
t.string "picture_content_type"
|
935
|
+
t.string "picture_file_name"
|
936
|
+
t.string "picture_content_type"
|
937
937
|
t.integer "picture_file_size"
|
938
938
|
t.datetime "picture_updated_at"
|
939
939
|
t.text "picture_meta"
|
940
|
-
t.string "picture_fingerprint"
|
940
|
+
t.string "picture_fingerprint"
|
941
941
|
end
|
942
942
|
|
943
943
|
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
|
944
944
|
|
945
945
|
create_table "produce_types", force: :cascade do |t|
|
946
|
-
t.string "name"
|
946
|
+
t.string "name"
|
947
947
|
t.text "display_name"
|
948
948
|
t.text "note"
|
949
949
|
t.integer "position"
|
@@ -967,16 +967,16 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
967
967
|
t.integer "user_id"
|
968
968
|
t.integer "user_group_id"
|
969
969
|
t.integer "library_id"
|
970
|
-
t.string "locale"
|
971
|
-
t.string "user_number"
|
970
|
+
t.string "locale"
|
971
|
+
t.string "user_number"
|
972
972
|
t.text "full_name"
|
973
973
|
t.text "note"
|
974
974
|
t.text "keyword_list"
|
975
975
|
t.integer "required_role_id"
|
976
976
|
t.datetime "created_at"
|
977
977
|
t.datetime "updated_at"
|
978
|
-
t.string "checkout_icalendar_token"
|
979
|
-
t.boolean "save_checkout_history",
|
978
|
+
t.string "checkout_icalendar_token"
|
979
|
+
t.boolean "save_checkout_history", default: false, null: false
|
980
980
|
t.datetime "expired_at"
|
981
981
|
t.text "full_name_transcription"
|
982
982
|
t.datetime "date_of_birth"
|
@@ -987,7 +987,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
987
987
|
add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
|
988
988
|
|
989
989
|
create_table "realize_types", force: :cascade do |t|
|
990
|
-
t.string "name"
|
990
|
+
t.string "name"
|
991
991
|
t.text "display_name"
|
992
992
|
t.text "note"
|
993
993
|
t.integer "position"
|
@@ -1008,7 +1008,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1008
1008
|
add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
|
1009
1009
|
|
1010
1010
|
create_table "request_status_types", force: :cascade do |t|
|
1011
|
-
t.string "name",
|
1011
|
+
t.string "name", null: false
|
1012
1012
|
t.text "display_name"
|
1013
1013
|
t.text "note"
|
1014
1014
|
t.integer "position"
|
@@ -1017,7 +1017,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1017
1017
|
end
|
1018
1018
|
|
1019
1019
|
create_table "request_types", force: :cascade do |t|
|
1020
|
-
t.string "name",
|
1020
|
+
t.string "name", null: false
|
1021
1021
|
t.text "display_name"
|
1022
1022
|
t.text "note"
|
1023
1023
|
t.integer "position"
|
@@ -1048,8 +1048,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1048
1048
|
add_index "reserve_stat_has_users", ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
|
1049
1049
|
|
1050
1050
|
create_table "reserve_transitions", force: :cascade do |t|
|
1051
|
-
t.string "to_state"
|
1052
|
-
t.text "metadata",
|
1051
|
+
t.string "to_state"
|
1052
|
+
t.text "metadata", default: "{}"
|
1053
1053
|
t.integer "sort_key"
|
1054
1054
|
t.integer "reserve_id"
|
1055
1055
|
t.datetime "created_at"
|
@@ -1083,8 +1083,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1083
1083
|
add_index "reserves", ["user_id"], name: "index_reserves_on_user_id"
|
1084
1084
|
|
1085
1085
|
create_table "resource_export_file_transitions", force: :cascade do |t|
|
1086
|
-
t.string "to_state"
|
1087
|
-
t.text "metadata",
|
1086
|
+
t.string "to_state"
|
1087
|
+
t.text "metadata", default: "{}"
|
1088
1088
|
t.integer "sort_key"
|
1089
1089
|
t.integer "resource_export_file_id"
|
1090
1090
|
t.datetime "created_at"
|
@@ -1096,8 +1096,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1096
1096
|
|
1097
1097
|
create_table "resource_export_files", force: :cascade do |t|
|
1098
1098
|
t.integer "user_id"
|
1099
|
-
t.string "resource_export_file_name"
|
1100
|
-
t.string "resource_export_content_type"
|
1099
|
+
t.string "resource_export_file_name"
|
1100
|
+
t.string "resource_export_content_type"
|
1101
1101
|
t.integer "resource_export_file_size"
|
1102
1102
|
t.datetime "resource_export_updated_at"
|
1103
1103
|
t.datetime "executed_at"
|
@@ -1106,8 +1106,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1106
1106
|
end
|
1107
1107
|
|
1108
1108
|
create_table "resource_import_file_transitions", force: :cascade do |t|
|
1109
|
-
t.string "to_state"
|
1110
|
-
t.text "metadata",
|
1109
|
+
t.string "to_state"
|
1110
|
+
t.text "metadata", default: "{}"
|
1111
1111
|
t.integer "sort_key"
|
1112
1112
|
t.integer "resource_import_file_id"
|
1113
1113
|
t.datetime "created_at"
|
@@ -1119,21 +1119,21 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1119
1119
|
|
1120
1120
|
create_table "resource_import_files", force: :cascade do |t|
|
1121
1121
|
t.integer "parent_id"
|
1122
|
-
t.string "content_type"
|
1122
|
+
t.string "content_type"
|
1123
1123
|
t.integer "size"
|
1124
1124
|
t.integer "user_id"
|
1125
1125
|
t.text "note"
|
1126
1126
|
t.datetime "executed_at"
|
1127
|
-
t.string "resource_import_file_name"
|
1128
|
-
t.string "resource_import_content_type"
|
1127
|
+
t.string "resource_import_file_name"
|
1128
|
+
t.string "resource_import_content_type"
|
1129
1129
|
t.integer "resource_import_file_size"
|
1130
1130
|
t.datetime "resource_import_updated_at"
|
1131
1131
|
t.datetime "created_at"
|
1132
1132
|
t.datetime "updated_at"
|
1133
|
-
t.string "edit_mode"
|
1134
|
-
t.string "resource_import_fingerprint"
|
1133
|
+
t.string "edit_mode"
|
1134
|
+
t.string "resource_import_fingerprint"
|
1135
1135
|
t.text "error_message"
|
1136
|
-
t.string "user_encoding"
|
1136
|
+
t.string "user_encoding"
|
1137
1137
|
t.integer "default_shelf_id"
|
1138
1138
|
end
|
1139
1139
|
|
@@ -1155,22 +1155,22 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1155
1155
|
add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
|
1156
1156
|
|
1157
1157
|
create_table "roles", force: :cascade do |t|
|
1158
|
-
t.string "name",
|
1159
|
-
t.string "display_name"
|
1158
|
+
t.string "name", null: false
|
1159
|
+
t.string "display_name"
|
1160
1160
|
t.text "note"
|
1161
1161
|
t.datetime "created_at"
|
1162
1162
|
t.datetime "updated_at"
|
1163
|
-
t.integer "score",
|
1163
|
+
t.integer "score", default: 0, null: false
|
1164
1164
|
t.integer "position"
|
1165
1165
|
end
|
1166
1166
|
|
1167
1167
|
create_table "search_engines", force: :cascade do |t|
|
1168
|
-
t.string "name",
|
1168
|
+
t.string "name", null: false
|
1169
1169
|
t.text "display_name"
|
1170
|
-
t.string "url",
|
1171
|
-
t.text "base_url",
|
1172
|
-
t.text "http_method",
|
1173
|
-
t.text "query_param",
|
1170
|
+
t.string "url", null: false
|
1171
|
+
t.text "base_url", null: false
|
1172
|
+
t.text "http_method", null: false
|
1173
|
+
t.text "query_param", null: false
|
1174
1174
|
t.text "additional_param"
|
1175
1175
|
t.text "note"
|
1176
1176
|
t.integer "position"
|
@@ -1179,7 +1179,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1179
1179
|
end
|
1180
1180
|
|
1181
1181
|
create_table "series_statement_merge_lists", force: :cascade do |t|
|
1182
|
-
t.string "title"
|
1182
|
+
t.string "title"
|
1183
1183
|
t.datetime "created_at"
|
1184
1184
|
t.datetime "updated_at"
|
1185
1185
|
end
|
@@ -1204,7 +1204,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1204
1204
|
t.datetime "updated_at"
|
1205
1205
|
t.text "title_transcription"
|
1206
1206
|
t.text "title_alternative"
|
1207
|
-
t.string "series_statement_identifier"
|
1207
|
+
t.string "series_statement_identifier"
|
1208
1208
|
t.integer "manifestation_id"
|
1209
1209
|
t.text "note"
|
1210
1210
|
t.text "title_subseries_transcription"
|
@@ -1220,16 +1220,16 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1220
1220
|
add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
|
1221
1221
|
|
1222
1222
|
create_table "shelves", force: :cascade do |t|
|
1223
|
-
t.string "name",
|
1223
|
+
t.string "name", null: false
|
1224
1224
|
t.text "display_name"
|
1225
1225
|
t.text "note"
|
1226
|
-
t.integer "library_id",
|
1227
|
-
t.integer "items_count",
|
1226
|
+
t.integer "library_id", default: 1, null: false
|
1227
|
+
t.integer "items_count", default: 0, null: false
|
1228
1228
|
t.integer "position"
|
1229
1229
|
t.datetime "created_at"
|
1230
1230
|
t.datetime "updated_at"
|
1231
1231
|
t.datetime "deleted_at"
|
1232
|
-
t.boolean "closed",
|
1232
|
+
t.boolean "closed", default: false, null: false
|
1233
1233
|
end
|
1234
1234
|
|
1235
1235
|
add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
|
@@ -1261,7 +1261,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1261
1261
|
add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
|
1262
1262
|
|
1263
1263
|
create_table "use_restrictions", force: :cascade do |t|
|
1264
|
-
t.string "name",
|
1264
|
+
t.string "name", null: false
|
1265
1265
|
t.text "display_name"
|
1266
1266
|
t.text "note"
|
1267
1267
|
t.integer "position"
|
@@ -1270,8 +1270,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1270
1270
|
end
|
1271
1271
|
|
1272
1272
|
create_table "user_checkout_stat_transitions", force: :cascade do |t|
|
1273
|
-
t.string "to_state"
|
1274
|
-
t.text "metadata",
|
1273
|
+
t.string "to_state"
|
1274
|
+
t.text "metadata", default: "{}"
|
1275
1275
|
t.integer "sort_key"
|
1276
1276
|
t.integer "user_checkout_stat_id"
|
1277
1277
|
t.datetime "created_at"
|
@@ -1295,8 +1295,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1295
1295
|
add_index "user_checkout_stats", ["user_id"], name: "index_user_checkout_stats_on_user_id"
|
1296
1296
|
|
1297
1297
|
create_table "user_export_file_transitions", force: :cascade do |t|
|
1298
|
-
t.string "to_state"
|
1299
|
-
t.text "metadata",
|
1298
|
+
t.string "to_state"
|
1299
|
+
t.text "metadata", default: "{}"
|
1300
1300
|
t.integer "sort_key"
|
1301
1301
|
t.integer "user_export_file_id"
|
1302
1302
|
t.datetime "created_at"
|
@@ -1308,8 +1308,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1308
1308
|
|
1309
1309
|
create_table "user_export_files", force: :cascade do |t|
|
1310
1310
|
t.integer "user_id"
|
1311
|
-
t.string "user_export_file_name"
|
1312
|
-
t.string "user_export_content_type"
|
1311
|
+
t.string "user_export_file_name"
|
1312
|
+
t.string "user_export_content_type"
|
1313
1313
|
t.integer "user_export_file_size"
|
1314
1314
|
t.datetime "user_export_updated_at"
|
1315
1315
|
t.datetime "executed_at"
|
@@ -1338,18 +1338,18 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1338
1338
|
add_index "user_group_has_checkout_types", ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
|
1339
1339
|
|
1340
1340
|
create_table "user_groups", force: :cascade do |t|
|
1341
|
-
t.string "name"
|
1341
|
+
t.string "name"
|
1342
1342
|
t.text "display_name"
|
1343
1343
|
t.text "note"
|
1344
1344
|
t.integer "position"
|
1345
1345
|
t.datetime "created_at"
|
1346
1346
|
t.datetime "updated_at"
|
1347
1347
|
t.datetime "deleted_at"
|
1348
|
-
t.integer "valid_period_for_new_user",
|
1348
|
+
t.integer "valid_period_for_new_user", default: 0, null: false
|
1349
1349
|
t.datetime "expired_at"
|
1350
|
-
t.integer "number_of_day_to_notify_overdue",
|
1351
|
-
t.integer "number_of_day_to_notify_due_date",
|
1352
|
-
t.integer "number_of_time_to_notify_overdue",
|
1350
|
+
t.integer "number_of_day_to_notify_overdue", default: 1, null: false
|
1351
|
+
t.integer "number_of_day_to_notify_due_date", default: 7, null: false
|
1352
|
+
t.integer "number_of_time_to_notify_overdue", default: 3, null: false
|
1353
1353
|
end
|
1354
1354
|
|
1355
1355
|
create_table "user_has_roles", force: :cascade do |t|
|
@@ -1363,8 +1363,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1363
1363
|
add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
|
1364
1364
|
|
1365
1365
|
create_table "user_import_file_transitions", force: :cascade do |t|
|
1366
|
-
t.string "to_state"
|
1367
|
-
t.text "metadata",
|
1366
|
+
t.string "to_state"
|
1367
|
+
t.text "metadata", default: "{}"
|
1368
1368
|
t.integer "sort_key"
|
1369
1369
|
t.integer "user_import_file_id"
|
1370
1370
|
t.datetime "created_at"
|
@@ -1378,16 +1378,16 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1378
1378
|
t.integer "user_id"
|
1379
1379
|
t.text "note"
|
1380
1380
|
t.datetime "executed_at"
|
1381
|
-
t.string "user_import_file_name"
|
1382
|
-
t.string "user_import_content_type"
|
1383
|
-
t.string "user_import_file_size"
|
1381
|
+
t.string "user_import_file_name"
|
1382
|
+
t.string "user_import_content_type"
|
1383
|
+
t.string "user_import_file_size"
|
1384
1384
|
t.datetime "user_import_updated_at"
|
1385
|
-
t.string "user_import_fingerprint"
|
1386
|
-
t.string "edit_mode"
|
1385
|
+
t.string "user_import_fingerprint"
|
1386
|
+
t.string "edit_mode"
|
1387
1387
|
t.text "error_message"
|
1388
1388
|
t.datetime "created_at"
|
1389
1389
|
t.datetime "updated_at"
|
1390
|
-
t.string "user_encoding"
|
1390
|
+
t.string "user_encoding"
|
1391
1391
|
t.integer "default_library_id"
|
1392
1392
|
t.integer "default_user_group_id"
|
1393
1393
|
end
|
@@ -1401,8 +1401,8 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1401
1401
|
end
|
1402
1402
|
|
1403
1403
|
create_table "user_reserve_stat_transitions", force: :cascade do |t|
|
1404
|
-
t.string "to_state"
|
1405
|
-
t.text "metadata",
|
1404
|
+
t.string "to_state"
|
1405
|
+
t.text "metadata", default: "{}"
|
1406
1406
|
t.integer "sort_key"
|
1407
1407
|
t.integer "user_reserve_stat_id"
|
1408
1408
|
t.datetime "created_at"
|
@@ -1426,25 +1426,25 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1426
1426
|
add_index "user_reserve_stats", ["user_id"], name: "index_user_reserve_stats_on_user_id"
|
1427
1427
|
|
1428
1428
|
create_table "users", force: :cascade do |t|
|
1429
|
-
t.string "email",
|
1430
|
-
t.string "encrypted_password",
|
1431
|
-
t.string "reset_password_token"
|
1429
|
+
t.string "email", default: "", null: false
|
1430
|
+
t.string "encrypted_password", default: "", null: false
|
1431
|
+
t.string "reset_password_token"
|
1432
1432
|
t.datetime "reset_password_sent_at"
|
1433
1433
|
t.datetime "remember_created_at"
|
1434
|
-
t.integer "sign_in_count",
|
1434
|
+
t.integer "sign_in_count", default: 0
|
1435
1435
|
t.datetime "current_sign_in_at"
|
1436
1436
|
t.datetime "last_sign_in_at"
|
1437
|
-
t.string "current_sign_in_ip"
|
1438
|
-
t.string "last_sign_in_ip"
|
1437
|
+
t.string "current_sign_in_ip"
|
1438
|
+
t.string "last_sign_in_ip"
|
1439
1439
|
t.datetime "created_at"
|
1440
1440
|
t.datetime "updated_at"
|
1441
|
-
t.boolean "save_checkout_history",
|
1442
|
-
t.string "checkout_icalendar_token"
|
1443
|
-
t.string "username"
|
1441
|
+
t.boolean "save_checkout_history", default: false, null: false
|
1442
|
+
t.string "checkout_icalendar_token"
|
1443
|
+
t.string "username"
|
1444
1444
|
t.datetime "deleted_at"
|
1445
1445
|
t.datetime "expired_at"
|
1446
|
-
t.integer "failed_attempts",
|
1447
|
-
t.string "unlock_token"
|
1446
|
+
t.integer "failed_attempts", default: 0
|
1447
|
+
t.string "unlock_token"
|
1448
1448
|
t.datetime "locked_at"
|
1449
1449
|
t.datetime "confirmed_at"
|
1450
1450
|
end
|
@@ -1456,10 +1456,10 @@ ActiveRecord::Schema.define(version: 20150221063719) do
|
|
1456
1456
|
add_index "users", ["username"], name: "index_users_on_username", unique: true
|
1457
1457
|
|
1458
1458
|
create_table "versions", force: :cascade do |t|
|
1459
|
-
t.string "item_type",
|
1460
|
-
t.integer "item_id",
|
1461
|
-
t.string "event",
|
1462
|
-
t.string "whodunnit"
|
1459
|
+
t.string "item_type", null: false
|
1460
|
+
t.integer "item_id", null: false
|
1461
|
+
t.string "event", null: false
|
1462
|
+
t.string "whodunnit"
|
1463
1463
|
t.text "object"
|
1464
1464
|
t.datetime "created_at"
|
1465
1465
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: geocoder
|
@@ -198,14 +198,14 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 0.1.0.
|
201
|
+
version: 0.1.0.pre47
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 0.1.0.
|
208
|
+
version: 0.1.0.pre47
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: enju_inter_library_loan
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,7 +263,7 @@ dependencies:
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
|
-
name:
|
266
|
+
name: kramdown
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
269
|
- - ">="
|
@@ -798,7 +798,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
798
798
|
version: 1.3.1
|
799
799
|
requirements: []
|
800
800
|
rubyforge_project:
|
801
|
-
rubygems_version: 2.4.5
|
801
|
+
rubygems_version: 2.4.5.1
|
802
802
|
signing_key:
|
803
803
|
specification_version: 4
|
804
804
|
summary: enju_library plugin
|