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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/agent.rb +20 -19
  3. data/app/models/agent_import_file.rb +6 -6
  4. data/app/models/agent_import_file_transition.rb +2 -2
  5. data/app/models/agent_merge_list.rb +1 -1
  6. data/app/models/agent_relationship_type.rb +1 -1
  7. data/app/models/agent_type.rb +1 -1
  8. data/app/models/carrier_type.rb +1 -1
  9. data/app/models/content_type.rb +1 -1
  10. data/app/models/country.rb +4 -5
  11. data/app/models/create_type.rb +1 -1
  12. data/app/models/form_of_work.rb +1 -1
  13. data/app/models/frequency.rb +1 -1
  14. data/app/models/identifier.rb +1 -1
  15. data/app/models/identifier_type.rb +1 -1
  16. data/app/models/import_request.rb +1 -1
  17. data/app/models/import_request_transition.rb +2 -2
  18. data/app/models/item.rb +5 -5
  19. data/app/models/language.rb +5 -6
  20. data/app/models/license.rb +2 -2
  21. data/app/models/manifestation.rb +11 -11
  22. data/app/models/manifestation_relationship_type.rb +1 -1
  23. data/app/models/medium_of_performance.rb +1 -1
  24. data/app/models/picture_file.rb +8 -6
  25. data/app/models/produce_type.rb +1 -1
  26. data/app/models/realize_type.rb +1 -1
  27. data/app/models/resource_export_file.rb +2 -2
  28. data/app/models/resource_export_file_transition.rb +2 -2
  29. data/app/models/resource_import_file.rb +6 -6
  30. data/app/models/resource_import_file_transition.rb +2 -2
  31. data/app/models/series_statement.rb +1 -1
  32. data/app/models/series_statement_merge_list.rb +1 -1
  33. data/lib/enju_biblio/engine.rb +0 -2
  34. data/lib/enju_biblio/version.rb +1 -1
  35. data/lib/tasks/enju_biblio_tasks.rake +4 -7
  36. data/spec/dummy/app/models/user.rb +1 -1
  37. data/spec/dummy/config/application.rb +3 -2
  38. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  39. data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +5 -0
  40. data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +5 -0
  41. data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +9 -0
  42. data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +9 -0
  43. data/spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb +5 -0
  44. data/spec/dummy/db/schema.rb +7 -2
  45. data/spec/factories/create_types.rb +1 -1
  46. data/spec/factories/produce_types.rb +1 -1
  47. data/spec/factories/realize_types.rb +1 -1
  48. data/spec/fixtures/agent_import_files.yml +6 -6
  49. data/spec/fixtures/agent_merge_lists.yml +1 -1
  50. data/spec/fixtures/agent_relationship_types.yml +1 -1
  51. data/spec/fixtures/agent_types.yml +1 -1
  52. data/spec/fixtures/agents.yml +20 -19
  53. data/spec/fixtures/carrier_types.yml +1 -1
  54. data/spec/fixtures/content_types.yml +1 -1
  55. data/spec/fixtures/countries.yml +4 -5
  56. data/spec/fixtures/create_types.yml +1 -1
  57. data/spec/fixtures/form_of_works.yml +1 -1
  58. data/spec/fixtures/frequencies.yml +1 -1
  59. data/spec/fixtures/identifier_types.yml +1 -1
  60. data/spec/fixtures/identifiers.yml +1 -1
  61. data/spec/fixtures/import_requests.yml +1 -1
  62. data/spec/fixtures/items.yml +5 -5
  63. data/spec/fixtures/languages.yml +5 -6
  64. data/spec/fixtures/licenses.yml +2 -2
  65. data/spec/fixtures/manifestation_relationship_types.yml +1 -1
  66. data/spec/fixtures/manifestations.yml +11 -11
  67. data/spec/fixtures/medium_of_performances.yml +1 -1
  68. data/spec/fixtures/picture_files.yml +8 -6
  69. data/spec/fixtures/produce_types.yml +1 -1
  70. data/spec/fixtures/realize_types.yml +1 -1
  71. data/spec/fixtures/resource_export_files.yml +2 -2
  72. data/spec/fixtures/resource_import_files.yml +6 -6
  73. data/spec/fixtures/series_statement_merge_lists.yml +1 -1
  74. data/spec/fixtures/series_statements.yml +1 -1
  75. data/spec/models/agent_import_file_spec.rb +6 -6
  76. data/spec/models/agent_merge_list_spec.rb +1 -1
  77. data/spec/models/agent_relationship_type_spec.rb +1 -1
  78. data/spec/models/agent_spec.rb +20 -19
  79. data/spec/models/agent_type_spec.rb +1 -1
  80. data/spec/models/carrier_type_spec.rb +1 -1
  81. data/spec/models/content_type_spec.rb +1 -1
  82. data/spec/models/country_spec.rb +4 -5
  83. data/spec/models/create_type_spec.rb +1 -1
  84. data/spec/models/form_of_work_spec.rb +1 -1
  85. data/spec/models/frequency_spec.rb +1 -1
  86. data/spec/models/identifier_spec.rb +1 -1
  87. data/spec/models/identifier_type_spec.rb +1 -1
  88. data/spec/models/import_request_spec.rb +1 -1
  89. data/spec/models/item_spec.rb +5 -5
  90. data/spec/models/language_spec.rb +5 -6
  91. data/spec/models/license_spec.rb +2 -2
  92. data/spec/models/manifestation_relationship_type_spec.rb +1 -1
  93. data/spec/models/manifestation_spec.rb +11 -11
  94. data/spec/models/medium_of_performance_spec.rb +1 -1
  95. data/spec/models/picture_file_spec.rb +8 -6
  96. data/spec/models/produce_type_spec.rb +1 -1
  97. data/spec/models/realize_type_spec.rb +1 -1
  98. data/spec/models/resource_export_file_spec.rb +2 -2
  99. data/spec/models/resource_import_file_spec.rb +6 -6
  100. data/spec/models/series_statement_merge_list_spec.rb +1 -1
  101. data/spec/models/series_statement_spec.rb +1 -1
  102. metadata +72 -52
  103. data/spec/dummy/app/models/ability.rb +0 -205
  104. 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: 50d129df29fd20bd177861de5f04438006af46a9
