enju_biblio 0.1.0.pre65 → 0.1.0.pre66

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/agent_import_files_controller.rb +2 -2
  3. data/app/controllers/manifestations_controller.rb +52 -38
  4. data/app/controllers/picture_files_controller.rb +2 -2
  5. data/app/controllers/resource_export_files_controller.rb +4 -3
  6. data/app/controllers/resource_import_files_controller.rb +2 -2
  7. data/app/helpers/manifestations_helper.rb +6 -0
  8. data/app/models/agent.rb +1 -1
  9. data/app/models/agent_import_file.rb +8 -3
  10. data/app/models/manifestation.rb +32 -9
  11. data/app/models/picture_file.rb +7 -2
  12. data/app/models/resource_export_file.rb +8 -2
  13. data/app/models/resource_import_file.rb +8 -3
  14. data/app/views/agent_import_files/index.html.erb +3 -1
  15. data/app/views/agent_import_files/show.html.erb +1 -1
  16. data/app/views/agents/_form.html.erb +1 -1
  17. data/app/views/items/edit.html.erb +1 -1
  18. data/app/views/items/index.html.erb +1 -1
  19. data/app/views/layouts/items.html.erb +1 -5
  20. data/app/views/layouts/manifestations.html.erb +1 -4
  21. data/app/views/manifestations/_show_creators.html.erb +6 -0
  22. data/app/views/manifestations/index.html.erb +2 -2
  23. data/app/views/resource_export_files/index.html.erb +1 -1
  24. data/app/views/resource_export_files/show.html.erb +5 -0
  25. data/app/views/resource_import_files/index.html.erb +3 -2
  26. data/app/views/resource_import_files/show.html.erb +1 -1
  27. data/app/workers/agent_import_file_queue.rb +1 -1
  28. data/app/workers/resource_export_file_queue.rb +1 -1
  29. data/app/workers/resource_import_file_queue.rb +1 -1
  30. data/lib/enju_biblio/version.rb +1 -1
  31. data/lib/generators/enju_biblio/setup/setup_generator.rb +0 -1
  32. data/lib/tasks/item.rb +5 -3
  33. data/spec/controllers/manifestations_controller_spec.rb +39 -13
  34. data/spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb +5 -0
  35. data/spec/dummy/db/schema.rb +2 -1
  36. data/spec/fixtures/items.yml +22 -0
  37. data/spec/fixtures/library_groups.yml +27 -21
  38. data/spec/spec_helper.rb +1 -0
  39. metadata +28 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c839ddf139ea8e9fc7d2926aa37afabf51fe325
4
- data.tar.gz: 280ec8b0ea508ab3cd854ffc8f413f65963bd977
3
+ metadata.gz: f1509aa40842f40dd4416c2f181b9e5ac6ddd18c
4
+ data.tar.gz: f4109e7cf362bdba0cfd122c9736c4904397f9aa
5
5
  SHA512:
6
- metadata.gz: e8c750255c7992b6af9e86b9359a8ef20c1f333486b20dc46ca553afdf8e1bf2506b343c32b92d2434897c19c6a46e985bb1188714e09efa57c80f62310aa0e8
7
- data.tar.gz: 1360353ffe8e1d3b68ec1480d2f5ee0f17713a462924254610cb39b958071094b8ab9798504149428498f0d4be5fabcc6062cc21bcc490fe2fb94bffc8f5bc65
6
+ metadata.gz: c1a84d6f9a2b744ad46b9bb9f3f75274a5218c348e1f5a5aeec7e4024475442095b8f4b4eef5653356aead060887a81f5753f7d569a8cadebe3555e2b5eeb8d7
7
+ data.tar.gz: bc7d2d4b5e80e629d77e3546d4965990f5d81899dd5a6217d7b438590403a846095473565c1dcfd36e3faaff39624a768aaa5b35aace80970261c7fc8f1acfe6
@@ -16,7 +16,7 @@ class AgentImportFilesController < ApplicationController
16
16
  # GET /agent_import_files/1.json
17
17
  def show
18
18
  if @agent_import_file.agent_import.path
19
- unless Setting.uploaded_file.storage == :s3
19
+ unless ENV['ENJU_STORAGE'] == 's3'
20
20
  file = @agent_import_file.agent_import.path
21
21
  end
22
22
  end
@@ -25,7 +25,7 @@ class AgentImportFilesController < ApplicationController
25
25
  format.html # show.html.erb
26
26
  format.json { render json: @agent_import_file }
