enju_biblio 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/items_controller.rb +1 -1
- data/app/controllers/patrons_controller.rb +1 -1
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/_3f.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_3f.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_3f.fnm +3 -0
- data/spec/dummy/solr/data/test/index/_3f.frq +0 -0
- data/spec/dummy/solr/data/test/index/_3f.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_3f.prx +0 -0
- data/spec/dummy/solr/data/test/index/_3f.tii +0 -0
- data/spec/dummy/solr/data/test/index/_3f.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_57 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- metadata +21 -3
- data/spec/dummy/solr/data/test/index/segments_n6 +0 -0
@@ -80,7 +80,7 @@ class ItemsController < ApplicationController
|
|
80
80
|
|
81
81
|
role = current_user.try(:role) || Role.default_role
|
82
82
|
search.build do
|
83
|
-
with(:required_role_id).
|
83
|
+
with(:required_role_id).less_than_or_equal_to role.id
|
84
84
|
end
|
85
85
|
|
86
86
|
page = params[:page] || 1
|
@@ -74,7 +74,7 @@ class PatronsController < ApplicationController
|
|
74
74
|
|
75
75
|
role = current_user.try(:role) || Role.default_role
|
76
76
|
search.build do
|
77
|
-
with(:required_role_id).
|
77
|
+
with(:required_role_id).less_than_or_equal_to role.id
|
78
78
|
end
|
79
79
|
|
80
80
|
page = params[:page] || 1
|
data/lib/enju_biblio/version.rb
CHANGED
@@ -70,7 +70,7 @@ class ApplicationController < ActionController::Base
|
|
70
70
|
def set_role_query(user, search)
|
71
71
|
role = user.try(:role) || Role.default_role
|
72
72
|
search.build do
|
73
|
-
with(:required_role_id).
|
73
|
+
with(:required_role_id).less_than_or_equal_to role.id
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
NRM�yyxyyxxxxxyttuuux��||���������������||�������������
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_biblio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -1134,10 +1134,19 @@ files:
|
|
1134
1134
|
- spec/dummy/solr/conf/spellings.txt
|
1135
1135
|
- spec/dummy/solr/conf/stopwords.txt
|
1136
1136
|
- spec/dummy/solr/conf/synonyms.txt
|
1137
|
+
- spec/dummy/solr/data/test/index/_3f.fdt
|
1138
|
+
- spec/dummy/solr/data/test/index/_3f.fdx
|
1139
|
+
- spec/dummy/solr/data/test/index/_3f.fnm
|
1140
|
+
- spec/dummy/solr/data/test/index/_3f.frq
|
1141
|
+
- spec/dummy/solr/data/test/index/_3f.nrm
|
1142
|
+
- spec/dummy/solr/data/test/index/_3f.prx
|
1143
|
+
- spec/dummy/solr/data/test/index/_3f.tii
|
1144
|
+
- spec/dummy/solr/data/test/index/_3f.tis
|
1137
1145
|
- spec/dummy/solr/data/test/index/segments.gen
|
1138
|
-
- spec/dummy/solr/data/test/index/
|
1146
|
+
- spec/dummy/solr/data/test/index/segments_57
|
1139
1147
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1140
1148
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1149
|
+
- spec/dummy/tmp/cache/4AD/470/country_all
|
1141
1150
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
1142
1151
|
- spec/dummy/tmp/cache/6E4/420/search_engine_all
|
1143
1152
|
- spec/factories/carrier_type.rb
|
@@ -1560,10 +1569,19 @@ test_files:
|
|
1560
1569
|
- spec/dummy/solr/conf/spellings.txt
|
1561
1570
|
- spec/dummy/solr/conf/stopwords.txt
|
1562
1571
|
- spec/dummy/solr/conf/synonyms.txt
|
1572
|
+
- spec/dummy/solr/data/test/index/_3f.fdt
|
1573
|
+
- spec/dummy/solr/data/test/index/_3f.fdx
|
1574
|
+
- spec/dummy/solr/data/test/index/_3f.fnm
|
1575
|
+
- spec/dummy/solr/data/test/index/_3f.frq
|
1576
|
+
- spec/dummy/solr/data/test/index/_3f.nrm
|
1577
|
+
- spec/dummy/solr/data/test/index/_3f.prx
|
1578
|
+
- spec/dummy/solr/data/test/index/_3f.tii
|
1579
|
+
- spec/dummy/solr/data/test/index/_3f.tis
|
1563
1580
|
- spec/dummy/solr/data/test/index/segments.gen
|
1564
|
-
- spec/dummy/solr/data/test/index/
|
1581
|
+
- spec/dummy/solr/data/test/index/segments_57
|
1565
1582
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1566
1583
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1584
|
+
- spec/dummy/tmp/cache/4AD/470/country_all
|
1567
1585
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
1568
1586
|
- spec/dummy/tmp/cache/6E4/420/search_engine_all
|
1569
1587
|
- spec/factories/carrier_type.rb
|
Binary file
|