4
- data.tar.gz: fd340579d9a396a70bada80b8005113911ea68df
3
+ metadata.gz: ea59edbf251f3e333c951d033c681a9c30c5b6be
4
+ data.tar.gz: 91346d1bc9ca5dbd3b15f87e256b99e538551a64
5
5
  SHA512:
6
- metadata.gz: 1c73cfc96f9b2eccf7d852065d4913398b96382dc097d221e12a38222e38f454b1cb8e04f2fc5dfb9a59267bffb06f3c5043b68696ece4cc7168d6c4149e7c45
7
- data.tar.gz: b096f74133b6efff51c95c3eaedde1a57e58ca7f99c1f403b1a6210d726ecbecb6d00411213bad7aaed95ed7563ab1549ed20559ec05dada23d22007433b3c16
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(255)
276
- # middle_name :string(255)
277
- # first_name :string(255)
278
- # last_name_transcription :string(255)
279
- # middle_name_transcription :string(255)
280
- # first_name_transcription :string(255)
281
- # corporate_name :string(255)
282
- # corporate_name_transcription :string(255)
283
- # full_name :string(255)
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(255)
290
- # zip_code_2 :string(255)
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(255)
296
- # telephone_number_2 :string(255)
297
- # fax_number_1 :string(255)
298
- # fax_number_2 :string(255)
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(255)
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(255)
318
- # death_date :string(255)
319
- # agent_identifier :string(255)
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(255)
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(255)
241
- # agent_import_content_type :string(255)
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(255)
246
+ # agent_import_fingerprint :string
247
247
  # error_message :text
