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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea59edbf251f3e333c951d033c681a9c30c5b6be
|
4
|
+
data.tar.gz: 91346d1bc9ca5dbd3b15f87e256b99e538551a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7be9fb7f85eee62d19dc95209096d003d3dfaaac329375575dc241f008e67861ea53177a7405f8ad64990923519f8c7ce7b4311a9d9fb416935fe457ef44704
|
7
|
+
data.tar.gz: f3e7168f32382603521f76f678b7de75415b825ffdb4f9af4c49d7ff40912ee15f105c780f26695ae563aabd584ac5ca18b15eac32f6d94e961794edea46d706
|
data/app/models/agent.rb
CHANGED
@@ -272,33 +272,33 @@ end
|
|
272
272
|
# Table name: agents
|
273
273
|
#
|
274
274
|
# id :integer not null, primary key
|
275
|
-
# last_name :string
|
276
|
-
# middle_name :string
|
277
|
-
# first_name :string
|
278
|
-
# last_name_transcription :string
|
279
|
-
# middle_name_transcription :string
|
280
|
-
# first_name_transcription :string
|
281
|
-
# corporate_name :string
|
282
|
-
# corporate_name_transcription :string
|
283
|
-
# full_name :string
|
275
|
+
# last_name :string
|
276
|
+
# middle_name :string
|
277
|
+
# first_name :string
|
278
|
+
# last_name_transcription :string
|
279
|
+
# middle_name_transcription :string
|
280
|
+
# first_name_transcription :string
|
281
|
+
# corporate_name :string
|
282
|
+
# corporate_name_transcription :string
|
283
|
+
# full_name :string
|
284
284
|
# full_name_transcription :text
|
285
285
|
# full_name_alternative :text
|
286
286
|
# created_at :datetime
|
287
287
|
# updated_at :datetime
|
288
288
|
# deleted_at :datetime
|
289
|
-
# zip_code_1 :string
|
290
|
-
# zip_code_2 :string
|
289
|
+
# zip_code_1 :string
|
290
|
+
# zip_code_2 :string
|
291
291
|
# address_1 :text
|
292
292
|
# address_2 :text
|
293
293
|
# address_1_note :text
|
294
294
|
# address_2_note :text
|
295
|
-
# telephone_number_1 :string
|
296
|
-
# telephone_number_2 :string
|
297
|
-
# fax_number_1 :string
|
298
|
-
# fax_number_2 :string
|
295
|
+
# telephone_number_1 :string
|
296
|
+
# telephone_number_2 :string
|
297
|
+
# fax_number_1 :string
|
298
|
+
# fax_number_2 :string
|
299
299
|
# other_designation :text
|
300
300
|
# place :text
|
301
|
-
# postal_code :string
|
301
|
+
# postal_code :string
|
302
302
|
# street :text
|
303
303
|
# locality :text
|
304
304
|
# region :text
|
@@ -314,7 +314,8 @@ end
|
|
314
314
|
# email :text
|
315
315
|
# url :text
|
316
316
|
# full_name_alternative_transcription :text
|
317
|
-
# birth_date :string
|
318
|
-
# death_date :string
|
319
|
-
# agent_identifier :string
|
317
|
+
# birth_date :string
|
318
|
+
# death_date :string
|
319
|
+
# agent_identifier :string
|
320
|
+
# profile_id :integer
|
320
321
|
#
|
@@ -232,19 +232,19 @@ end
|
|
232
232
|
#
|
233
233
|
# id :integer not null, primary key
|
234
234
|
# parent_id :integer
|
235
|
-
# content_type :string
|
235
|
+
# content_type :string
|
236
236
|
# size :integer
|
237
237
|
# user_id :integer
|
238
238
|
# note :text
|
239
239
|
# executed_at :datetime
|
240
|
-
# agent_import_file_name :string
|
241
|
-
# agent_import_content_type :string
|
240
|
+
# agent_import_file_name :string
|
241
|
+
# agent_import_content_type :string
|
242
242
|
# agent_import_file_size :integer
|
243
243
|
# agent_import_updated_at :datetime
|
244
244
|
# created_at :datetime
|
245
245
|
# updated_at :datetime
|
246
|
-
# agent_import_fingerprint :string
|
246
|
+
# agent_import_fingerprint :string
|
247
247
|
# error_message :text
|
248
|
-
# edit_mode :string
|
249
|
-
# user_encoding :string
|
248
|
+
# edit_mode :string
|
249
|
+
# user_encoding :string
|
250
250
|
#
|
@@ -11,8 +11,8 @@ end
|
|
11
11
|
# Table name: agent_import_file_transitions
|
12
12
|
#
|
13
13
|
# id :integer not null, primary key
|
14
|
-
# to_state :string
|
15
|
-
# metadata :text default(
|
14
|
+
# to_state :string
|
15
|
+
# metadata :text default({})
|
16
16
|
# sort_key :integer
|
17
17
|
# agent_import_file_id :integer
|
18
18
|
# created_at :datetime
|
data/app/models/agent_type.rb
CHANGED
data/app/models/carrier_type.rb
CHANGED
data/app/models/content_type.rb
CHANGED
data/app/models/country.rb
CHANGED
@@ -37,12 +37,11 @@ end
|
|
37
37
|
# Table name: countries
|
38
38
|
#
|
39
39
|
# id :integer not null, primary key
|
40
|
-
# name :string
|
40
|
+
# name :string not null
|
41
41
|
# display_name :text
|
42
|
-
# alpha_2 :string
|
43
|
-
# alpha_3 :string
|
44
|
-
# numeric_3 :string
|
42
|
+
# alpha_2 :string
|
43
|
+
# alpha_3 :string
|
44
|
+
# numeric_3 :string
|
45
45
|
# note :text
|
46
46
|
# position :integer
|
47
47
|
#
|
48
|
-
|
data/app/models/create_type.rb
CHANGED
data/app/models/form_of_work.rb
CHANGED
data/app/models/frequency.rb
CHANGED
data/app/models/identifier.rb
CHANGED
@@ -11,8 +11,8 @@ end
|
|
11
11
|
# Table name: import_request_transitions
|
12
12
|
#
|
13
13
|
# id :integer not null, primary key
|
14
|
-
# to_state :string
|
15
|
-
# metadata :text default(
|
14
|
+
# to_state :string
|
15
|
+
# metadata :text default({})
|
16
16
|
# sort_key :integer
|
17
17
|
# import_request_id :integer
|
18
18
|
# created_at :datetime
|
data/app/models/item.rb
CHANGED
@@ -97,15 +97,15 @@ end
|
|
97
97
|
# Table name: items
|
98
98
|
#
|
99
99
|
# id :integer not null, primary key
|
100
|
-
# call_number :string
|
101
|
-
# item_identifier :string
|
100
|
+
# call_number :string
|
101
|
+
# item_identifier :string
|
102
102
|
# created_at :datetime
|
103
103
|
# updated_at :datetime
|
104
104
|
# deleted_at :datetime
|
105
105
|
# shelf_id :integer default(1), not null
|
106
106
|
# include_supplements :boolean default(FALSE), not null
|
107
107
|
# note :text
|
108
|
-
# url :string
|
108
|
+
# url :string
|
109
109
|
# price :integer
|
110
110
|
# lock_version :integer default(0), not null
|
111
111
|
# required_role_id :integer default(1), not null
|
@@ -115,8 +115,8 @@ end
|
|
115
115
|
# budget_type_id :integer
|
116
116
|
# circulation_status_id :integer default(5), not null
|
117
117
|
# checkout_type_id :integer default(1), not null
|
118
|
-
# binding_item_identifier :string
|
119
|
-
# binding_call_number :string
|
118
|
+
# binding_item_identifier :string
|
119
|
+
# binding_call_number :string
|
120
120
|
# binded_at :datetime
|
121
121
|
# manifestation_id :integer
|
122
122
|
#
|
data/app/models/language.rb
CHANGED
@@ -41,13 +41,12 @@ end
|
|
41
41
|
# Table name: languages
|
42
42
|
#
|
43
43
|
# id :integer not null, primary key
|
44
|
-
# name :string
|
45
|
-
# native_name :string
|
44
|
+
# name :string not null
|
45
|
+
# native_name :string
|
46
46
|
# display_name :text
|
47
|
-
# iso_639_1 :string
|
48
|
-
# iso_639_2 :string
|
49
|
-
# iso_639_3 :string
|
47
|
+
# iso_639_1 :string
|
48
|
+
# iso_639_2 :string
|
49
|
+
# iso_639_3 :string
|
50
50
|
# note :text
|
51
51
|
# position :integer
|
52
52
|
#
|
53
|
-
|
data/app/models/license.rb
CHANGED
data/app/models/manifestation.rb
CHANGED
@@ -743,14 +743,14 @@ end
|
|
743
743
|
# original_title :text not null
|
744
744
|
# title_alternative :text
|
745
745
|
# title_transcription :text
|
746
|
-
# classification_number :string
|
747
|
-
# manifestation_identifier :string
|
746
|
+
# classification_number :string
|
747
|
+
# manifestation_identifier :string
|
748
748
|
# date_of_publication :datetime
|
749
749
|
# date_copyrighted :datetime
|
750
750
|
# created_at :datetime
|
751
751
|
# updated_at :datetime
|
752
752
|
# deleted_at :datetime
|
753
|
-
# access_address :string
|
753
|
+
# access_address :string
|
754
754
|
# language_id :integer default(1), not null
|
755
755
|
# carrier_type_id :integer default(1), not null
|
756
756
|
# start_page :integer
|
@@ -760,9 +760,9 @@ end
|
|
760
760
|
# depth :integer
|
761
761
|
# price :integer
|
762
762
|
# fulltext :text
|
763
|
-
# volume_number_string :string
|
764
|
-
# issue_number_string :string
|
765
|
-
# serial_number_string :string
|
763
|
+
# volume_number_string :string
|
764
|
+
# issue_number_string :string
|
765
|
+
# serial_number_string :string
|
766
766
|
# edition :integer
|
767
767
|
# note :text
|
768
768
|
# repository_content :boolean default(FALSE), not null
|
@@ -771,8 +771,8 @@ end
|
|
771
771
|
# required_score :integer default(0), not null
|
772
772
|
# frequency_id :integer default(1), not null
|
773
773
|
# subscription_master :boolean default(FALSE), not null
|
774
|
-
# attachment_file_name :string
|
775
|
-
# attachment_content_type :string
|
774
|
+
# attachment_file_name :string
|
775
|
+
# attachment_content_type :string
|
776
776
|
# attachment_file_size :integer
|
777
777
|
# attachment_updated_at :datetime
|
778
778
|
# title_alternative_transcription :text
|
@@ -782,9 +782,9 @@ end
|
|
782
782
|
# valid_until :datetime
|
783
783
|
# date_submitted :datetime
|
784
784
|
# date_accepted :datetime
|
785
|
-
#
|
786
|
-
# pub_date :string
|
787
|
-
# edition_string :string
|
785
|
+
# date_captured :datetime
|
786
|
+
# pub_date :string
|
787
|
+
# edition_string :string
|
788
788
|
# volume_number :integer
|
789
789
|
# issue_number :integer
|
790
790
|
# serial_number :integer
|
data/app/models/picture_file.rb
CHANGED
@@ -43,17 +43,19 @@ end
|
|
43
43
|
#
|
44
44
|
# id :integer not null, primary key
|
45
45
|
# picture_attachable_id :integer
|
46
|
-
# picture_attachable_type :string
|
47
|
-
# content_type :string
|
46
|
+
# picture_attachable_type :string
|
47
|
+
# content_type :string
|
48
48
|
# title :text
|
49
|
-
# thumbnail :string
|
49
|
+
# thumbnail :string
|
50
50
|
# position :integer
|
51
51
|
# created_at :datetime
|
52
52
|
# updated_at :datetime
|
53
|
-
# picture_file_name :string
|
54
|
-
# picture_content_type :string
|
53
|
+
# picture_file_name :string
|
54
|
+
# picture_content_type :string
|
55
55
|
# picture_file_size :integer
|
56
56
|
# picture_updated_at :datetime
|
57
57
|
# picture_meta :text
|
58
|
-
# picture_fingerprint :string
|
58
|
+
# picture_fingerprint :string
|
59
|
+
# picture_width :integer
|
60
|
+
# picture_height :integer
|
59
61
|
#
|
data/app/models/produce_type.rb
CHANGED
data/app/models/realize_type.rb
CHANGED
@@ -61,8 +61,8 @@ end
|
|
61
61
|
#
|
62
62
|
# id :integer not null, primary key
|
63
63
|
# user_id :integer
|
64
|
-
# resource_export_file_name :string
|
65
|
-
# resource_export_content_type :string
|
64
|
+
# resource_export_file_name :string
|
65
|
+
# resource_export_content_type :string
|
66
66
|
# resource_export_file_size :integer
|
67
67
|
# resource_export_updated_at :datetime
|
68
68
|
# executed_at :datetime
|
@@ -11,8 +11,8 @@ end
|
|
11
11
|
# Table name: resource_export_file_transitions
|
12
12
|
#
|
13
13
|
# id :integer not null, primary key
|
14
|
-
# to_state :string
|
15
|
-
# metadata :text default(
|
14
|
+
# to_state :string
|
15
|
+
# metadata :text default({})
|
16
16
|
# sort_key :integer
|
17
17
|
# resource_export_file_id :integer
|
18
18
|
# created_at :datetime
|
@@ -763,20 +763,20 @@ end
|
|
763
763
|
#
|
764
764
|
# id :integer not null, primary key
|
765
765
|
# parent_id :integer
|
766
|
-
# content_type :string
|
766
|
+
# content_type :string
|
767
767
|
# size :integer
|
768
768
|
# user_id :integer
|
769
769
|
# note :text
|
770
770
|
# executed_at :datetime
|
771
|
-
# resource_import_file_name :string
|
772
|
-
# resource_import_content_type :string
|
771
|
+
# resource_import_file_name :string
|
772
|
+
# resource_import_content_type :string
|
773
773
|
# resource_import_file_size :integer
|
774
774
|
# resource_import_updated_at :datetime
|
775
775
|
# created_at :datetime
|
776
776
|
# updated_at :datetime
|
777
|
-
# edit_mode :string
|
778
|
-
# resource_import_fingerprint :string
|
777
|
+
# edit_mode :string
|
778
|
+
# resource_import_fingerprint :string
|
779
779
|
# error_message :text
|
780
|
-
# user_encoding :string
|
780
|
+
# user_encoding :string
|
781
781
|
# default_shelf_id :integer
|
782
782
|
#
|
@@ -11,8 +11,8 @@ end
|
|
11
11
|
# Table name: resource_import_file_transitions
|
12
12
|
#
|
13
13
|
# id :integer not null, primary key
|
14
|
-
# to_state :string
|
15
|
-
# metadata :text default(
|
14
|
+
# to_state :string
|
15
|
+
# metadata :text default({})
|
16
16
|
# sort_key :integer
|
17
17
|
# resource_import_file_id :integer
|
18
18
|
# created_at :datetime
|
@@ -60,7 +60,7 @@ end
|
|
60
60
|
# updated_at :datetime
|
61
61
|
# title_transcription :text
|
62
62
|
# title_alternative :text
|
63
|
-
# series_statement_identifier :string
|
63
|
+
# series_statement_identifier :string
|
64
64
|
# manifestation_id :integer
|
65
65
|
# note :text
|
66
66
|
# title_subseries_transcription :text
|
data/lib/enju_biblio/engine.rb
CHANGED
data/lib/enju_biblio/version.rb
CHANGED
@@ -25,13 +25,10 @@ namespace :enju_biblio do
|
|
25
25
|
|
26
26
|
desc "upgrade enju_biblio"
|
27
27
|
task :upgrade => :environment do
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
update_content_type
|
33
|
-
update_identifier_type
|
34
|
-
end
|
28
|
+
Rake::Task['statesman:backfill_most_recent'].invoke('AgentImportFile')
|
29
|
+
Rake::Task['statesman:backfill_most_recent'].invoke('ImportRequest')
|
30
|
+
Rake::Task['statesman:backfill_most_recent'].invoke('ResourceExportFile')
|
31
|
+
Rake::Task['statesman:backfill_most_recent'].invoke('ResourceImportFile')
|
35
32
|
puts 'enju_biblio: The upgrade completed successfully.'
|
36
33
|
end
|
37
34
|
end
|
@@ -3,16 +3,17 @@ require File.expand_path('../boot', __FILE__)
|
|
3
3
|
require 'rails/all'
|
4
4
|
|
5
5
|
Bundler.require(*Rails.groups)
|
6
|
-
require 'enju_leaf'
|
7
6
|
require 'enju_biblio'
|
7
|
+
require 'enju_leaf'
|
8
8
|
require 'enju_manifestation_viewer'
|
9
9
|
require 'enju_inventory'
|
10
10
|
require 'enju_subject'
|
11
11
|
require 'enju_circulation'
|
12
12
|
require 'enju_ndl'
|
13
13
|
require 'enju_bookmark'
|
14
|
+
require 'globalize'
|
15
|
+
require 'globalize-accessors'
|
14
16
|
require 'resque/server'
|
15
|
-
require 'resque_mailer'
|
16
17
|
|
17
18
|
module Dummy
|
18
19
|
class Application < Rails::Application
|
@@ -6,7 +6,7 @@ class CreateUserImportFiles < ActiveRecord::Migration
|
|
6
6
|
t.datetime :executed_at
|
7
7
|
t.string :user_import_file_name
|
8
8
|
t.string :user_import_content_type
|
9
|
-
t.
|
9
|
+
t.integer :user_import_file_size
|
10
10
|
t.datetime :user_import_updated_at
|
11
11
|
t.string :user_import_fingerprint
|
12
12
|
t.string :edit_mode
|