enju_biblio 0.4.0.beta.2 → 0.4.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/items_controller.rb +5 -1
  3. data/app/controllers/manifestations_controller.rb +12 -6
  4. data/app/mailers/agent_import_mailer.rb +2 -2
  5. data/app/mailers/resource_export_mailer.rb +2 -2
  6. data/app/mailers/resource_import_mailer.rb +2 -2
  7. data/app/models/agent.rb +3 -4
  8. data/app/models/agent_import_file.rb +1 -8
  9. data/app/models/custom_property.rb +17 -0
  10. data/app/models/import_request.rb +0 -9
  11. data/app/models/isbn_record.rb +1 -1
  12. data/app/models/issn_record.rb +1 -1
  13. data/app/models/item.rb +49 -2
  14. data/app/models/manifestation.rb +109 -247
  15. data/app/models/resource_export_file.rb +3 -16
  16. data/app/models/resource_export_file_state_machine.rb +1 -1
  17. data/app/models/resource_import_file.rb +1 -9
  18. data/app/views/items/_custom_property_fields.html.erb +7 -0
  19. data/app/views/items/_form.html.erb +18 -6
  20. data/app/views/items/show.html.erb +8 -1
  21. data/app/views/layouts/items.html.erb +1 -1
  22. data/app/views/layouts/manifestations.html.erb +1 -1
  23. data/app/views/manifestations/_custom_property_fields.html.erb +7 -0
  24. data/app/views/manifestations/_form.html.erb +10 -0
  25. data/app/views/manifestations/_manifestation.txt.erb +1 -1
  26. data/app/views/manifestations/_paginate_id_link.html.erb +1 -1
  27. data/app/views/manifestations/_show_detail_librarian.html.erb +9 -1
  28. data/app/views/manifestations/_show_detail_user.html.erb +1 -1
  29. data/app/views/manifestations/index.txt.ruby +7 -0
  30. data/app/views/manifestations/show.txt.ruby +5 -0
  31. data/app/views/resource_import_files/_results.html.erb +6 -0
  32. data/app/views/resource_import_results/index.html.erb +0 -11
  33. data/app/views/series_statements/_form.html.erb +6 -8
  34. data/app/views/series_statements/show.html.erb +12 -0
  35. data/config/locales/translation_en.yml +12 -1
  36. data/config/locales/translation_ja.yml +14 -3
  37. data/db/migrate/001_create_agents.rb +0 -1
  38. data/db/migrate/005_create_manifestations.rb +0 -1
  39. data/db/migrate/006_create_items.rb +0 -1
  40. data/db/migrate/20191219122214_create_custom_properties.rb +12 -0
  41. data/lib/enju_biblio/version.rb +1 -1
  42. data/lib/generators/enju_biblio/setup/setup_generator.rb +2 -0
  43. data/spec/controllers/items_controller_spec.rb +25 -0
  44. data/spec/controllers/manifestations_controller_spec.rb +52 -0
  45. data/spec/dummy/app/controllers/application_controller.rb +0 -1
  46. data/spec/dummy/app/models/user.rb +0 -2
  47. data/spec/dummy/config/environments/development.rb +11 -24
  48. data/spec/dummy/config/environments/production.rb +16 -28
  49. data/spec/dummy/config/environments/test.rb +6 -6
  50. data/spec/dummy/config/initializers/assets.rb +1 -1
  51. data/spec/dummy/db/migrate/059_create_libraries.rb +1 -2
  52. data/spec/dummy/db/migrate/069_create_shelves.rb +1 -2
  53. data/spec/dummy/db/migrate/077_create_user_groups.rb +1 -2
  54. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -1
  55. data/spec/dummy/db/migrate/120_create_baskets.rb +1 -1
  56. data/spec/dummy/db/migrate/124_create_bookstores.rb +1 -2
  57. data/spec/dummy/db/migrate/130_create_request_status_types.rb +1 -1
  58. data/spec/dummy/db/migrate/131_create_request_types.rb +1 -1
  59. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +1 -2
  60. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +1 -1
  61. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +1 -1
  62. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +1 -1
  63. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +1 -1
  64. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +1 -1
  65. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +1 -1
  66. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +1 -1
  67. data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +1 -1
  68. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +1 -1
  69. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +1 -1
  70. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +1 -1
  71. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  72. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +1 -1
  73. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +2 -6
  74. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +1 -1
  75. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  76. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +2 -6
  77. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  78. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  79. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -1
  80. data/spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb +1 -1
  81. data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +1 -1
  82. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +1 -1
  83. data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +1 -1
  84. data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +1 -1
  85. data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +1 -1
  86. data/spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
  87. data/spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +1 -1
  88. data/spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +1 -1
  89. data/spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb +1 -1
  90. data/spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb +1 -1
  91. data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +1 -1
  92. data/spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb +1 -1
  93. data/spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb +1 -1
  94. data/spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +1 -1
  95. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
  96. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
  97. data/spec/dummy/db/migrate/20191216131755_add_email_to_library_group.rb +6 -0
  98. data/spec/dummy/db/schema.rb +96 -91
  99. data/spec/dummy/db/test.sqlite3 +0 -0
  100. data/spec/dummy/public/500.html +1 -0
  101. data/spec/factories/custom_property.rb +18 -0
  102. data/spec/factories/series_statement.rb +4 -3
  103. data/spec/fixtures/agents.yml +0 -1
  104. data/spec/fixtures/bookstores.yml +0 -8
  105. data/spec/fixtures/budget_types.yml +10 -9
  106. data/spec/fixtures/events.yml +0 -9
  107. data/spec/fixtures/items.yml +10 -11
  108. data/spec/fixtures/library_groups.yml +6 -11
  109. data/spec/fixtures/manifestations.yml +0 -1
  110. data/spec/models/agent_spec.rb +0 -1
  111. data/spec/models/custom_property_spec.rb +18 -0
  112. data/spec/models/item_spec.rb +0 -1
  113. data/spec/models/manifestation_spec.rb +32 -8
  114. data/spec/rails_helper.rb +3 -3
  115. data/spec/system/custom_properties_spec.rb +84 -0
  116. data/spec/system/items_spec.rb +60 -0
  117. data/spec/system/series_statements_spec.rb +16 -0
  118. data/spec/views/manifestations/index.json.jbuilder_spec.rb +18 -0
  119. data/spec/views/manifestations/{index.txt.erb_spec.rb → index.txt.ruby_spec.rb} +1 -1
  120. data/spec/views/manifestations/{show.txt.erb_spec.rb → show.txt.ruby_spec.rb} +1 -1
  121. metadata +56 -58
  122. data/app/views/manifestations/index.txt.erb +0 -1
  123. data/app/views/manifestations/show.txt.erb +0 -1
  124. data/spec/dummy/db/migrate/20180709023037_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +0 -20
  125. data/spec/dummy/db/migrate/20180709023039_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +0 -15