27
27
  format.download {
28
- if Setting.uploaded_file.storage == :s3
28
+ if ENV['ENJU_STORAGE'] == 's3'
29
29
  redirect_to @agent_import_file.agent_import.expiring_url(10)
30
30
  else
31
31
  send_file file, filename: @agent_import_file.agent_import_file_name, type: 'application/octet-stream'
@@ -186,6 +186,12 @@ class ManifestationsController < ApplicationController
186
186
  all_result = search.execute
187
187
  @count[:query_result] = all_result.total
188
188
  @reservable_facet = all_result.facet(:reservable).rows if defined?(EnjuCirculation)
189
+ max_number_of_results = @library_group.settings[:max_number_of_results].to_i
190
+ if max_number_of_results == 0
191
+ @max_number_of_results = Manifestation.search.total
192
+ else
193
+ @max_number_of_results = max_number_of_results
194
+ end
189
195
 
190
196
  if session[:search_params]
191
197
  unless search.query.to_params == session[:search_params]
@@ -208,7 +214,7 @@ class ManifestationsController < ApplicationController
208
214
  else
209
215
  flash[:search_query] = @search_query
210
216
  @manifestation_ids = search.build do
211
- paginate page: 1, per_page: Setting.max_number_of_results
217
+ paginate page: 1, per_page: @max_number_of_results
212
218
  end.execute.raw_results.collect(&:primary_key).map{|id| id.to_i}
213
219
  end
214
220
  end
@@ -217,7 +223,7 @@ class ManifestationsController < ApplicationController
217
223
  if params[:view] == 'tag_cloud'
218
224
  unless @manifestation_ids
219
225
  @manifestation_ids = search.build do
220
- paginate page: 1, per_page: Setting.max_number_of_results
226
+ paginate page: 1, per_page: @max_number_of_results
221
227
  end.execute.raw_results.collect(&:primary_key).map{|id| id.to_i}
222
228
  end
223
229
  #bookmark_ids = Bookmark.where(manifestation_id: flash[:manifestation_ids]).limit(1000).pluck(:id)
@@ -230,7 +236,11 @@ class ManifestationsController < ApplicationController
230
236
  end
231
237
 
232
238
  page ||= params[:page] || 1
233
- per_page ||= Manifestation.default_per_page
239
+ if params[:per_page].to_i > 0
240
+ per_page = params[:per_page].to_i
241
+ else
242
+ per_page = Manifestation.default_per_page
243
+ end
234
244
  if params[:format] == 'sru'
235
245
  search.query.start_record(params[:startRecord] || 1, params[:maximumRecords] || 200)
236
246
  else
@@ -241,15 +251,15 @@ class ManifestationsController < ApplicationController
241
251
  else
242
252
  pub_date_range[:from] = Time.zone.parse(pub_dates[:from]).year
243
253
  end
244
- if pub_dates[:to] == '*'
245
- pub_date_range[:to] = 10000
254
+ if pub_dates[:until] == '*'
255
+ pub_date_range[:until] = 10000
246
256
  else
247
- pub_date_range[:to] = Time.zone.parse(pub_dates[:to]).year
257
+ pub_date_range[:until] = Time.zone.parse(pub_dates[:until]).year
248
258
  end
249
259
  if params[:pub_year_range_interval]
250
260
  pub_year_range_interval = params[:pub_year_range_interval].to_i
251
261
  else
252
- pub_year_range_interval = Setting.manifestation.facet.pub_year_range_interval
262
+ pub_year_range_interval = @library_group.settings[:pub_year_facet_range_interval] || 10
253
263
  end
254
264
 
255
265
  search.build do
@@ -257,20 +267,20 @@ class ManifestationsController < ApplicationController
257
267
  facet :carrier_type
258
268
  facet :library
259
269
  facet :language
260
- facet :pub_year, range: pub_date_range[:from]..pub_date_range[:to], range_interval: pub_year_range_interval
270
+ facet :pub_year, range: pub_date_range[:from]..pub_date_range[:until], range_interval: pub_year_range_interval
261
271
  facet :subject_ids if defined?(EnjuSubject)
262
272
  paginate page: page.to_i, per_page: per_page
263
273
  end
264
274
  end
265
275
  search_result = search.execute
266
- if @count[:query_result] > Setting.max_number_of_results
267
- max_count = Setting.max_number_of_results
276
+ if @count[:query_result] > @max_number_of_results
277
+ max_count = @max_number_of_results
268
278
  else
269
279
  max_count = @count[:query_result]
270
280
  end
271
281
  @manifestations = Kaminari.paginate_array(
272
282
  search_result.results, total_count: max_count
273
- ).page(page)
283
+ ).page(page).per(per_page)
274
284
 
275
285
  if params[:format].blank? or params[:format] == 'html'
276
286
  @carrier_type_facet = search_result.facet(:carrier_type).rows
@@ -387,8 +397,8 @@ class ManifestationsController < ApplicationController
387
397
  end
388
398
 
389
399
  if @manifestation.attachment.path
390
- if Setting.uploaded_file.storage == :s3
391
- data = Faraday.get(@manifestation.attachment.url).body.force_encoding('UTF-8')
400
+ if ENV['ENJU_STORAGE'] == 's3'
401
+ data = Faraday.get(@manifestation.attachment.expiring_url).body.force_encoding('UTF-8')
392
402
  else
393
403
  file = @manifestation.attachment.path
394
404
  end
@@ -412,7 +422,7 @@ class ManifestationsController < ApplicationController
412
422
  #format.js
