enju_oai 0.1.0.pre6 → 0.1.0.pre7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/lib/enju_oai/engine.rb +0 -1
  2. data/lib/enju_oai/version.rb +1 -1
  3. data/spec/dummy/app/controllers/application_controller.rb +10 -16
  4. data/spec/dummy/config/application.yml +4 -0
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. metadata +23 -79
  7. data/spec/dummy/solr/data/test/index/_16.fdt +0 -0
  8. data/spec/dummy/solr/data/test/index/_16.fdx +0 -0
  9. data/spec/dummy/solr/data/test/index/_16.fnm +0 -7
  10. data/spec/dummy/solr/data/test/index/_16.frq +0 -0
  11. data/spec/dummy/solr/data/test/index/_16.nrm +0 -1
  12. data/spec/dummy/solr/data/test/index/_16.prx +0 -0
  13. data/spec/dummy/solr/data/test/index/_16.tii +0 -0
  14. data/spec/dummy/solr/data/test/index/_16.tis +0 -0
  15. data/spec/dummy/solr/data/test/index/_17.fdt +0 -0
  16. data/spec/dummy/solr/data/test/index/_17.fdx +0 -0
  17. data/spec/dummy/solr/data/test/index/_17.fnm +0 -7
  18. data/spec/dummy/solr/data/test/index/_17.frq +0 -0
  19. data/spec/dummy/solr/data/test/index/_17.nrm +0 -1
  20. data/spec/dummy/solr/data/test/index/_17.prx +0 -0
  21. data/spec/dummy/solr/data/test/index/_17.tii +0 -0
  22. data/spec/dummy/solr/data/test/index/_17.tis +0 -0
  23. data/spec/dummy/solr/data/test/index/_18.fdt +0 -0
  24. data/spec/dummy/solr/data/test/index/_18.fdx +0 -0
  25. data/spec/dummy/solr/data/test/index/_18.fnm +0 -7
  26. data/spec/dummy/solr/data/test/index/_18.frq +0 -0
  27. data/spec/dummy/solr/data/test/index/_18.nrm +0 -1
  28. data/spec/dummy/solr/data/test/index/_18.prx +0 -0
  29. data/spec/dummy/solr/data/test/index/_18.tii +0 -0
  30. data/spec/dummy/solr/data/test/index/_18.tis +0 -0
  31. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  32. data/spec/dummy/solr/data/test/index/segments_1p +0 -0
  33. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  34. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
@@ -1,5 +1,4 @@
1
1
  require 'enju_core'
2
- require 'mobile-fu'
3
2
 
4
3
  module EnjuOai
5
4
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module EnjuOai
2
- VERSION = "0.1.0.pre6"
2
+ VERSION = "0.1.0.pre7"
3
3
  end
@@ -11,9 +11,8 @@ class ApplicationController < ActionController::Base
11
11
 
12
12
  enju_biblio
13
13
  enju_library
14
- before_filter :get_library_group, :set_locale, :set_available_languages, :set_mobile_request
15
- has_mobile_fu
16
- before_filter :set_request_format
14
+ before_filter :get_library_group, :set_locale, :set_available_languages,
15
+ :set_mobile_request
17
16
 
18
17
  private
19
18
  def after_sign_in_path_for(resource)
@@ -239,21 +238,16 @@ class ApplicationController < ActionController::Base
239
238
 
240
239
  def set_mobile_request
241
240
  if params[:mobile_view]
242
- if params[:mobile_view] == 'false'
243
- session[:mobile_view] = false
244
- else
245
- session[:mobile_view] = true
241
+ case params[:mobile_view]
242
+ when 'true'
243
+ session[:mobylette_override] = :force_mobile
244
+ request.format = :mobile
245
+ when 'false'
246
+ session[:mobylette_override] = :ignore_mobile
247
+ request.format = :html
246
248
  end
247
249
  else
248
- if is_mobile_device?
249
- session[:mobile_view] = true
250
- end
251
- end
252
- end
253
-
254
- def set_request_format
255
- if session[:mobile_view]
256
- request.format = :mobile if is_mobile_device?
250
+ session[:mobylette_override] = nil
257
251
  end
258
252
  end
259
253
 
@@ -28,6 +28,10 @@ defaults: &defaults
28
28
  uploaded_file:
29
29
  storage: :local
30
30
 
31
+ manifestation:
32
+ facet:
33
+ pub_year_range_interval: 10
34
+
31
35
  development:
32
36
  <<: *defaults
33
37
 
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_oai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre6
4
+ version: 0.1.0.pre7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-04 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -27,22 +27,6 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.2'
30
- - !ruby/object:Gem::Dependency
31
- name: mobile-fu
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
30
  - !ruby/object:Gem::Dependency
47
31
  name: sqlite3
48
32
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +82,7 @@ dependencies:
98
82
  requirements:
99
83
  - - ~>
100
84
  - !ruby/object:Gem::Version
101
- version: 0.1.0.pre13
85
+ version: 0.1.0.pre16
102
86
  type: :development
103
87
  prerelease: false
104
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +90,7 @@ dependencies:
106
90
  requirements:
107
91
  - - ~>
108
92
  - !ruby/object:Gem::Version
109
- version: 0.1.0.pre13
93
+ version: 0.1.0.pre16
110
94
  - !ruby/object:Gem::Dependency
111
95
  name: enju_library
112
96
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +98,7 @@ dependencies:
114
98
  requirements:
115
99
  - - ~>
116
100
  - !ruby/object:Gem::Version
117
- version: 0.1.0.pre6
101
+ version: 0.1.0.pre7
118
102
  type: :development
119
103
  prerelease: false
120
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +106,7 @@ dependencies:
122
106
  requirements:
123
107
  - - ~>
124
108
  - !ruby/object:Gem::Version
125
- version: 0.1.0.pre6
109
+ version: 0.1.0.pre7
126
110
  - !ruby/object:Gem::Dependency
127
111
  name: enju_manifestation_viewer
128
112
  requirement: !ruby/object:Gem::Requirement
@@ -155,6 +139,22 @@ dependencies:
155
139
  - - ~>
156
140
  - !ruby/object:Gem::Version
157
141
  version: 2.0.0.pre.130115
142
+ - !ruby/object:Gem::Dependency
143
+ name: mobylette
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
158
  description: provide OAI-PMH methods for Next-L Enju
159
159
  email:
160
160
  - tanabe@mwr.mediacom.keio.ac.jp
@@ -337,34 +337,6 @@ files:
337
337
  - spec/dummy/solr/conf/spellings.txt
338
338
  - spec/dummy/solr/conf/stopwords.txt
339
339
  - spec/dummy/solr/conf/synonyms.txt
340
- - spec/dummy/solr/data/test/index/_16.fdt
341
- - spec/dummy/solr/data/test/index/_16.fdx
342
- - spec/dummy/solr/data/test/index/_16.fnm
343
- - spec/dummy/solr/data/test/index/_16.frq
344
- - spec/dummy/solr/data/test/index/_16.nrm
345
- - spec/dummy/solr/data/test/index/_16.prx
346
- - spec/dummy/solr/data/test/index/_16.tii
347
- - spec/dummy/solr/data/test/index/_16.tis
348
- - spec/dummy/solr/data/test/index/_17.fdt
349
- - spec/dummy/solr/data/test/index/_17.fdx
350
- - spec/dummy/solr/data/test/index/_17.fnm
351
- - spec/dummy/solr/data/test/index/_17.frq
352
- - spec/dummy/solr/data/test/index/_17.nrm
353
- - spec/dummy/solr/data/test/index/_17.prx
354
- - spec/dummy/solr/data/test/index/_17.tii
355
- - spec/dummy/solr/data/test/index/_17.tis
356
- - spec/dummy/solr/data/test/index/_18.fdt
357
- - spec/dummy/solr/data/test/index/_18.fdx
358
- - spec/dummy/solr/data/test/index/_18.fnm
359
- - spec/dummy/solr/data/test/index/_18.frq
360
- - spec/dummy/solr/data/test/index/_18.nrm
361
- - spec/dummy/solr/data/test/index/_18.prx
362
- - spec/dummy/solr/data/test/index/_18.tii
363
- - spec/dummy/solr/data/test/index/_18.tis
364
- - spec/dummy/solr/data/test/index/segments.gen
365
- - spec/dummy/solr/data/test/index/segments_1p
366
- - spec/dummy/solr/data/test/spellchecker/segments.gen
367
- - spec/dummy/solr/data/test/spellchecker/segments_1
368
340
  - spec/dummy/tmp/cache/4F7/F90/default_role