@@ -16,7 +16,7 @@ require 'spec_helper'
16
16
  require 'rspec/rails'
17
17
  # Add additional requires below this line. Rails is not loaded until this point!
18
18
  require 'vcr'
19
- require 'factory_bot'
19
+ require 'factory_bot_rails'
20
20
  require 'rspec/active_model/mocks'
21
21
  require 'pundit/rspec'
22
22
  require "capybara/rspec"
@@ -74,5 +74,5 @@ RSpec.configure do |config|
74
74
  end
75
75
  end
76
76
 
77
- FactoryBot.definition_file_paths << "#{::Rails.root}/../../spec/factories"
78
- FactoryBot.find_definitions
77
+ #FactoryBot.definition_file_paths << "#{::Rails.root}/../../spec/factories"
78
+ #FactoryBot.find_definitions
@@ -0,0 +1,84 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe 'CustomProperties', type: :system do
4
+ include Devise::Test::IntegrationHelpers
5
+ fixtures :all
6
+
7
+ describe 'Manifestation' do
8
+ before do
9
+ @manifestation = FactoryBot.create(:manifestation_custom_property).resource
10
+ CarrierType.find_by(name: 'volume').update(attachment: File.open("#{Rails.root.to_s}/../../app/assets/images/icons/book.png"))
11
+ end
12
+
13
+ describe 'When logged in as Librarian' do
14
+ before do
15
+ sign_in users(:librarian1)
16
+ end
17
+
18
+ it 'should show custom property' do
19
+ visit manifestation_path(@manifestation.id, locale: :ja)
20
+ expect(page).to have_content @manifestation.custom_properties.first.label
21
+ expect(page).to have_content @manifestation.custom_properties.first.value
22
+ end
23
+ end
24
+
25
+ describe 'When logged in as User' do
26
+ before do
27
+ sign_in users(:user1)
28
+ end
29
+
30
+ it 'should not show custom property' do
31
+ visit manifestation_path(@manifestation.id, locale: :ja)
32
+ expect(page).not_to have_content @manifestation.custom_properties.first.label
33
+ expect(page).not_to have_content @manifestation.custom_properties.first.value
34
+ end
35
+ end
36
+
37
+ describe 'When not logged in' do
38
+ it 'should not show custom property' do
39
+ visit manifestation_path(@manifestation.id, locale: :ja)
40
+ expect(page).not_to have_content @manifestation.custom_properties.first.label
41
+ expect(page).not_to have_content @manifestation.custom_properties.first.value
42
+ end
43
+ end
44
+ end
45
+
46
+ describe 'Item' do
47
+ before do
48
+ @item = FactoryBot.create(:item_custom_property).resource
49
+ CarrierType.find_by(name: 'volume').update(attachment: File.open("#{Rails.root.to_s}/../../app/assets/images/icons/book.png"))
50
+ end
51
+
52
+ describe 'When logged in as Librarian' do
53
+ before do
54
+ sign_in users(:librarian1)
55
+ end
56
+
57
+ it 'should show custom property' do
58
+ visit item_path(@item.id, locale: :ja)
59
+ expect(page).to have_content @item.custom_properties.first.label
60
+ expect(page).to have_content @item.custom_properties.first.value
61
+ end
62
+ end
63
+
64
+ describe 'When logged in as User' do
65
+ before do
66
+ sign_in users(:user1)
67
+ end
68
+
69
+ it 'should not show custom property' do
70
+ visit item_path(@item.id, locale: :ja)
71
+ expect(page).not_to have_content @item.custom_properties.first.label
72
+ expect(page).not_to have_content @item.custom_properties.first.value
73
+ end
74
+ end
75
+
76
+ describe 'When not logged in' do
77
+ it 'should not show custom property' do
78
+ visit item_path(@item.id, locale: :ja)
79
+ expect(page).not_to have_content @item.custom_properties.first.label
80
+ expect(page).not_to have_content @item.custom_properties.first.value
81
+ end
82
+ end
83
+ end
84
+ end
@@ -19,6 +19,26 @@ RSpec.describe 'Manifestations', type: :system do
19
19
  visit item_path(@item.id, locale: :ja)