248
- # edit_mode :string(255)
249
- # user_encoding :string(255)
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(255)
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
@@ -21,7 +21,7 @@ end
21
21
  # Table name: agent_merge_lists
22
22
  #
23
23
  # id :integer not null, primary key
24
- # title :string(255)
24
+ # title :string
25
25
  # created_at :datetime
26
26
  # updated_at :datetime
27
27
  #
@@ -9,7 +9,7 @@ end
9
9
  # Table name: agent_relationship_types
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -9,7 +9,7 @@ end
9
9
  # Table name: agent_types
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -19,7 +19,7 @@ end
19
19
  # Table name: carrier_types
20
20
  #
21
21
  # id :integer not null, primary key
22
- # name :string(255) not null
22
+ # name :string not null
23
23
  # display_name :text
24
24
  # note :text
25
25
  # position :integer
@@ -9,7 +9,7 @@ end
9
9
  # Table name: content_types
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -37,12 +37,11 @@ end
37
37
  # Table name: countries
38
38
  #
39
39
  # id :integer not null, primary key
40
- # name :string(255) not null
40
+ # name :string not null
41
41
  # display_name :text
42
- # alpha_2 :string(255)
43
- # alpha_3 :string(255)
44
- # numeric_3 :string(255)
42
+ # alpha_2 :string
43
+ # alpha_3 :string
44
+ # numeric_3 :string
45
45
  # note :text
46
46
  # position :integer
47
47
  #
48
-
@@ -8,7 +8,7 @@ end
8
8
  # Table name: create_types
9
9
  #
10
10
  # id :integer not null, primary key
11
- # name :string(255)
11
+ # name :string
12
12
  # display_name :text
13
13
  # note :text
14
14
  # position :integer
@@ -9,7 +9,7 @@ end
9
9
  # Table name: form_of_works
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -9,7 +9,7 @@ end
9
9
  # Table name: frequencies
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -74,7 +74,7 @@ end
74
74
  # Table name: identifiers
75
75
  #
76
76
  # id :integer not null, primary key
77
- # body :string(255) not null
77
+ # body :string not null
78
78
  # identifier_type_id :integer not null
79
79
  # manifestation_id :integer
80
80
  # primary :boolean
@@ -10,7 +10,7 @@ end
10
10
  # Table name: identifier_types
11
11
  #
12
12
  # id :integer not null, primary key
13
- # name :string(255)
13
+ # name :string
14
14
  # display_name :text
15
15
  # note :text
16
16
  # position :integer
@@ -76,7 +76,7 @@ end
76
76
  # Table name: import_requests
77
77
  #
78
78
  # id :integer not null, primary key
79
- # isbn :string(255)
79
+ # isbn :string
80
80
  # manifestation_id :integer
81
81
  # user_id :integer
82
82
  # created_at :datetime
@@ -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(255)
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(255)
101
- # item_identifier :string(255)
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(255)
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(255)
119
- # binding_call_number :string(255)
118
+ # binding_item_identifier :string
119
+ # binding_call_number :string
120
120
  # binded_at :datetime
121
121
  # manifestation_id :integer
122
122
  #
@@ -41,13 +41,12 @@ end
41
41
  # Table name: languages
42
42
  #
43
43
  # id :integer not null, primary key
44
- # name :string(255) not null
45
- # native_name :string(255)
44
+ # name :string not null
45
+ # native_name :string
46
46
  # display_name :text
47
- # iso_639_1 :string(255)
48
- # iso_639_2 :string(255)
49
- # iso_639_3 :string(255)
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
-
@@ -8,8 +8,8 @@ end
8
8
  # Table name: licenses
9
9
  #
10
10
  # id :integer not null, primary key
11
- # name :string(255) not null
12
- # display_name :string(255)
11
+ # name :string not null
12
+ # display_name :string
13
13
  # note :text
14
14
  # position :integer
15
15
  # created_at :datetime