369
341
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
370
342
  - spec/factories/manifestation.rb
@@ -431,7 +403,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
431
403
  version: '0'
432
404
  segments:
433
405
  - 0
434
- hash: -736192081105819813
406
+ hash: 1744256357542441919
435
407
  required_rubygems_version: !ruby/object:Gem::Requirement
436
408
  none: false
437
409
  requirements:
@@ -602,34 +574,6 @@ test_files:
602
574
  - spec/dummy/solr/conf/spellings.txt
603
575
  - spec/dummy/solr/conf/stopwords.txt
604
576
  - spec/dummy/solr/conf/synonyms.txt
605
- - spec/dummy/solr/data/test/index/_16.fdt
606
- - spec/dummy/solr/data/test/index/_16.fdx
607
- - spec/dummy/solr/data/test/index/_16.fnm
608
- - spec/dummy/solr/data/test/index/_16.frq
609
- - spec/dummy/solr/data/test/index/_16.nrm
610
- - spec/dummy/solr/data/test/index/_16.prx
611
- - spec/dummy/solr/data/test/index/_16.tii
612
- - spec/dummy/solr/data/test/index/_16.tis
613
- - spec/dummy/solr/data/test/index/_17.fdt
614
- - spec/dummy/solr/data/test/index/_17.fdx
615
- - spec/dummy/solr/data/test/index/_17.fnm
616
- - spec/dummy/solr/data/test/index/_17.frq
617
- - spec/dummy/solr/data/test/index/_17.nrm
618
- - spec/dummy/solr/data/test/index/_17.prx
619
- - spec/dummy/solr/data/test/index/_17.tii
620
- - spec/dummy/solr/data/test/index/_17.tis
621
- - spec/dummy/solr/data/test/index/_18.fdt
622
- - spec/dummy/solr/data/test/index/_18.fdx
623
- - spec/dummy/solr/data/test/index/_18.fnm
624
- - spec/dummy/solr/data/test/index/_18.frq
625
- - spec/dummy/solr/data/test/index/_18.nrm
626
- - spec/dummy/solr/data/test/index/_18.prx
627
- - spec/dummy/solr/data/test/index/_18.tii
628
- - spec/dummy/solr/data/test/index/_18.tis
629
- - spec/dummy/solr/data/test/index/segments.gen
630
- - spec/dummy/solr/data/test/index/segments_1p
631
- - spec/dummy/solr/data/test/spellchecker/segments.gen
632
- - spec/dummy/solr/data/test/spellchecker/segments_1
633
577
  - spec/dummy/tmp/cache/4F7/F90/default_role
634
578
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
635
579
  - spec/factories/manifestation.rb
@@ -1,7 +0,0 @@
1
- ����*idtype
2
- class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
- library_sm
4
- language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
- end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
6
- creator_sm sort_title_s periodical_bperiodical_master_b
7
- title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textoriginal_manifestation_ids_im jtitle_text pub_date_dm
@@ -1 +0,0 @@
1
- NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttpt||||��|||||��||||||||||||||||||||||||||||||||||||||tu|||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,7 +0,0 @@
1
- ����*idtype
2
- class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
- library_sm
4
- language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
- end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
6
- creator_sm sort_title_s periodical_bperiodical_master_b
7
- title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textoriginal_manifestation_ids_im jtitle_text pub_date_dm
@@ -1 +0,0 @@
1
- NRM�xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,7 +0,0 @@
1
- ����0idtype
2
- class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
- library_sm
4
- language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
- end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
6
- creator_sm sort_title_s periodical_bperiodical_master_b
7
- title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textoriginal_manifestation_ids_im jtitle_text pub_date_dmissn_sm issn_textvolume_number_iissue_number_iserial_number_i atitle_text
@@ -1 +0,0 @@
1
- NRM�vruwvvuur|xutttttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|xu||tttwwuuuuuuxx|||||y|||��|||||||���������||||||||||||xw|||||||||||||||||||||||||y||||||||||||||||||||||||||tt|||||||||||||