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.
- data/lib/enju_oai/engine.rb +0 -1
- data/lib/enju_oai/version.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +10 -16
- data/spec/dummy/config/application.yml +4 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +23 -79
- data/spec/dummy/solr/data/test/index/_16.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_16.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_16.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_16.frq +0 -0
- data/spec/dummy/solr/data/test/index/_16.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_16.prx +0 -0
- data/spec/dummy/solr/data/test/index/_16.tii +0 -0
- data/spec/dummy/solr/data/test/index/_16.tis +0 -0
- data/spec/dummy/solr/data/test/index/_17.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_17.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_17.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_17.frq +0 -0
- data/spec/dummy/solr/data/test/index/_17.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_17.prx +0 -0
- data/spec/dummy/solr/data/test/index/_17.tii +0 -0
- data/spec/dummy/solr/data/test/index/_17.tis +0 -0
- data/spec/dummy/solr/data/test/index/_18.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_18.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_18.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_18.frq +0 -0
- data/spec/dummy/solr/data/test/index/_18.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_18.prx +0 -0
- data/spec/dummy/solr/data/test/index/_18.tii +0 -0
- data/spec/dummy/solr/data/test/index/_18.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1p +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
data/lib/enju_oai/engine.rb
CHANGED
data/lib/enju_oai/version.rb
CHANGED
@@ -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,
|
15
|
-
|
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
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
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
|
-
|
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
|
|
data/spec/dummy/db/test.sqlite3
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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:
|
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
|
Binary file
|
Binary file
|
@@ -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_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
5
|
-
end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
|
6
|
-
creator_smsort_title_speriodical_bperiodical_master_b
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textoriginal_manifestation_ids_imjtitle_textpub_date_dm
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttpt||||��|||||��||||||||||||||||||||||||||||||||||||||tu|||||||||||||||||||||||||||||||||||||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
5
|
-
end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
|
6
|
-
creator_smsort_title_speriodical_bperiodical_master_b
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textoriginal_manifestation_ids_imjtitle_textpub_date_dm
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
NRM�xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
5
|
-
end_page_inumber_of_pages_iseries_statement_id_irepository_content_b
|
6
|
-
creator_smsort_title_speriodical_bperiodical_master_b
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textoriginal_manifestation_ids_imjtitle_textpub_date_dmissn_sm issn_textvolume_number_iissue_number_iserial_number_iatitle_text
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
NRM�vruwvvuur|xutttttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|xu||tttwwuuuuuuxx|||||y|||��|||||||���������||||||||||||xw|||||||||||||||||||||||||y||||||||||||||||||||||||||tt|||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|