20
20
  expect(page).to have_content @item.memo
21
21
  end
22
+
23
+ it 'should show price' do
24
+ @item.update(price: '1500')
25
+ visit item_path(@item.id, locale: :ja)
26
+ expect(page).to have_content @item.price
27
+ end
28
+
29
+ it 'should show budget_type' do
30
+ budget_type = BudgetType.find(1)
31
+ @item.update(budget_type: budget_type)
32
+ visit item_path(@item.id, locale: :ja)
33
+ expect(page).to have_content budget_type.display_name_ja
34
+ end
35
+
36
+ it 'should show bookstore' do
37
+ bookstore = Bookstore.find(2)
38
+ @item.update(bookstore: bookstore)
39
+ visit item_path(@item.id, locale: :ja)
40
+ expect(page).to have_content bookstore.name
41
+ end
22
42
  end
23
43
 
24
44
  describe 'When logged in as User' do
@@ -31,6 +51,26 @@ RSpec.describe 'Manifestations', type: :system do
31
51
  visit item_path(@item.id, locale: :ja)
32
52
  expect(page).not_to have_content @item.memo
33
53
  end
54
+
55
+ it 'should not show price' do
56
+ @item.update(price: '1500')
57
+ visit item_path(@item.id, locale: :ja)
58
+ expect(page).not_to have_content @item.price
59
+ end
60
+
61
+ it 'should not show budget_type' do
62
+ budget_type = BudgetType.find(1)
63
+ @item.update(budget_type: budget_type)
64
+ visit item_path(@item.id, locale: :ja)
65
+ expect(page).not_to have_content budget_type.display_name
66
+ end
67
+
68
+ it 'should not show bookstore' do
69
+ bookstore = Bookstore.find(2)
70
+ @item.update(bookstore: bookstore)
71
+ visit item_path(@item.id, locale: :ja)
72
+ expect(page).not_to have_content bookstore.name
73
+ end
34
74
  end