@@ -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(255)
747
- # manifestation_identifier :string(255)
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(255)
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(255)
764
- # issue_number_string :string(255)
765
- # serial_number_string :string(255)
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(255)
775
- # attachment_content_type :string(255)
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
- # date_caputured :datetime
786
- # pub_date :string(255)
787
- # edition_string :string(255)
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
@@ -9,7 +9,7 @@ end
9
9
  # Table name: manifestation_relationship_types
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -9,7 +9,7 @@ end
9
9
  # Table name: medium_of_performances
10
10
  #
11
11
  # id :integer not null, primary key
12
- # name :string(255) not null
12
+ # name :string not null
13
13
  # display_name :text
14
14
  # note :text
15
15
  # position :integer
@@ -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(255)
47
- # content_type :string(255)
46
+ # picture_attachable_type :string
47
+ # content_type :string
48
48
  # title :text
49
- # thumbnail :string(255)
49
+ # thumbnail :string
50
50
  # position :integer
51
51
  # created_at :datetime
52
52
  # updated_at :datetime
53
- # picture_file_name :string(255)
54
- # picture_content_type :string(255)
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(255)
58
+ # picture_fingerprint :string
59
+ # picture_width :integer
60
+ # picture_height :integer
59
61
  #
@@ -8,7 +8,7 @@ end
8
8
  # Table name: produce_types
9
9
  #
10
10
  # id :integer not null, primary key
11
- # name :string(255)
11
+ # name :string
12
12
  # display_name :text
13
13
  # note :text
14
14
  # position :integer
@@ -8,7 +8,7 @@ end
8
8
  # Table name: realize_types
9
9
  #
10
10
  # id :integer not null, primary key
11
- # name :string(255)
11
+ # name :string
12
12
  # display_name :text
13
13
  # note :text
14
14
  # position :integer
@@ -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(255)
65
- # resource_export_content_type :string(255)
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(255)
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(255)
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(255)
772
- # resource_import_content_type :string(255)
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(255)
778
- # resource_import_fingerprint :string(255)
777
+ # edit_mode :string
778
+ # resource_import_fingerprint :string
779
779
  # error_message :text
780
- # user_encoding :string(255)
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(255)
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(255)
63
+ # series_statement_identifier :string
64
64
  # manifestation_id :integer
65
65
  # note :text
66
66
  # title_subseries_transcription :text
@@ -11,7 +11,7 @@ end
11
11
  # Table name: series_statement_merge_lists
12
12
  #
13
13
  # id :integer not null, primary key
14
- # title :string(255)
14
+ # title :string
15
15
  # created_at :datetime
16
16
  # updated_at :datetime
17
17
  #
@@ -1,10 +1,8 @@
1
1
  require 'enju_library'
2
- require 'validates_timeliness'
3
2
  require 'dynamic_form'
4
3
  require 'simple_form'
5
4
  require 'library_stdnums'
6
5
  require 'lisbn'
7
- require 'statesman'
8
6
  require 'faraday'
9
7
  require 'nkf'
10
8
  begin
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.2.0.beta.2"
2
+ VERSION = "0.2.0.beta.3"
3
3
  end
@@ -25,13 +25,10 @@ namespace :enju_biblio do
25
25
 
26
26
  desc "upgrade enju_biblio"
27
27
  task :upgrade => :environment do
28
- Item.transaction do
29
- update_item
30
- update_agent_type
31
- update_carrier_type
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
@@ -6,7 +6,7 @@ class User < ActiveRecord::Base
6
6
 
7
7
  # Setup accessible (or protected) attributes for your model
8
8
 
9
- include EnjuLeaf::EnjuUser
9
+ include EnjuSeed::EnjuUser
10
10
  include EnjuCirculation::EnjuUser
11
11
  include EnjuMessage::EnjuUser
12
12
  include EnjuBookmark::EnjuUser
@@ -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.string :user_import_file_size
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
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToUserImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :user_import_results, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :html_snippet, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddEmailToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :email, :string
4
+ end
5
+ end