enju_biblio 0.2.0.beta.2 → 0.2.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/agent.rb +20 -19
- data/app/models/agent_import_file.rb +6 -6
- data/app/models/agent_import_file_transition.rb +2 -2
- data/app/models/agent_merge_list.rb +1 -1
- data/app/models/agent_relationship_type.rb +1 -1
- data/app/models/agent_type.rb +1 -1
- data/app/models/carrier_type.rb +1 -1
- data/app/models/content_type.rb +1 -1
- data/app/models/country.rb +4 -5
- data/app/models/create_type.rb +1 -1
- data/app/models/form_of_work.rb +1 -1
- data/app/models/frequency.rb +1 -1
- data/app/models/identifier.rb +1 -1
- data/app/models/identifier_type.rb +1 -1
- data/app/models/import_request.rb +1 -1
- data/app/models/import_request_transition.rb +2 -2
- data/app/models/item.rb +5 -5
- data/app/models/language.rb +5 -6
- data/app/models/license.rb +2 -2
- data/app/models/manifestation.rb +11 -11
- data/app/models/manifestation_relationship_type.rb +1 -1
- data/app/models/medium_of_performance.rb +1 -1
- data/app/models/picture_file.rb +8 -6
- data/app/models/produce_type.rb +1 -1
- data/app/models/realize_type.rb +1 -1
- data/app/models/resource_export_file.rb +2 -2
- data/app/models/resource_export_file_transition.rb +2 -2
- data/app/models/resource_import_file.rb +6 -6
- data/app/models/resource_import_file_transition.rb +2 -2
- data/app/models/series_statement.rb +1 -1
- data/app/models/series_statement_merge_list.rb +1 -1
- data/lib/enju_biblio/engine.rb +0 -2
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/tasks/enju_biblio_tasks.rake +4 -7
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/dummy/config/application.rb +3 -2
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
- data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +5 -0
- data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb +5 -0
- data/spec/dummy/db/schema.rb +7 -2
- data/spec/factories/create_types.rb +1 -1
- data/spec/factories/produce_types.rb +1 -1
- data/spec/factories/realize_types.rb +1 -1
- data/spec/fixtures/agent_import_files.yml +6 -6
- data/spec/fixtures/agent_merge_lists.yml +1 -1
- data/spec/fixtures/agent_relationship_types.yml +1 -1
- data/spec/fixtures/agent_types.yml +1 -1
- data/spec/fixtures/agents.yml +20 -19
- data/spec/fixtures/carrier_types.yml +1 -1
- data/spec/fixtures/content_types.yml +1 -1
- data/spec/fixtures/countries.yml +4 -5
- data/spec/fixtures/create_types.yml +1 -1
- data/spec/fixtures/form_of_works.yml +1 -1
- data/spec/fixtures/frequencies.yml +1 -1
- data/spec/fixtures/identifier_types.yml +1 -1
- data/spec/fixtures/identifiers.yml +1 -1
- data/spec/fixtures/import_requests.yml +1 -1
- data/spec/fixtures/items.yml +5 -5
- data/spec/fixtures/languages.yml +5 -6
- data/spec/fixtures/licenses.yml +2 -2
- data/spec/fixtures/manifestation_relationship_types.yml +1 -1
- data/spec/fixtures/manifestations.yml +11 -11
- data/spec/fixtures/medium_of_performances.yml +1 -1
- data/spec/fixtures/picture_files.yml +8 -6
- data/spec/fixtures/produce_types.yml +1 -1
- data/spec/fixtures/realize_types.yml +1 -1
- data/spec/fixtures/resource_export_files.yml +2 -2
- data/spec/fixtures/resource_import_files.yml +6 -6
- data/spec/fixtures/series_statement_merge_lists.yml +1 -1
- data/spec/fixtures/series_statements.yml +1 -1
- data/spec/models/agent_import_file_spec.rb +6 -6
- data/spec/models/agent_merge_list_spec.rb +1 -1
- data/spec/models/agent_relationship_type_spec.rb +1 -1
- data/spec/models/agent_spec.rb +20 -19
- data/spec/models/agent_type_spec.rb +1 -1
- data/spec/models/carrier_type_spec.rb +1 -1
- data/spec/models/content_type_spec.rb +1 -1
- data/spec/models/country_spec.rb +4 -5
- data/spec/models/create_type_spec.rb +1 -1
- data/spec/models/form_of_work_spec.rb +1 -1
- data/spec/models/frequency_spec.rb +1 -1
- data/spec/models/identifier_spec.rb +1 -1
- data/spec/models/identifier_type_spec.rb +1 -1
- data/spec/models/import_request_spec.rb +1 -1
- data/spec/models/item_spec.rb +5 -5
- data/spec/models/language_spec.rb +5 -6
- data/spec/models/license_spec.rb +2 -2
- data/spec/models/manifestation_relationship_type_spec.rb +1 -1
- data/spec/models/manifestation_spec.rb +11 -11
- data/spec/models/medium_of_performance_spec.rb +1 -1
- data/spec/models/picture_file_spec.rb +8 -6
- data/spec/models/produce_type_spec.rb +1 -1
- data/spec/models/realize_type_spec.rb +1 -1
- data/spec/models/resource_export_file_spec.rb +2 -2
- data/spec/models/resource_import_file_spec.rb +6 -6
- data/spec/models/series_statement_merge_list_spec.rb +1 -1
- data/spec/models/series_statement_spec.rb +1 -1
- metadata +72 -52
- data/spec/dummy/app/models/ability.rb +0 -205
- data/spec/dummy/config/initializers/resque_mailer.rb +0 -1
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
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:
|
14
|
+
ActiveRecord::Schema.define(version: 20160813130535) do
|
15
15
|
|
16
16
|
create_table "accepts", force: :cascade do |t|
|
17
17
|
t.integer "basket_id"
|
@@ -768,6 +768,8 @@ ActiveRecord::Schema.define(version: 20160811102604) do
|
|
768
768
|
t.boolean "allow_bookmark_external_url", default: false, null: false
|
769
769
|
t.string "url", default: "http://localhost:3000/"
|
770
770
|
t.text "settings"
|
771
|
+
t.text "html_snippet"
|
772
|
+
t.string "email"
|
771
773
|
end
|
772
774
|
|
773
775
|
add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
|
@@ -1460,6 +1462,7 @@ ActiveRecord::Schema.define(version: 20160811102604) do
|
|
1460
1462
|
t.integer "user_export_file_id"
|
1461
1463
|
t.datetime "created_at"
|
1462
1464
|
t.datetime "updated_at"
|
1465
|
+
t.boolean "most_recent"
|
1463
1466
|
end
|
1464
1467
|
|
1465
1468
|
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
|
@@ -1528,6 +1531,7 @@ ActiveRecord::Schema.define(version: 20160811102604) do
|
|
1528
1531
|
t.integer "user_import_file_id"
|
1529
1532
|
t.datetime "created_at"
|
1530
1533
|
t.datetime "updated_at"
|
1534
|
+
t.boolean "most_recent"
|
1531
1535
|
end
|
1532
1536
|
|
1533
1537
|
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
|
@@ -1539,7 +1543,7 @@ ActiveRecord::Schema.define(version: 20160811102604) do
|
|
1539
1543
|
t.datetime "executed_at"
|
1540
1544
|
t.string "user_import_file_name"
|
1541
1545
|
t.string "user_import_content_type"
|
1542
|
-
t.
|
1546
|
+
t.integer "user_import_file_size"
|
1543
1547
|
t.datetime "user_import_updated_at"
|
1544
1548
|
t.string "user_import_fingerprint"
|
1545
1549
|
t.string "edit_mode"
|
@@ -1557,6 +1561,7 @@ ActiveRecord::Schema.define(version: 20160811102604) do
|
|
1557
1561
|
t.text "body"
|
1558
1562
|
t.datetime "created_at"
|
1559
1563
|
t.datetime "updated_at"
|
1564
|
+
t.text "error_message"
|
1560
1565
|
end
|
1561
1566
|
|
1562
1567
|
create_table "user_reserve_stat_transitions", force: :cascade do |t|
|
@@ -25,19 +25,19 @@ agent_import_file_00003:
|
|
25
25
|
#
|
26
26
|
# id :integer not null, primary key
|
27
27
|
# parent_id :integer
|
28
|
-
# content_type :string
|
28
|
+
# content_type :string
|
29
29
|
# size :integer
|
30
30
|
# user_id :integer
|
31
31
|
# note :text
|
32
32
|
# executed_at :datetime
|
33
|
-
# agent_import_file_name :string
|
34
|
-
# agent_import_content_type :string
|
33
|
+
# agent_import_file_name :string
|
34
|
+
# agent_import_content_type :string
|
35
35
|
# agent_import_file_size :integer
|
36
36
|
# agent_import_updated_at :datetime
|
37
37
|
# created_at :datetime
|
38
38
|
# updated_at :datetime
|
39
|
-
# agent_import_fingerprint :string
|
39
|
+
# agent_import_fingerprint :string
|
40
40
|
# error_message :text
|
41
|
-
# edit_mode :string
|
42
|
-
# user_encoding :string
|
41
|
+
# edit_mode :string
|
42
|
+
# user_encoding :string
|
43
43
|
#
|
data/spec/fixtures/agents.yml
CHANGED
@@ -277,33 +277,33 @@ agent_00202:
|
|
277
277
|
# Table name: agents
|
278
278
|
#
|
279
279
|
# id :integer not null, primary key
|
280
|
-
# last_name :string
|
281
|
-
# middle_name :string
|
282
|
-
# first_name :string
|
283
|
-
# last_name_transcription :string
|
284
|
-
# middle_name_transcription :string
|
285
|
-
# first_name_transcription :string
|
286
|
-
# corporate_name :string
|
287
|
-
# corporate_name_transcription :string
|
288
|
-
# full_name :string
|
280
|
+
# last_name :string
|
281
|
+
# middle_name :string
|
282
|
+
# first_name :string
|
283
|
+
# last_name_transcription :string
|
284
|
+
# middle_name_transcription :string
|
285
|
+
# first_name_transcription :string
|
286
|
+
# corporate_name :string
|
287
|
+
# corporate_name_transcription :string
|
288
|
+
# full_name :string
|
289
289
|
# full_name_transcription :text
|
290
290
|
# full_name_alternative :text
|
291
291
|
# created_at :datetime
|
292
292
|
# updated_at :datetime
|
293
293
|
# deleted_at :datetime
|
294
|
-
# zip_code_1 :string
|
295
|
-
# zip_code_2 :string
|
294
|
+
# zip_code_1 :string
|
295
|
+
# zip_code_2 :string
|
296
296
|
# address_1 :text
|
297
297
|
# address_2 :text
|
298
298
|
# address_1_note :text
|
299
299
|
# address_2_note :text
|
300
|
-
# telephone_number_1 :string
|
301
|
-
# telephone_number_2 :string
|
302
|
-
# fax_number_1 :string
|
303
|
-
# fax_number_2 :string
|
300
|
+
# telephone_number_1 :string
|
301
|
+
# telephone_number_2 :string
|
302
|
+
# fax_number_1 :string
|
303
|
+
# fax_number_2 :string
|
304
304
|
# other_designation :text
|
305
305
|
# place :text
|
306
|
-
# postal_code :string
|
306
|
+
# postal_code :string
|
307
307
|
# street :text
|
308
308
|
# locality :text
|
309
309
|
# region :text
|
@@ -319,7 +319,8 @@ agent_00202:
|
|
319
319
|
# email :text
|
320
320
|
# url :text
|
321
321
|
# full_name_alternative_transcription :text
|
322
|
-
# birth_date :string
|
323
|
-
# death_date :string
|
324
|
-
# agent_identifier :string
|
322
|
+
# birth_date :string
|
323
|
+
# death_date :string
|
324
|
+
# agent_identifier :string
|
325
|
+
# profile_id :integer
|
325
326
|
#
|
data/spec/fixtures/countries.yml
CHANGED
@@ -2048,12 +2048,11 @@ country_00170:
|
|
2048
2048
|
# Table name: countries
|
2049
2049
|
#
|
2050
2050
|
# id :integer not null, primary key
|
2051
|
-
# name :string
|
2051
|
+
# name :string not null
|
2052
2052
|
# display_name :text
|
2053
|
-
# alpha_2 :string
|
2054
|
-
# alpha_3 :string
|
2055
|
-
# numeric_3 :string
|
2053
|
+
# alpha_2 :string
|
2054
|
+
# alpha_3 :string
|
2055
|
+
# numeric_3 :string
|
2056
2056
|
# note :text
|
2057
2057
|
# position :integer
|
2058
2058
|
#
|
2059
|
-
|
@@ -109,7 +109,7 @@ identifier_00217:
|
|
109
109
|
# Table name: identifiers
|
110
110
|
#
|
111
111
|
# id :integer not null, primary key
|
112
|
-
# body :string
|
112
|
+
# body :string not null
|
113
113
|
# identifier_type_id :integer not null
|
114
114
|
# manifestation_id :integer
|
115
115
|
# primary :boolean
|
data/spec/fixtures/items.yml
CHANGED
@@ -282,15 +282,15 @@ item_00025:
|
|
282
282
|
# Table name: items
|
283
283
|
#
|
284
284
|
# id :integer not null, primary key
|
285
|
-
# call_number :string
|
286
|
-
# item_identifier :string
|
285
|
+
# call_number :string
|
286
|
+
# item_identifier :string
|
287
287
|
# created_at :datetime
|
288
288
|
# updated_at :datetime
|
289
289
|
# deleted_at :datetime
|
290
290
|
# shelf_id :integer default(1), not null
|
291
291
|
# include_supplements :boolean default(FALSE), not null
|
292
292
|
# note :text
|
293
|
-
# url :string
|
293
|
+
# url :string
|
294
294
|
# price :integer
|
295
295
|
# lock_version :integer default(0), not null
|
296
296
|
# required_role_id :integer default(1), not null
|
@@ -300,8 +300,8 @@ item_00025:
|
|
300
300
|
# budget_type_id :integer
|
301
301
|
# circulation_status_id :integer default(5), not null
|
302
302
|
# checkout_type_id :integer default(1), not null
|
303
|
-
# binding_item_identifier :string
|
304
|
-
# binding_call_number :string
|
303
|
+
# binding_item_identifier :string
|
304
|
+
# binding_call_number :string
|
305
305
|
# binded_at :datetime
|
306
306
|
# manifestation_id :integer
|
307
307
|
#
|
data/spec/fixtures/languages.yml
CHANGED
@@ -1889,13 +1889,12 @@ language_00140:
|
|
1889
1889
|
# Table name: languages
|
1890
1890
|
#
|
1891
1891
|
# id :integer not null, primary key
|
1892
|
-
# name :string
|
1893
|
-
# native_name :string
|
1892
|
+
# name :string not null
|
1893
|
+
# native_name :string
|
1894
1894
|
# display_name :text
|
1895
|
-
# iso_639_1 :string
|
1896
|
-
# iso_639_2 :string
|
1897
|
-
# iso_639_3 :string
|
1895
|
+
# iso_639_1 :string
|
1896
|
+
# iso_639_2 :string
|
1897
|
+
# iso_639_3 :string
|
1898
1898
|
# note :text
|
1899
1899
|
# position :integer
|
1900
1900
|
#
|
1901
|
-
|
data/spec/fixtures/licenses.yml
CHANGED
@@ -1833,14 +1833,14 @@ manifestation_00217:
|
|
1833
1833
|
# original_title :text not null
|
1834
1834
|
# title_alternative :text
|
1835
1835
|
# title_transcription :text
|
1836
|
-
# classification_number :string
|
1837
|
-
# manifestation_identifier :string
|
1836
|
+
# classification_number :string
|
1837
|
+
# manifestation_identifier :string
|
1838
1838
|
# date_of_publication :datetime
|
1839
1839
|
# date_copyrighted :datetime
|
1840
1840
|
# created_at :datetime
|
1841
1841
|
# updated_at :datetime
|
1842
1842
|
# deleted_at :datetime
|
1843
|
-
# access_address :string
|
1843
|
+
# access_address :string
|
1844
1844
|
# language_id :integer default(1), not null
|
1845
1845
|
# carrier_type_id :integer default(1), not null
|
1846
1846
|
# start_page :integer
|
@@ -1850,9 +1850,9 @@ manifestation_00217:
|
|
1850
1850
|
# depth :integer
|
1851
1851
|
# price :integer
|
1852
1852
|
# fulltext :text
|
1853
|
-
# volume_number_string :string
|
1854
|
-
# issue_number_string :string
|
1855
|
-
# serial_number_string :string
|
1853
|
+
# volume_number_string :string
|
1854
|
+
# issue_number_string :string
|
1855
|
+
# serial_number_string :string
|
1856
1856
|
# edition :integer
|
1857
1857
|
# note :text
|
1858
1858
|
# repository_content :boolean default(FALSE), not null
|
@@ -1861,8 +1861,8 @@ manifestation_00217:
|
|
1861
1861
|
# required_score :integer default(0), not null
|
1862
1862
|
# frequency_id :integer default(1), not null
|
1863
1863
|
# subscription_master :boolean default(FALSE), not null
|
1864
|
-
# attachment_file_name :string
|
1865
|
-
# attachment_content_type :string
|
1864
|
+
# attachment_file_name :string
|
1865
|
+
# attachment_content_type :string
|
1866
1866
|
# attachment_file_size :integer
|
1867
1867
|
# attachment_updated_at :datetime
|
1868
1868
|
# title_alternative_transcription :text
|
@@ -1872,9 +1872,9 @@ manifestation_00217:
|
|
1872
1872
|
# valid_until :datetime
|
1873
1873
|
# date_submitted :datetime
|
1874
1874
|
# date_accepted :datetime
|
1875
|
-
#
|
1876
|
-
# pub_date :string
|
1877
|
-
# edition_string :string
|
1875
|
+
# date_captured :datetime
|
1876
|
+
# pub_date :string
|
1877
|
+
# edition_string :string
|
1878
1878
|
# volume_number :integer
|
1879
1879
|
# issue_number :integer
|
1880
1880
|
# serial_number :integer
|
@@ -46,17 +46,19 @@ picture_file_00004:
|
|
46
46
|
#
|
47
47
|
# id :integer not null, primary key
|
48
48
|
# picture_attachable_id :integer
|
49
|
-
# picture_attachable_type :string
|
50
|
-
# content_type :string
|
49
|
+
# picture_attachable_type :string
|
50
|
+
# content_type :string
|
51
51
|
# title :text
|
52
|
-
# thumbnail :string
|
52
|
+
# thumbnail :string
|
53
53
|
# position :integer
|
54
54
|
# created_at :datetime
|
55
55
|
# updated_at :datetime
|
56
|
-
# picture_file_name :string
|
57
|
-
# picture_content_type :string
|
56
|
+
# picture_file_name :string
|
57
|
+
# picture_content_type :string
|
58
58
|
# picture_file_size :integer
|
59
59
|
# picture_updated_at :datetime
|
60
60
|
# picture_meta :text
|
61
|
-
# picture_fingerprint :string
|
61
|
+
# picture_fingerprint :string
|
62
|
+
# picture_width :integer
|
63
|
+
# picture_height :integer
|
62
64
|
#
|
@@ -16,8 +16,8 @@ resource_export_file_00003:
|
|
16
16
|
#
|
17
17
|
# id :integer not null, primary key
|
18
18
|
# user_id :integer
|
19
|
-
# resource_export_file_name :string
|
20
|
-
# resource_export_content_type :string
|
19
|
+
# resource_export_file_name :string
|
20
|
+
# resource_export_content_type :string
|
21
21
|
# resource_export_file_size :integer
|
22
22
|
# resource_export_updated_at :datetime
|
23
23
|
# executed_at :datetime
|
@@ -26,20 +26,20 @@ resource_import_file_00003:
|
|
26
26
|
#
|
27
27
|
# id :integer not null, primary key
|
28
28
|
# parent_id :integer
|
29
|
-
# content_type :string
|
29
|
+
# content_type :string
|
30
30
|
# size :integer
|
31
31
|
# user_id :integer
|
32
32
|
# note :text
|
33
33
|
# executed_at :datetime
|
34
|
-
# resource_import_file_name :string
|
35
|
-
# resource_import_content_type :string
|
34
|
+
# resource_import_file_name :string
|
35
|
+
# resource_import_content_type :string
|
36
36
|
# resource_import_file_size :integer
|
37
37
|
# resource_import_updated_at :datetime
|
38
38
|
# created_at :datetime
|
39
39
|
# updated_at :datetime
|
40
|
-
# edit_mode :string
|
41
|
-
# resource_import_fingerprint :string
|
40
|
+
# edit_mode :string
|
41
|
+
# resource_import_fingerprint :string
|
42
42
|
# error_message :text
|
43
|
-
# user_encoding :string
|
43
|
+
# user_encoding :string
|
44
44
|
# default_shelf_id :integer
|
45
45
|
#
|
@@ -43,7 +43,7 @@ five:
|
|
43
43
|
# updated_at :datetime
|
44
44
|
# title_transcription :text
|
45
45
|
# title_alternative :text
|
46
|
-
# series_statement_identifier :string
|
46
|
+
# series_statement_identifier :string
|
47
47
|
# manifestation_id :integer
|
48
48
|
# note :text
|
49
49
|
# title_subseries_transcription :text
|
@@ -82,19 +82,19 @@ end
|
|
82
82
|
#
|
83
83
|
# id :integer not null, primary key
|
84
84
|
# parent_id :integer
|
85
|
-
# content_type :string
|
85
|
+
# content_type :string
|
86
86
|
# size :integer
|
87
87
|
# user_id :integer
|
88
88
|
# note :text
|
89
89
|
# executed_at :datetime
|
90
|
-
# agent_import_file_name :string
|
91
|
-
# agent_import_content_type :string
|
90
|
+
# agent_import_file_name :string
|
91
|
+
# agent_import_content_type :string
|
92
92
|
# agent_import_file_size :integer
|
93
93
|
# agent_import_updated_at :datetime
|
94
94
|
# created_at :datetime
|
95
95
|
# updated_at :datetime
|
96
|
-
# agent_import_fingerprint :string
|
96
|
+
# agent_import_fingerprint :string
|
97
97
|
# error_message :text
|
98
|
-
# edit_mode :string
|
99
|
-
# user_encoding :string
|
98
|
+
# edit_mode :string
|
99
|
+
# user_encoding :string
|
100
100
|
#
|