35
75
 
36
76
  describe 'When not logged in' do
@@ -39,5 +79,25 @@ RSpec.describe 'Manifestations', type: :system do
39
79
  visit item_path(@item.id, locale: :ja)
40
80
  expect(page).not_to have_content @item.memo
41
81
  end
82
+
83
+ it 'should not show budget_type' do
84
+ budget_type = BudgetType.find(1)
85
+ @item.update(budget_type: budget_type)
86
+ visit item_path(@item.id, locale: :ja)
87
+ expect(page).not_to have_content budget_type.display_name
88
+ end
89
+
90
+ it 'should not show bookstore' do
91
+ bookstore = Bookstore.find(2)
92
+ @item.update(bookstore: bookstore)
93
+ visit item_path(@item.id, locale: :ja)
94
+ expect(page).not_to have_content bookstore.name
95
+ end
96
+
97
+ it 'should not show price' do
98
+ @item.update(price: '1500')
99
+ visit item_path(@item.id, locale: :ja)
100
+ expect(page).not_to have_content @item.price
101
+ end
42
102
  end
43
103
  end
@@ -0,0 +1,16 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe 'SeriesStatements', type: :system do
4
+ include Devise::Test::IntegrationHelpers
5
+ fixtures :all
6
+ before do
7
+ @series_statement = FactoryBot.create(:series_statement)
8
+ end
9
+
10
+ describe 'When not logged in' do
11
+ it 'should show default series_statement' do
12
+ visit series_statement_path(@series_statement.id, locale: :ja)
13
+ expect(page).to have_content @series_statement.creator_string
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ require "rails_helper.rb"
2
+
3
+ describe "manifestations/index.json.jbuilder", solr: true do
4
+ before(:each) do
5
+ manifestation = FactoryBot.create(:manifestation)
6
+ @manifestations = assign(:manifestations, [manifestation] )
7
+ @library_group = LibraryGroup.first
8
+ @count = {query_result: Manifestation.search.total}
9
+ view.stub(:filtered_params).and_return(ActionController::Parameters.new(per_page: 50).permit([:per_page]))
10
+ end
11
+
12
+ it "should export JSON format" do
13
+ params[:format] = "json"
14
+ render
15
+ expect(JSON.parse(rendered)['total_count']).to eq Manifestation.search.total
16
+ end
17
+ end
18
+
@@ -1,6 +1,6 @@
1
1
  require "rails_helper.rb"
2
2
 
3
- describe "manifestations/index.txt.erb" do
3
+ describe "manifestations/index.txt.ruby" do
4
4
  before(:each) do
5
5
  manifestation = FactoryBot.create(:manifestation)
6
6
  manifestation.items << FactoryBot.create(:item, bookstore_id: 1, budget_type_id: 1, price: 100)
@@ -1,6 +1,6 @@
1
1
  require 'rails_helper'
2
2
 
3
- describe "manifestations/show.txt.erb" do
3
+ describe "manifestations/show.txt.ruby" do
4
4
  fixtures :all
5
5
 
6
6
  before(:each) do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta.2
4
+ version: 0.4.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-10 00:00:00.000000000 Z
11
+ date: 2020-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_library
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.0.beta.3
19
+ version: 0.4.0.rc.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.0.beta.3
26
+ version: 0.4.0.rc.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: marc
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,98 +114,70 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.0.0.beta.1
117
+ version: 2.0.0.rc.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.0.0.beta.1
124
+ version: 2.0.0.rc.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: enju_manifestation_viewer
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.4.0.beta.1
131
+ version: 0.4.0.rc.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.4.0.beta.1
138
+ version: 0.4.0.rc.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: enju_message
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.4.0.beta.1
145
+ version: 0.4.0.rc.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.4.0.beta.1
152
+ version: 0.4.0.rc.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: enju_subject
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.4.0.beta.1
159
+ version: 0.4.0.rc.1
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.4.0.beta.1
167
- - !ruby/object:Gem::Dependency
168
- name: enju_bookmark
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: 0.4.0.beta.1
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: 0.4.0.beta.1
166
+ version: 0.4.0.rc.1
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: enju_ndl
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: 0.4.0.beta.1
173
+ version: 0.4.0.rc.1
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: 0.4.0.beta.1
195
- - !ruby/object:Gem::Dependency
196
- name: enju_oai
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: 0.4.0.beta.1
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: 0.4.0.beta.1
180
+ version: 0.4.0.rc.1
209
181
  - !ruby/object:Gem::Dependency