413
423
  format.download {
414
424
  if @manifestation.attachment.path
415
- if Setting.uploaded_file.storage == :s3
425
+ if ENV['ENJU_STORAGE'] == 's3'
416
426
  send_data data, filename: File.basename(@manifestation.attachment_file_name), type: 'application/octet-stream'
417
427
  else
418
428
  if File.exist?(file) && File.file?(file)
@@ -617,10 +627,10 @@ class ManifestationsController < ApplicationController
617
627
  # query = "#{query} carrier_type_s:#{options[:carrier_type]}"
618
628
  #end
619
629
 
620
- #unless options[:library].blank?
621
- # library_list = options[:library].split.uniq.join(' && ')
622
- # query = "#{query} library_sm:#{library_list}"
623
- #end
630
+ unless options[:library_adv].blank?
631
+ library_list = options[:library_adv].split.uniq.join(' OR ')
632
+ query = "#{query} library_sm:(#{library_list})"
633
+ end
624
634
 
625
635
  #unless options[:language].blank?
626
636
  # query = "#{query} language_sm:#{options[:language]}"
@@ -670,6 +680,10 @@ class ManifestationsController < ApplicationController
670
680
  query = "#{query} publisher_text:#{options[:publisher]}"
671
681
  end
672
682
 
683
+ if options[:call_number].present?
684
+ query = "#{query} call_number_sm:#{options[:call_number]}*"
685
+ end
686
+
673
687
  if options[:item_identifier].present?
674
688
  query = "#{query} item_identifier_sm:#{options[:item_identifier]}"
675
689
  end
@@ -811,36 +825,36 @@ class ManifestationsController < ApplicationController
811
825
  end
812
826
  end
813
827
 
814
- if options[:pub_date_to].blank?
815
- pub_date[:to] = "*"
828
+ if options[:pub_date_until].blank?
829
+ pub_date[:until] = "*"
816
830
  else
817
- year = options[:pub_date_to].rjust(4, "0")
831
+ year = options[:pub_date_until].rjust(4, "0")
818
832
  if year.length == 4
819
- pub_date[:to] = Time.zone.parse(Time.utc(year).to_s).end_of_year.utc.iso8601
833
+ pub_date[:until] = Time.zone.parse(Time.utc(year).to_s).end_of_year.utc.iso8601
820
834
  else
821
- pub_date[:to] = Time.zone.parse(options[:pub_date_to]).end_of_day.utc.iso8601 rescue nil
835
+ pub_date[:until] = Time.zone.parse(options[:pub_date_until]).end_of_day.utc.iso8601 rescue nil
822
836
  end
823
- unless pub_date[:to]
824
- pub_date[:to] = Time.zone.parse(Time.utc(options[:pub_date_to]).to_s).end_of_year.utc.iso8601
837
+ unless pub_date[:until]
838
+ pub_date[:until] = Time.zone.parse(Time.utc(options[:pub_date_until]).to_s).end_of_year.utc.iso8601
825
839
  end
826
840
  end
827
841
  pub_date
828
842
  end
829
843
 
830
844
  def set_pub_date(query, options)
831
- unless options[:pub_date_from].blank? && options[:pub_date_to].blank?
845
+ unless options[:pub_date_from].blank? && options[:pub_date_until].blank?
832
846
  options[:pub_date_from].to_s.gsub!(/\D/, '')
833
- options[:pub_date_to].to_s.gsub!(/\D/, '')
847
+ options[:pub_date_until].to_s.gsub!(/\D/, '')
834
848
  pub_date = parse_pub_date(options)
835
- query = "#{query} date_of_publication_d:[#{pub_date[:from]} TO #{pub_date[:to]}]"
849
+ query = "#{query} date_of_publication_d:[#{pub_date[:from]} TO #{pub_date[:until]}]"
836
850
  end
837
851
  query
838
852
  end
839
853
 
840
854
  def set_acquisition_date(query, options)
841
- unless options[:acquired_from].blank? && options[:acquired_to].blank?
855
+ unless options[:acquired_from].blank? && options[:acquired_until].blank?
842
856
  options[:acquired_from].to_s.gsub!(/\D/, '')
843
- options[:acquired_to].to_s.gsub!(/\D/, '')
857
+ options[:acquired_until].to_s.gsub!(/\D/, '')
844
858
 
845
859
  acquisition_date = {}
846
860
  if options[:acquired_from].blank?
@@ -857,21 +871,21 @@ class ManifestationsController < ApplicationController
857
871
  end
858
872
  end
859
873
 
860
- if options[:acquired_to].blank?
861
- acquisition_date[:to] = "*"
874
+ if options[:acquired_until].blank?
875
+ acquisition_date[:until] = "*"
862
876
  else
863
- year = options[:acquired_to].rjust(4, "0")
877
+ year = options[:acquired_until].rjust(4, "0")
864
878
  if year.length == 4
865
- acquisition_date[:to] = Time.zone.parse(Time.utc(year).to_s).end_of_year.utc.iso8601
879
+ acquisition_date[:until] = Time.zone.parse(Time.utc(year).to_s).end_of_year.utc.iso8601
866
880
  else
867
- acquisition_date[:to] = Time.zone.parse(options[:acquired_to]).end_of_day.utc.iso8601 rescue nil
881
+ acquisition_date[:until] = Time.zone.parse(options[:acquired_until]).end_of_day.utc.iso8601 rescue nil
868
882
  end
869
- unless acquisition_date[:to]
870
- pub_date[:to] = Time.zone.parse(Time.utc(options[:acquired_to]).to_s).end_of_year.utc.iso8601
883
+ unless acquisition_date[:until]
884
+ acquisition_date[:until] = Time.zone.parse(Time.utc(options[:acquired_until]).to_s).end_of_year.utc.iso8601
871
885
  end
872
886
  end
873
887
 
874
- query = "#{query} acquired_at_d:[#{acquisition_date[:from]} TO #{acquisition_date[:to]}]"
888
+ query = "#{query} acquired_at_d:[#{acquisition_date[:from]} TO #{acquisition_date[:until]}]"
875
889
  end
876
890
  query
877
891
  end
@@ -30,7 +30,7 @@ class PictureFilesController < ApplicationController
30
30
  end
31
31
 
32
32
  if @picture_file.picture.path
33
- if Setting.uploaded_file.storage == :s3
33
+ if ENV['ENJU_STORAGE'] == 's3'
34
34
  file = Faraday.get(@picture_file.picture.expiring_url).body.force_encoding('UTF-8')
35
35
  else
36
36
  file = @picture_file.picture.path(size)
@@ -195,7 +195,7 @@ class PictureFilesController < ApplicationController
195
195
  end
196
196
 
197
197
  if @picture_file.picture.path
198
- if Setting.uploaded_file.storage == :s3
198
+ if ENV['ENJU_STORAGE'] == 's3'
199
199
  send_data file, filename: File.basename(@picture_file.picture_file_name), type: @picture_file.picture_content_type, disposition: disposition
200
200
  else
201
201
  if File.exist?(file) && File.file?(file)
@@ -16,7 +16,7 @@ class ResourceExportFilesController < ApplicationController
16
16
  # GET /resource_export_files/1.json
17
17
  def show
18
18
  if @resource_export_file.resource_export.path
19
- unless Setting.uploaded_file.storage == :s3
19
+ unless ENV['ENJU_STORAGE'] == 's3'
20
20
  file = @resource_export_file.resource_export.path
21
21
  end
22
22
  end
@@ -25,8 +25,9 @@ class ResourceExportFilesController < ApplicationController
25
25
  format.html # show.html.erb
26
26
  format.json { render json: @resource_export_file }
27
27
  format.download {
28
- if Setting.uploaded_file.storage == :s3
29
- redirect_to @resource_export_file.resource_export.expiring_url(10)
28
+ if ENV['ENJU_STORAGE'] == 's3'
29
+ send_data Faraday.get(@resource_export_file.resource_export.expiring_url).body.force_encoding('UTF-8'),
30
+ filename: File.basename(@resource_export_file.resource_export_file_name), type: 'application/octet-stream'
30
31
  else
31
32
  send_file file, filename: @resource_export_file.resource_export_file_name, type: 'application/octet-stream'
32
33
  end
@@ -17,7 +17,7 @@ class ResourceImportFilesController < ApplicationController
17
17
  # GET /resource_import_files/1.json
18
18
  def show
19
19
  if @resource_import_file.resource_import.path
20
- unless Setting.uploaded_file.storage == :s3
20
+ unless ENV['ENJU_STORAGE'] == 's3'
21
21
  file = @resource_import_file.resource_import.path
22
22
  end
23
23
  end
@@ -26,7 +26,7 @@ class ResourceImportFilesController < ApplicationController
26
26
  format.html # show.html.erb
27
27
  format.json { render json: @resource_import_file }
28
28
  format.download {
29
- if Setting.uploaded_file.storage == :s3
29
+ if ENV['ENJU_STORAGE'] == 's3'
30
30
  redirect_to @resource_import_file.resource_import.expiring_url(10)
31
31
  else
32
32
  send_file file, filename: @resource_import_file.resource_import_file_name, type: 'application/octet-stream'
@@ -138,6 +138,12 @@ module ManifestationsHelper
138
138
  title
139
139
  end
140
140
 
141
+ def holding_item_sort_criteria( item )
142
+ own_library = 2
143
+ own_library = 1 if signed_in? and current_user.profile.library_id == item.shelf.library_id
144
+ [ own_library, Library.find(item.shelf.library_id).position, item.shelf.position, item.id ]
145
+ end
146
+
141
147
  if defined?(EnjuBookmark)
142
148
  def link_to_bookmark(manifestation)
143
149
  if manifestation.bookmarked?(current_user)
@@ -80,7 +80,7 @@ class Agent < ActiveRecord::Base
80
80
 
81
81
  def set_full_name
82
82
  if full_name.blank?
83
- if last_name.to_s.strip && first_name.to_s.strip && Setting.family_name_first == true
83
+ if LibraryGroup.site_config.settings[:family_name_first]
84
84
  self.full_name = [last_name, middle_name, first_name].compact.join(" ").to_s.strip
85
85
  else
86
86
  self.full_name = [first_name, last_name, middle_name].compact.join(" ").to_s.strip
@@ -5,9 +5,14 @@ class AgentImportFile < ActiveRecord::Base
5
5
  scope :not_imported, -> { in_state(:pending) }
6
6
  scope :stucked, -> { in_state(:pending).where('agent_import_files.created_at < ?', 1.hour.ago) }
7
7
 
8
- if Setting.uploaded_file.storage == :s3
8
+ if ENV['ENJU_STORAGE'] == 's3'
9
9
  has_attached_file :agent_import, storage: :s3,
10
- s3_credentials: Setting.amazon,
10
+ s3_credentials: {
11
+ access_key: ENV['AWS_ACCESS_KEY_ID'],
12
+ secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
13
+ bucket: ENV['S3_BUCKET_NAME'],
14
+ s3_host_name: ENV['S3_HOST_NAME']
15
+ },
11
16
  s3_permissions: :private
12
17
  else
13
18
  has_attached_file :agent_import,
@@ -163,7 +168,7 @@ class AgentImportFile < ActiveRecord::Base
163
168
 
164
169
  def open_import_file
165
170
  tempfile = Tempfile.new(self.class.name.underscore)
166
- if Setting.uploaded_file.storage == :s3
171
+ if ENV['ENJU_STORAGE'] == 's3'
167
172
  uploaded_file_path = agent_import.expiring_url(10)
168
173
  else
169
174
  uploaded_file_path = agent_import.path
@@ -51,6 +51,9 @@ class Manifestation < ActiveRecord::Base
51
51
  items.pluck(:item_identifier)
52
52
  end
53
53
  end
54
+ string :call_number, multiple: true do
55
+ items.pluck(:call_number)
56
+ end
54
57
  string :title, multiple: true
55
58
  # text フィールドだと区切りのない文字列の index が上手く作成
56
59
  #できなかったので。 downcase することにした。
@@ -207,9 +210,14 @@ class Manifestation < ActiveRecord::Base
207
210
  time :acquired_at
208
211
  end
209
212
 
210
- if Setting.uploaded_file.storage == :s3
213
+ if ENV['ENJU_STORAGE'] == 's3'
211
214
  has_attached_file :attachment, storage: :s3,
212
- s3_credentials: Setting.amazon,
215
+ s3_credentials: {
216
+ access_key: ENV['AWS_ACCESS_KEY_ID'],
217
+ secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
218
+ bucket: ENV['S3_BUCKET_NAME'],
219
+ s3_host_name: ENV['S3_HOST_NAME']
220
+ },
213
221
  s3_permissions: :private
214
222
  else
215
223
  has_attached_file :attachment,
@@ -233,7 +241,7 @@ class Manifestation < ActiveRecord::Base
233
241
  validates :edition, numericality: {greater_than: 0}, allow_blank: true
234
242
  after_create :clear_cached_numdocs
235
243
  before_save :set_date_of_publication, :set_number
236
- after_save :index_series_statement
244
+ after_save :index_series_statement, :extract_text!
237
245
  after_destroy :index_series_statement
238
246
  after_touch do |manifestation|
239
247
  manifestation.index
@@ -363,11 +371,26 @@ class Manifestation < ActiveRecord::Base
363
371
  end
364
372
 
365
373
  def extract_text
366
- return nil unless attachment.path
367
- # TODO: S3 support
368
- response = `curl "#{Sunspot.config.solr.url}/update/extract?&extractOnly=true&wt=json" --data-binary @#{attachment.path} -H "Content-type:text/html"`
369
- self.fulltext = JSON.parse(response)["responseHeader"][""]
370
- save(validate: false)
374
+ return nil if attachment.path.nil?
375
+ if ENV['ENJU_STORAGE'] == 's3'
376
+ body = Faraday.get(attachment.expiring_url(10)).body.force_encoding('UTF-8')
377
+ else
378
+ body = File.open(attachment.path).read
379
+ end
380
+ client = Faraday.new(url: ENV['SOLR_URL']) do |conn|
381
+ conn.request :multipart
382
+ conn.adapter :net_http
383
+ end
384
+ response = client.post('update/extract?extractOnly=true&wt=json&extractFormat=text') do |req|
385
+ req.headers['Content-type'] = 'text/html'
386
+ req.body = body
387
+ end
388
+ update_column(:fulltext, JSON.parse(response.body)[""])
389
+ end
390
+
391
+ def extract_text!
392
+ extract_text
393
+ index!
371
394
  end
372
395
 
373
396
  def created(agent)
@@ -405,7 +428,7 @@ class Manifestation < ActiveRecord::Base
405
428
  end
406
429
 
407
430
  def index_series_statement
408
- series_statements.map{|s| s.index}
431
+ series_statements.map{|s| s.index; s.root_manifestation.try(:index)}
409
432
  end
410
433
 
411
434
  def acquired_at
@@ -2,9 +2,14 @@ class PictureFile < ActiveRecord::Base
2
2
  scope :attached, -> { where('picture_attachable_id IS NOT NULL') }
3
3
  belongs_to :picture_attachable, polymorphic: true, validate: true
4
4
 
5
- if Setting.uploaded_file.storage == :s3
5
+ if ENV['ENJU_STORAGE'] == 's3'
6
6
  has_attached_file :picture, storage: :s3, styles: { medium: "600x600>", thumb: "100x100>" },
7
- s3_credentials: Setting.amazon,
7
+ s3_credentials: {
8
+ access_key: ENV['AWS_ACCESS_KEY_ID'],
9
+ secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
10
+ bucket: ENV['S3_BUCKET_NAME'],
11
+ s3_host_name: ENV['S3_HOST_NAME']
12
+ },
8
13
  s3_permissions: :private
9
14
  else
10
15
  has_attached_file :picture, styles: { medium: "600x600>", thumb: "100x100>" },
@@ -2,9 +2,15 @@ class ResourceExportFile < ActiveRecord::Base
2
2
  include Statesman::Adapters::ActiveRecordQueries
3
3
  include ExportFile
4
4
  enju_export_file_model
5
- if Setting.uploaded_file.storage == :s3
5
+
6
+ if ENV['ENJU_STORAGE'] == 's3'
6
7
  has_attached_file :resource_export, storage: :s3,
7
- s3_credentials: Setting.amazon,
8
+ s3_credentials: {
9
+ access_key: ENV['AWS_ACCESS_KEY_ID'],
10
+ secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
11
+ bucket: ENV['S3_BUCKET_NAME'],
12
+ s3_host_name: ENV['S3_HOST_NAME']
13
+ },
8
14
  s3_permissions: :private
9
15
  else
10
16
  has_attached_file :resource_export,
@@ -6,9 +6,14 @@ class ResourceImportFile < ActiveRecord::Base
6
6
  scope :not_imported, -> { in_state(:pending) }
7
7
  scope :stucked, -> { in_state(:pending).where('resource_import_files.created_at < ?', 1.hour.ago) }
8
8
 
9
- if Setting.uploaded_file.storage == :s3
9
+ if ENV['ENJU_STORAGE'] == 's3'
10
10
  has_attached_file :resource_import, storage: :s3,
11
- s3_credentials: Setting.amazon,
11
+ s3_credentials: {
12
+ access_key: ENV['AWS_ACCESS_KEY_ID'],
13
+ secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
14
+ bucket: ENV['S3_BUCKET_NAME'],
15
+ s3_host_name: ENV['S3_HOST_NAME']
16
+ },
12
17
  s3_permissions: :private
13
18
  else
14
19
  has_attached_file :resource_import,
@@ -225,7 +230,7 @@ class ResourceImportFile < ActiveRecord::Base
225
230
  end
226
231
 
227
232
  def import_marc(marc_type)
228
- file = File.open(self.resource_import.path)
233
+ file = File.open(resource_import.path)
229
234
  case marc_type
230
235
  when 'marcxml'
231
236
  reader = MARC::XMLReader.new(file)
@@ -17,7 +17,9 @@
17
17
  <%- @agent_import_files.each do |agent_import_file| -%>
18
18
  <tr class="line<%= cycle("0", "1") -%>">
19
19
  <td><%= link_to agent_import_file.id, agent_import_file -%></td>
20
- <td><%= link_to agent_import_file.agent_import_file_name, agent_import_file -%></td>
20
+ <td>
21
+ <%= link_to agent_import_file.agent_import_file_name, agent_import_file_path(agent_import_file, format: :download) if agent_import_file.agent_import_file_name %>
22
+ </td>
21
23
  <td><%= l(agent_import_file.executed_at) if agent_import_file.executed_at -%></td>
22
24
  <td><%= link_to agent_import_file.user.username, agent_import_file.user.profile if agent_import_file.user.try(:profile) -%></td>
23
25
  <td><%= agent_import_file.edit_mode -%></td>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p>
12
12
  <strong><%= t('activerecord.attributes.agent_import_file.agent_import_file_name') -%>:</strong>
13
- <%= link_to @agent_import_file.agent_import_file_name, agent_import_file_path(@agent_import_file, format: :download) -%>
13
+ <%= link_to @agent_import_file.agent_import_file_name, agent_import_file_path(@agent_import_file, format: :download) if @agent_import_file.agent_import_file_name %>
14
14
  </p>
15
15
 
16
16
  <p>
@@ -9,7 +9,7 @@
9
9
 
10
10
  <div class="field">
11
11
  <span id="name_person">
12
- <%- if Setting.family_name_first == true -%>
12
+ <%- if @library_group.settings[:family_name_first] -%>
13
13
  <%= render 'agents/form_family_name_first', f: f -%>
14
14
  <%- else -%>
15
15
  <%= render 'agents/form_family_name_last', f: f -%>
@@ -13,6 +13,6 @@
13
13
  <% if can? :delete, @item %>
14
14
  <li><%= link_to t('page.destroy'), @item, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
15
15
  <% end %>
16
- <li><%= link_to t('page.back'), items_path(@item.manifestation.id) -%></li>
16
+ <li><%= link_to t('page.back'), items_path(manifestation_id: @item.manifestation.id) -%></li>
17
17
  </ul>
18
18
  </div>
@@ -16,7 +16,7 @@
16
16
  <%= t('activerecord.attributes.item.acquired_at') %>:
17
17
  <%= t('advanced_search.from') %>
18
18
  <%= text_field_tag 'acquired_from', @acquired_from, {class: 'date_field', placeholder: "#{t('page.example')}: 2012-04-12"} -%>
19
- <%= t('advanced_search.to') %> <%= text_field_tag 'acquired_to', @acquired_to, {class: 'date_field', placeholder: "#{t('page.example')}: 2012-05-11"} -%>
19
+ <%= t('advanced_search.to') %> <%= text_field_tag 'acquired_until', @acquired_until, {class: 'date_field', placeholder: "#{t('page.example')}: 2012-05-11"} -%>
20
20
  </p>
21
21
  <%- end -%>
22
22
  </div>
@@ -5,11 +5,7 @@
5
5
  <%= render 'page/include' %>
6
6
  <title><%= title(controller.controller_name) %></title>
7
7
  <% if %w(index show new edit).include?(controller.action_name) %>
8
- <%= book_jacket_header(Setting.book_jacket.source) %>
9
- <% if Setting.book_jacket.source == :google %>
10
- <script type="text/javascript" src="https://www.google.com/jsapi"></script>
11
- <%= render 'manifestations/google_book_thumbnail_header', manifestation: @manifestation if @manifestation %>
12
- <% end %>
8
+ <%= book_jacket_header(@library_group.settings[:book_jacket_source]) %>
13
9
  <% end %>
14
10
  </head>
15
11
  <body itemscope itemtype="http://schema.org/WebPage">
@@ -9,10 +9,7 @@
9
9
  <%= auto_discovery_link_tag(:atom, url_for(params.merge(format: :atom, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
10
10
  <%- end -%>
11
11
  <% if %w(show edit).include?(controller.action_name) %>
12
- <% if Setting.book_jacket.source == :google %>
13
- <script type="text/javascript" src="https://www.google.com/jsapi"></script>
14
- <%= render 'manifestations/google_book_thumbnail_header' %>
15
- <% end %>
12
+ <%= book_jacket_header(@library_group.settings[:book_jacket_source]) %>
16
13
  <% end %>
17
14
  <link rel="search" type="application/opensearchdescription+xml" title="<%= LibraryGroup.site_config.display_name.localize %>" href="<%= page_opensearch_url(format: :xml) %>" />
18
15
  </head>
@@ -15,3 +15,9 @@
15
15
  <%- if manifestation.pub_date.present? -%>
16
16
  (<%= manifestation.pub_date -%>)
17
17
  <%- end -%>
18
+ <% if defined?(EnjuSubject) %>
19
+ ;
20
+ <% manifestation.classifications.each do |classification| %>
21
+ <%= link_to "#{classification.classification_type.display_name.localize}: #{classification.category}", manifestations_path(query: "classification_sm:#{classification.classification_type.name}_#{classification.category}") %>
22
+ <% end %>
23
+ <% end %>
@@ -29,9 +29,9 @@
29
29
  <%- if @manifestations.total_count > 0 -%>
30
30
  <p>
31
31
  <%= t('page.number_of_search_results', count: @count[:query_result], numdocs: Manifestation.search.total, seconds: sprintf("%.3f", @seconds)) -%>
32
- <%- if @count[:query_result] > Setting.max_number_of_results -%>
32
+ <% if @count[:query_result] > @max_number_of_results %>
33
33
  <br />
34
- <%= t('page.limit_exceeded', count: Setting.max_number_of_results) -%>
34
+ <%= t('page.limit_exceeded', count: @max_number_of_results) %>
35
35
  <%- end -%>
36
36
  </p>
37
37
 
@@ -19,7 +19,7 @@
19
19
  <td><%= link_to resource_export_file.id, resource_export_file %></td>
20
20
  <td><%= resource_export_file.user.try(:username) %></td>
21
21
  <td>
22
- <%= link_to resource_export_file.resource_export_file_name, resource_export_file_path(resource_export_file, format: :download) if resource_export_file.resource_export.path %>
22
+ <%= link_to resource_export_file.resource_export_file_name, resource_export_file_path(resource_export_file, format: :download) if resource_export_file.resource_export_file_name %>
23
23
  <br />
24
24
  <%= resource_export_file.created_at %>
25
25
  </td>
@@ -18,6 +18,11 @@
18
18
  <%= localized_state(@resource_export_file.current_state) -%>
19
19
  </p>
20
20
 
21
+ <p>
22
+ <strong><%= t('page.created_at') -%>:</strong>
23
+ <%= l(@resource_export_file.created_at) if @resource_export_file.created_at -%>
24
+ </p>
25
+
21
26
  </div>
22
27
  </div>
23
28
 
@@ -20,9 +20,10 @@
20
20
  <tr class="line<%= cycle("0", "1") -%>">
21
21
  <td><%= link_to (resource_import_file.id), resource_import_file -%></td>
22
22
  <td>
23
- <%= link_to resource_import_file.resource_import_file_name, resource_import_file -%>
23
+ <%= link_to resource_import_file.resource_import_file_name, resource_import_file_path(resource_import_file, format: :download) if resource_import_file.resource_import_file_name %>
24
24
  <br />
25
- <%= t('activerecord.models.user') -%>: <%= link_to resource_import_file.user.username, resource_import_file.user.profile if resource_import_file.user.try(:profile) -%></td>
25
+ <%= t('activerecord.models.user') -%>: <%= link_to resource_import_file.user.username, resource_import_file.user.profile if resource_import_file.user.try(:profile) -%>
26
+ </td>
26
27
  <td><%= resource_import_file.edit_mode -%></td>
27
28
  <td><%= l(resource_import_file.executed_at) if resource_import_file.executed_at -%></td>
28
29
  <td><%= localized_state(resource_import_file.current_state) -%></td>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p>
12
12
  <strong><%= t('activerecord.attributes.resource_import_file.resource_import_file_name') -%>:</strong>
13
- <%= link_to @resource_import_file.resource_import_file_name, resource_import_file_path(@resource_import_file, format: :download) -%>
13
+ <%= link_to @resource_import_file.resource_import_file_name, resource_import_file_path(@resource_import_file, format: :download) if @resource_import_file.resource_import_file_name %>
14
14
  </p>
15
15
 
16
16
  <p>
@@ -1,5 +1,5 @@
1
1
  class AgentImportFileQueue
2
- @queue = :agent_import_file
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(agent_import_file_id)
5
5
  AgentImportFile.find(agent_import_file_id).import_start
@@ -1,5 +1,5 @@
1
1
  class ResourceExportFileQueue
2
- @queue = :resource_export_file
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(resource_export_id)
5
5
  ResourceExportFile.find(resource_export_id).export!
@@ -1,5 +1,5 @@
1
1
  class ResourceImportFileQueue
2
- @queue = :resource_import_file
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(resource_import_file_id)
5
5
  ResourceImportFile.find(resource_import_file_id).import_start
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre65"
2
+ VERSION = "0.1.0.pre66"
3
3
  end
@@ -5,7 +5,6 @@ class EnjuBiblio::SetupGenerator < Rails::Generators::Base
5
5
  def copy_setup_files
6
6
  directory("db/fixtures", "db/fixtures/enju_biblio")
7
7
  return if file == 'fixture'
8
- rake("enju_biblio_engine:install:migrations")
9
8
  append_to_file("config/schedule.rb", File.open(File.expand_path('../templates', __FILE__) + '/config/schedule.rb').read)
10
9
  end
11
10
  end
@@ -1,7 +1,9 @@
1
1
  def update_item
2
- Exemplify.find_each do |exemplify|
3
- if exemplify.item
4
- exemplify.item.update_column(:manifestation_id, exemplify.manifestation_id) unless exemplify.item.manifestation_id
2
+ if defined?(Exemplify)
3
+ Exemplify.find_each do |exemplify|
4
+ if exemplify.item
5
+ exemplify.item.update_column(:manifestation_id, exemplify.manifestation_id) unless exemplify.item.manifestation_id
6
+ end
5
7
  end
6
8
  end
7
9
  end
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*-
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe ManifestationsController do
@@ -82,32 +84,32 @@ describe ManifestationsController do
82
84
  expect(assigns(:manifestations)).to_not be_nil
83
85
  end
84
86
 
85
- it "assigns all manifestations as @manifestations when pub_date_from and pub_date_to are specified" do
86
- get :index, :pub_date_from => '2000', :pub_date_to => '2007'
87
- assigns(:query).should eq "date_of_publication_d:[#{Time.zone.parse('2000-01-01').utc.iso8601} TO #{Time.zone.parse('2007-12-31').end_of_year.utc.iso8601}]"
87
+ it "assigns all manifestations as @manifestations when pub_date_from and pub_date_until are specified" do
88
+ get :index, :pub_date_from => '2000', :pub_date_until => '2007'
89
+ assigns(:query).should eq "date_of_publication_d:[#{Time.zone.parse('2000-01-01').beginning_of_day.utc.iso8601} TO #{Time.zone.parse('2007-12-31').end_of_year.utc.iso8601}]"
88
90
  expect(assigns(:manifestations)).to_not be_nil
89
91
  end
90
92
 
91
- it "assigns all manifestations as @manifestations when old pub_date_from and pub_date_to are specified" do
92
- get :index, :pub_date_from => '200', :pub_date_to => '207'
93
+ it "assigns all manifestations as @manifestations when old pub_date_from and pub_date_until are specified" do
94
+ get :index, :pub_date_from => '200', :pub_date_until => '207'
93
95
  assigns(:query).should eq "date_of_publication_d:[#{Time.zone.parse('200-01-01').utc.iso8601} TO #{Time.zone.parse('207-12-31').end_of_year.utc.iso8601}]"
94
96
  expect(assigns(:manifestations)).to_not be_nil
95
97
  end
96
98
 
97
- it "assigns all manifestations as @manifestations when acquired_from and pub_date_to are specified" do
98
- get :index, :acquired_from => '2000', :acquired_to => '2007'
99
- assigns(:query).should eq "acquired_at_d:[#{Time.zone.parse('2000-01-01').utc.iso8601} TO #{Time.zone.parse('2007-12-31').end_of_day.utc.iso8601}]"
99
+ it "assigns all manifestations as @manifestations when acquired_from and pub_date_until are specified" do
100
+ get :index, :acquired_from => '2000', :acquired_until => '2007'
101
+ assigns(:query).should eq "acquired_at_d:[#{Time.zone.parse('2000-01-01').beginning_of_day.utc.iso8601} TO #{Time.zone.parse('2007-12-31').end_of_year.utc.iso8601}]"
100
102
  expect(assigns(:manifestations)).to_not be_nil
101
103
  end
102
104
 
103
- it "assigns all manifestations as @manifestations when old acquired_from and pub_date_to are specified" do
104
- get :index, :acquired_from => '200', :acquired_to => '207'
105
+ it "assigns all manifestations as @manifestations when old acquired_from and pub_date_until are specified" do
106
+ get :index, :acquired_from => '200', :acquired_until => '207'
105
107
  assigns(:query).should eq "acquired_at_d:[#{Time.zone.parse('200-01-01').utc.iso8601} TO #{Time.zone.parse('207-12-31').end_of_day.utc.iso8601}]"
106
108
  expect(assigns(:manifestations)).to_not be_nil
107
109
  end
108
110
 
109
111
  it "assigns all manifestations as @manifestations when number_of_pages_at_least and number_of_pages_at_most are specified" do
110
- get :index, :number_of_pages_at_least => '100', :number_of_pages_at_least => '200'
112
+ get :index, :number_of_pages_at_least => '100', :number_of_pages_at_most => '200'
111
113
  expect(assigns(:manifestations)).to_not be_nil
112
114
  end
113
115
 
@@ -149,8 +151,8 @@ describe ManifestationsController do
149
151
  assigns(:query).should eq '2005 date_of_publication_d:[1999-12-31T15:00:00Z TO *]'
150
152
  end
151
153
 
152
- it "should get index with pub_date_to" do
153
- get :index, :query => '2005', :pub_date_to => '2000'
154
+ it "should get index with pub_date_until" do
155
+ get :index, :query => '2005', :pub_date_until => '2000'
154
156
  expect(response).to be_success
155
157
  expect(assigns(:manifestations)).to be_truthy
156
158
  assigns(:query).should eq '2005 date_of_publication_d:[* TO 2000-12-31T14:59:59Z]'
@@ -173,6 +175,30 @@ describe ManifestationsController do
173
175
  expect(response).to be_success
174
176
  expect(assigns(:manifestations)).to be_empty
175
177
  end
178
+
179
+ it "should show manifestation with library 3", :solr => true do
180
+ get :index, :library_adv => ["hachioji"]
181
+ expect(response).to be_success
182
+ expect(assigns(:manifestations).size).to eq 1
183
+ end
184
+
185
+ it "should show manifestation with library 2 or 3", :solr => true do
186
+ get :index, :library_adv => ["hachioji", "kamata"]
187
+ expect(response).to be_success
188
+ expect(assigns(:manifestations).size).to eq 2
189
+ end
190
+
191
+ it "should show manifestation with call_number", :solr => true do
192
+ get :index, :call_number => "547|ヤ"
193
+ expect(response).to be_success
194
+ expect(assigns(:manifestations)).not_to be_empty
195
+ end
196
+
197
+ it "should accept per_page params" do
198
+ get :index, per_page: 3
199
+ expect(assigns(:manifestations).count).to eq 3
200
+ expect(assigns(:manifestations).total_count).to eq 119
201
+ end
176
202
  end
177
203
  end
178
204
 
@@ -0,0 +1,5 @@
1
+ class AddSettingsToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :settings, :text
4
+ end
5
+ end
@@ -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: 20150117111136) do
14
+ ActiveRecord::Schema.define(version: 20150221063719) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -764,6 +764,7 @@ ActiveRecord::Schema.define(version: 20150117111136) do
764
764
  t.text "admin_networks"
765
765
  t.boolean "allow_bookmark_external_url", default: false, null: false
766
766
  t.string "url", default: "http://localhost:3000/"
767
+ t.text "settings"
767
768
  end
768
769
 
769
770
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
@@ -252,6 +252,28 @@ item_00023:
252
252
  id: 23
253
253
  include_supplements: false
254
254
  created_at: 2007-08-24 23:46:20.484813 +09:00
255
+ item_00024:
256
+ updated_at: 2007-08-24 23:46:08.607081 +09:00
257
+ item_identifier: '00024'
258
+ circulation_status_id: 2
259
+ checkout_type_id: 1
260
+ shelf_id: 3
261
+ call_number:
262
+ manifestation_id: 102
263
+ id: 24
264
+ include_supplements: false
265
+ created_at: 2007-08-24 23:46:08.607081 +09:00
266
+ item_00025:
267
+ updated_at: 2007-08-24 23:46:08.607081 +09:00
268
+ item_identifier: '00025'
269
+ circulation_status_id: 2
270
+ checkout_type_id: 1
271
+ shelf_id: 3
272
+ call_number: '547|ヤ'
273
+ manifestation_id: 102
274
+ id: 25
275
+ include_supplements: false
276
+ created_at: 2007-08-24 23:46:08.607081 +09:00
255
277
 
256
278
  # == Schema Information
257
279
  #
@@ -1,31 +1,37 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
  one:
3
3
  id: 1
4
- name: enju_library
5
- display_name: "<%= I18n.locale %>: Enju Library"
6
- short_name: enju
4
+ name: unknown
5
+ display_name: unknown
6
+ short_name: unknown
7
7
  note:
8
- my_networks: 0.0.0.0/0
8
+ my_networks: "0.0.0.0/0\r\n\
9
+ ::/0"
9
10
  url: "http://localhost:3000/"
10
-
11
-
11
+ position: 1
12
+ login_banner: "*Next-L Enju*"
13
+ admin_networks: "0.0.0.0/0\r\n\
14
+ ::/0"
15
+ settings: <% if Rails::VERSION::MAJOR > 3 %>
16
+ "{\"max_number_of_results\":200,\"family_name_first\":true}"
17
+ <% else %>
18
+ "---\n:max_number_of_results: 200\n:family_name_first: true\n"
19
+ <% end %>
12
20
  # == Schema Information
13
21
  #
14
22
  # Table name: library_groups
15
23
  #
16
- # id :integer not null, primary key
17
- # name :string(255) not null
18
- # display_name :text
19
- # short_name :string(255) not null
20
- # my_networks :text
21
- # login_banner :text
22
- # note :text
23
- # country_id :integer
24
- # created_at :datetime not null
25
- # updated_at :datetime not null
26
- # admin_networks :text
27
- # allow_bookmark_external_url :boolean default(FALSE), not null
28
- # position :integer
29
- # url :string(255) default("http://localhost:3000/")
24
+ # id :integer not null, primary key
25
+ # name :string(255) not null
26
+ # display_name :text
27
+ # short_name :string(255) not null
28
+ # my_networks :text
29
+ # login_banner :text
30
+ # note :text
31
+ # country_id :integer
32
+ # position :integer
33
+ # created_at :datetime not null
34
+ # updated_at :datetime not null
35
+ # admin_networks :text
36
+ # url :string(255) default("http://localhost:3000/")
30
37
  #
31
-
@@ -5,6 +5,7 @@ Coveralls.wear!
5
5
 
6
6
  # This file is copied to spec/ when you run 'rails generate rspec:install'
7
7
  ENV["RAILS_ENV"] ||= 'test'
8
+ ENV["SOLR_URL"] ||= 'http://localhost:8981/solr/test'
8
9
  require File.expand_path("../../spec/dummy/config/environment", __FILE__)
9
10
  require 'rspec/rails'
10
11
  require 'vcr'
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.1.0.pre65
4
+ version: 0.1.0.pre66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-17 00:00:00.000000000 Z
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip
@@ -282,28 +282,28 @@ dependencies:
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: '2.1'
285
+ version: '2.2'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
- version: '2.1'
292
+ version: '2.2'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: enju_leaf
295
295
  requirement: !ruby/object:Gem::Requirement
296
296
  requirements:
297
297
  - - "~>"
298
298
  - !ruby/object:Gem::Version
299
- version: 1.1.0.rc17
299
+ version: 1.1.0.rc18
300
300
  type: :development
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
- version: 1.1.0.rc17
306
+ version: 1.1.0.rc18
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: enju_subject
309
309
  requirement: !ruby/object:Gem::Requirement
@@ -352,14 +352,14 @@ dependencies:
352
352
  requirements:
353
353
  - - "~>"
354
354
  - !ruby/object:Gem::Version
355
- version: 0.1.17.pre24
355
+ version: 0.1.17.pre25
356
356
  type: :development
357
357
  prerelease: false
358
358
  version_requirements: !ruby/object:Gem::Requirement
359
359
  requirements:
360
360
  - - "~>"
361
361
  - !ruby/object:Gem::Version
362
- version: 0.1.17.pre24
362
+ version: 0.1.17.pre25
363
363
  - !ruby/object:Gem::Dependency
364
364
  name: enju_manifestation_viewer
365
365
  requirement: !ruby/object:Gem::Requirement
@@ -380,28 +380,28 @@ dependencies:
380
380
  requirements:
381
381
  - - "~>"
382
382
  - !ruby/object:Gem::Version
383
- version: 0.1.0.pre42
383
+ version: 0.1.0.pre44
384
384
  type: :development
385
385
  prerelease: false
386
386
  version_requirements: !ruby/object:Gem::Requirement
387
387
  requirements:
388
388
  - - "~>"
389
389
  - !ruby/object:Gem::Version
390
- version: 0.1.0.pre42
390
+ version: 0.1.0.pre44
391
391
  - !ruby/object:Gem::Dependency
392
392
  name: enju_ndl
393
393
  requirement: !ruby/object:Gem::Requirement
394
394
  requirements:
395
395
  - - "~>"
396
396
  - !ruby/object:Gem::Version
397
- version: 0.1.0.pre35
397
+ version: 0.1.0.pre36
398
398
  type: :development
399
399
  prerelease: false
400
400
  version_requirements: !ruby/object:Gem::Requirement
401
401
  requirements:
402
402
  - - "~>"
403
403
  - !ruby/object:Gem::Version
404
- version: 0.1.0.pre35
404
+ version: 0.1.0.pre36
405
405
  - !ruby/object:Gem::Dependency
406
406
  name: simplecov
407
407
  requirement: !ruby/object:Gem::Requirement
@@ -472,6 +472,20 @@ dependencies:
472
472
  - - ">="
473
473
  - !ruby/object:Gem::Version
474
474
  version: '0'
475
+ - !ruby/object:Gem::Dependency
476
+ name: appraisal
477
+ requirement: !ruby/object:Gem::Requirement
478
+ requirements:
479
+ - - ">="
480
+ - !ruby/object:Gem::Version
481
+ version: '0'
482
+ type: :development
483
+ prerelease: false
484
+ version_requirements: !ruby/object:Gem::Requirement
485
+ requirements:
486
+ - - ">="
487
+ - !ruby/object:Gem::Version
488
+ version: '0'
475
489
  description: Bibliographic record module for Next-L Enju
476
490
  email:
477
491
  - nabeta@fastmail.fm
@@ -1195,6 +1209,7 @@ files:
1195
1209
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
1196
1210
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
1197
1211
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
1212
+ - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
1198
1213
  - spec/dummy/db/schema.rb
1199
1214
  - spec/dummy/public/404.html
1200
1215
  - spec/dummy/public/422.html
@@ -1667,6 +1682,7 @@ test_files:
1667
1682
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
1668
1683
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
1669
1684
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
1685
+ - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
1670
1686
  - spec/dummy/db/schema.rb
1671
1687
  - spec/dummy/public/404.html
1672
1688
  - spec/dummy/public/422.html