210
182
  name: pg
211
183
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +198,14 @@ dependencies:
226
198
  requirements:
227
199
  - - "~>"
228
200
  - !ruby/object:Gem::Version
229
- version: '3.8'
201
+ version: '3.9'
230
202
  type: :development
231
203
  prerelease: false
232
204
  version_requirements: !ruby/object:Gem::Requirement
233
205
  requirements:
234
206
  - - "~>"
235
207
  - !ruby/object:Gem::Version
236
- version: '3.8'
208
+ version: '3.9'
237
209
  - !ruby/object:Gem::Dependency
238
210
  name: factory_bot_rails
239
211
  requirement: !ruby/object:Gem::Requirement
@@ -350,16 +322,16 @@ dependencies:
350
322
  name: capybara
351
323
  requirement: !ruby/object:Gem::Requirement
352
324
  requirements:
353
- - - "~>"
325
+ - - ">="
354
326
  - !ruby/object:Gem::Version
355
- version: '3.11'
327
+ version: '0'
356
328
  type: :development
357
329
  prerelease: false
358
330
  version_requirements: !ruby/object:Gem::Requirement
359
331
  requirements:
360
- - - "~>"
332
+ - - ">="
361
333
  - !ruby/object:Gem::Version
362
- version: '3.11'
334
+ version: '0'
363
335
  - !ruby/object:Gem::Dependency
364
336
  name: selenium-webdriver
365
337
  requirement: !ruby/object:Gem::Requirement
@@ -402,6 +374,20 @@ dependencies:
402
374
  - - ">="
403
375
  - !ruby/object:Gem::Version
404
376
  version: '0'
377
+ - !ruby/object:Gem::Dependency
378
+ name: rails
379
+ requirement: !ruby/object:Gem::Requirement
380
+ requirements:
381
+ - - "~>"
382
+ - !ruby/object:Gem::Version
383
+ version: '5.2'
384
+ type: :development
385
+ prerelease: false
386
+ version_requirements: !ruby/object:Gem::Requirement
387
+ requirements:
388
+ - - "~>"
389
+ - !ruby/object:Gem::Version
390
+ version: '5.2'
405
391
  description: Bibliographic record module for Next-L Enju
406
392
  email:
407
393
  - nabeta@fastmail.fm
@@ -482,6 +468,7 @@ files:
482
468
  - app/models/country.rb
483
469
  - app/models/create.rb
484
470
  - app/models/create_type.rb
471
+ - app/models/custom_property.rb
485
472
  - app/models/doi_record.rb
486
473
  - app/models/donate.rb
487
474
  - app/models/form_of_work.rb
@@ -669,6 +656,7 @@ files:
669
656
  - app/views/import_requests/index.html.erb
670
657
  - app/views/import_requests/new.html.erb
671
658
  - app/views/import_requests/show.html.erb
659
+ - app/views/items/_custom_property_fields.html.erb
672
660
  - app/views/items/_form.html.erb
673
661
  - app/views/items/_observe_field.html.erb
674
662
  - app/views/items/_shelf_picture.html+phone.erb
@@ -715,6 +703,7 @@ files:
715
703
  - app/views/manifestations/_colorbox.html.erb
716
704
  - app/views/manifestations/_contributor_fields.html.erb
717
705
  - app/views/manifestations/_creator_fields.html.erb
706
+ - app/views/manifestations/_custom_property_fields.html.erb
718
707
  - app/views/manifestations/_edit_detail.html.erb
719
708
  - app/views/manifestations/_edition_and_number.html.erb
720
709
  - app/views/manifestations/_export_detail.html.erb
@@ -782,14 +771,14 @@ files:
782
771
  - app/views/manifestations/index.rdf.builder
783
772
  - app/views/manifestations/index.rss.builder
784
773
  - app/views/manifestations/index.sru.builder
785
- - app/views/manifestations/index.txt.erb
774
+ - app/views/manifestations/index.txt.ruby
786
775
  - app/views/manifestations/new.html.erb
787
776
  - app/views/manifestations/show.html+phone.erb
788
777
  - app/views/manifestations/show.html.erb
789
778
  - app/views/manifestations/show.js.erb
790
779
  - app/views/manifestations/show.mods.builder
791
780
  - app/views/manifestations/show.rdf.builder
792
- - app/views/manifestations/show.txt.erb
781
+ - app/views/manifestations/show.txt.ruby
793
782
  - app/views/medium_of_performances/_form.html.erb
794
783
  - app/views/medium_of_performances/edit.html.erb
795
784
  - app/views/medium_of_performances/index.html.erb
@@ -998,6 +987,7 @@ files:
998
987
  - db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb
999
988
  - db/migrate/20190818075603_add_memo_to_manifestation.rb
1000
989
  - db/migrate/20190818075628_add_memo_to_item.rb
990
+ - db/migrate/20191219122214_create_custom_properties.rb
1001
991
  - lib/enju_biblio.rb
1002
992
  - lib/enju_biblio/engine.rb
1003
993
  - lib/enju_biblio/openurl.rb
@@ -1295,9 +1285,7 @@ files:
1295
1285
  - spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
1296
1286
  - spec/dummy/db/migrate/20180709023035_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb
1297
1287
  - spec/dummy/db/migrate/20180709023036_add_missing_unique_indices.acts_as_taggable_on_engine.rb
1298
- - spec/dummy/db/migrate/20180709023037_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb
1299
1288
  - spec/dummy/db/migrate/20180709023038_add_missing_taggable_index.acts_as_taggable_on_engine.rb
1300
- - spec/dummy/db/migrate/20180709023039_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
1301
1289
  - spec/dummy/db/migrate/20180709023040_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb
1302
1290
  - spec/dummy/db/migrate/20180709161346_add_created_at_to_tag.rb
1303
1291
  - spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb
@@ -1308,6 +1296,7 @@ files:
1308
1296
  - spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb
1309
1297
  - spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb
1310
1298
  - spec/dummy/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb
1299
+ - spec/dummy/db/migrate/20191216131755_add_email_to_library_group.rb
1311
1300
  - spec/dummy/db/schema.rb
1312
1301
  - spec/dummy/db/test.sqlite3
1313
1302
  - spec/dummy/public/404.html
@@ -1330,6 +1319,7 @@ files:
1330
1319
  - spec/factories/country.rb
1331
1320
  - spec/factories/create.rb
1332
1321
  - spec/factories/create_types.rb
1322
+ - spec/factories/custom_property.rb
1333
1323
  - spec/factories/donate.rb
1334
1324
  - spec/factories/form_of_work.rb
1335
1325
  - spec/factories/frequency.rb
@@ -1444,6 +1434,7 @@ files:
1444
1434
  - spec/models/country_spec.rb
1445
1435
  - spec/models/create_spec.rb
1446
1436
  - spec/models/create_type_spec.rb
1437
+ - spec/models/custom_property_spec.rb
1447
1438
  - spec/models/doi_record_spec.rb
1448
1439
  - spec/models/donate_spec.rb
1449
1440
  - spec/models/form_of_work_spec.rb
@@ -1504,8 +1495,10 @@ files:
1504
1495
  - spec/support/controller_macros.rb
1505
1496
  - spec/support/devise.rb
1506
1497
  - spec/support/vcr.rb
1498
+ - spec/system/custom_properties_spec.rb
1507
1499
  - spec/system/items_spec.rb
1508
1500
  - spec/system/manifestations_spec.rb
1501
+ - spec/system/series_statements_spec.rb
1509
1502
  - spec/views/agent_types/edit.html.erb_spec.rb
1510
1503
  - spec/views/agent_types/index.html.erb_spec.rb
1511
1504
  - spec/views/agent_types/new.html.erb_spec.rb
@@ -1524,10 +1517,11 @@ files:
1524
1517
  - spec/views/import_requests/show.html.erb_spec.rb
1525
1518
  - spec/views/items/index.html.erb_spec.rb
1526
1519
  - spec/views/manifestations/index.html.erb_spec.rb
1520
+ - spec/views/manifestations/index.json.jbuilder_spec.rb
1527
1521
  - spec/views/manifestations/index.rdf.builder_spec.rb
1528
- - spec/views/manifestations/index.txt.erb_spec.rb
1522
+ - spec/views/manifestations/index.txt.ruby_spec.rb
1529
1523
  - spec/views/manifestations/show.html.erb_spec.rb
1530
- - spec/views/manifestations/show.txt.erb_spec.rb
1524
+ - spec/views/manifestations/show.txt.ruby_spec.rb
1531
1525
  - spec/views/owns/edit.html.erb_spec.rb
1532
1526
  - spec/views/owns/index.html.erb_spec.rb
1533
1527
  - spec/views/owns/new.html.erb_spec.rb
@@ -1650,7 +1644,6 @@ test_files:
1650
1644
  - spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb
1651
1645
  - spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
1652
1646
  - spec/dummy/db/migrate/035_create_reserves.rb
1653
- - spec/dummy/db/migrate/20180709023039_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
1654
1647
  - spec/dummy/db/migrate/20090519203307_create_participates.rb
1655
1648
  - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
1656
1649
  - spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb
@@ -1759,6 +1752,7 @@ test_files:
1759
1752
  - spec/dummy/db/migrate/20160703184747_add_most_recent_to_user_checkout_stat_transitions.rb
1760
1753
  - spec/dummy/db/migrate/20140812152348_create_event_export_files.rb
1761
1754
  - spec/dummy/db/migrate/055_create_bookmarks.rb
1755
+ - spec/dummy/db/migrate/20191216131755_add_email_to_library_group.rb
1762
1756
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
1763
1757
  - spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
1764
1758
  - spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb
@@ -1785,7 +1779,6 @@ test_files:
1785
1779
  - spec/dummy/db/migrate/20180107161951_add_constraints_to_most_recent_for_user_checkout_stat_transitions.rb
1786
1780
  - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
1787
1781
  - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
1788
- - spec/dummy/db/migrate/20180709023037_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb
1789
1782
  - spec/dummy/db/migrate/20180709161346_add_created_at_to_tag.rb
1790
1783
  - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
1791
1784
  - spec/dummy/db/migrate/149_create_message_templates.rb
@@ -1847,6 +1840,7 @@ test_files:
1847
1840
  - spec/models/content_type_spec.rb
1848
1841
  - spec/models/manifestation_relationship_type_spec.rb
1849
1842
  - spec/models/own_spec.rb
1843
+ - spec/models/custom_property_spec.rb
1850
1844
  - spec/models/realize_type_spec.rb
1851
1845
  - spec/models/identifier_type_spec.rb
1852
1846
  - spec/models/doi_record_spec.rb
@@ -1893,7 +1887,9 @@ test_files:
1893
1887
  - spec/requests/realize_types_spec.rb
1894
1888
  - spec/requests/series_statement_merge_lists_spec.rb
1895
1889
  - spec/requests/items_spec.rb
1890
+ - spec/system/series_statements_spec.rb
1896
1891
  - spec/system/manifestations_spec.rb
1892
+ - spec/system/custom_properties_spec.rb
1897
1893
  - spec/system/items_spec.rb
1898
1894
  - spec/support/controller_macros.rb
1899
1895
  - spec/support/vcr.rb
@@ -1911,6 +1907,7 @@ test_files:
1911
1907
  - spec/factories/language.rb
1912
1908
  - spec/factories/agent.rb
1913
1909
  - spec/factories/agent_merge.rb
1910
+ - spec/factories/custom_property.rb
1914
1911
  - spec/factories/license.rb
1915
1912
  - spec/factories/agent_relationship_type.rb
1916
1913
  - spec/factories/identifier_type.rb
@@ -2076,10 +2073,11 @@ test_files:
2076
2073
  - spec/views/creates/show.html.erb_spec.rb
2077
2074
  - spec/views/creates/new.html.erb_spec.rb
2078
2075
  - spec/views/creates/index.html.erb_spec.rb
2079
- - spec/views/manifestations/index.txt.erb_spec.rb
2080
2076
  - spec/views/manifestations/show.html.erb_spec.rb
2081
2077
  - spec/views/manifestations/index.rdf.builder_spec.rb
2082
- - spec/views/manifestations/show.txt.erb_spec.rb
2078
+ - spec/views/manifestations/index.txt.ruby_spec.rb
2079
+ - spec/views/manifestations/show.txt.ruby_spec.rb
2080
+ - spec/views/manifestations/index.json.jbuilder_spec.rb
2083
2081
  - spec/views/manifestations/index.html.erb_spec.rb
2084
2082
  - spec/views/realizes/edit.html.erb_spec.rb
2085
2083
  - spec/views/realizes/show.html.erb_spec.rb