blacklight-access_controls 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/Gemfile +32 -0
- data/README.textile +74 -0
- data/Rakefile +47 -0
- data/VERSION +1 -0
- data/blacklight-access_controls.gemspec +29 -0
- data/lib/blacklight-access_controls.rb +23 -0
- data/lib/blacklight/access_controls.rb +14 -0
- data/lib/blacklight/access_controls/ability.rb +148 -0
- data/lib/blacklight/access_controls/catalog.rb +27 -0
- data/lib/blacklight/access_controls/config.rb +39 -0
- data/lib/blacklight/access_controls/enforcement.rb +103 -0
- data/lib/blacklight/access_controls/permissions_cache.rb +19 -0
- data/lib/blacklight/access_controls/permissions_query.rb +53 -0
- data/lib/blacklight/access_controls/permissions_solr_document.rb +2 -0
- data/lib/blacklight/access_controls/user.rb +23 -0
- data/lib/generators/blacklight/ability.rb +4 -0
- data/lib/generators/blacklight/access_controls_generator.rb +49 -0
- data/solr_conf/conf/abc123 +0 -0
- data/solr_conf/conf/admin-extra.html +24 -0
- data/solr_conf/conf/admin-extra.menu-bottom.html +25 -0
- data/solr_conf/conf/admin-extra.menu-top.html +25 -0
- data/solr_conf/conf/clustering/carrot2/kmeans-attributes.xml +19 -0
- data/solr_conf/conf/clustering/carrot2/lingo-attributes.xml +24 -0
- data/solr_conf/conf/clustering/carrot2/stc-attributes.xml +19 -0
- data/solr_conf/conf/currency.xml +67 -0
- data/solr_conf/conf/dataimport.properties +3 -0
- data/solr_conf/conf/db-data-config.xml +93 -0
- data/solr_conf/conf/elevate.xml +38 -0
- data/solr_conf/conf/lang/contractions_ca.txt +8 -0
- data/solr_conf/conf/lang/contractions_fr.txt +15 -0
- data/solr_conf/conf/lang/contractions_ga.txt +5 -0
- data/solr_conf/conf/lang/contractions_it.txt +23 -0
- data/solr_conf/conf/lang/hyphenations_ga.txt +5 -0
- data/solr_conf/conf/lang/stemdict_nl.txt +6 -0
- data/solr_conf/conf/lang/stoptags_ja.txt +420 -0
- data/solr_conf/conf/lang/stopwords_ar.txt +125 -0
- data/solr_conf/conf/lang/stopwords_bg.txt +193 -0
- data/solr_conf/conf/lang/stopwords_ca.txt +220 -0
- data/solr_conf/conf/lang/stopwords_ckb.txt +136 -0
- data/solr_conf/conf/lang/stopwords_cz.txt +172 -0
- data/solr_conf/conf/lang/stopwords_da.txt +110 -0
- data/solr_conf/conf/lang/stopwords_de.txt +294 -0
- data/solr_conf/conf/lang/stopwords_el.txt +78 -0
- data/solr_conf/conf/lang/stopwords_en.txt +54 -0
- data/solr_conf/conf/lang/stopwords_es.txt +356 -0
- data/solr_conf/conf/lang/stopwords_eu.txt +99 -0
- data/solr_conf/conf/lang/stopwords_fa.txt +313 -0
- data/solr_conf/conf/lang/stopwords_fi.txt +97 -0
- data/solr_conf/conf/lang/stopwords_fr.txt +186 -0
- data/solr_conf/conf/lang/stopwords_ga.txt +110 -0
- data/solr_conf/conf/lang/stopwords_gl.txt +161 -0
- data/solr_conf/conf/lang/stopwords_hi.txt +235 -0
- data/solr_conf/conf/lang/stopwords_hu.txt +211 -0
- data/solr_conf/conf/lang/stopwords_hy.txt +46 -0
- data/solr_conf/conf/lang/stopwords_id.txt +359 -0
- data/solr_conf/conf/lang/stopwords_it.txt +303 -0
- data/solr_conf/conf/lang/stopwords_ja.txt +127 -0
- data/solr_conf/conf/lang/stopwords_lv.txt +172 -0
- data/solr_conf/conf/lang/stopwords_nl.txt +119 -0
- data/solr_conf/conf/lang/stopwords_no.txt +194 -0
- data/solr_conf/conf/lang/stopwords_pt.txt +253 -0
- data/solr_conf/conf/lang/stopwords_ro.txt +233 -0
- data/solr_conf/conf/lang/stopwords_ru.txt +243 -0
- data/solr_conf/conf/lang/stopwords_sv.txt +133 -0
- data/solr_conf/conf/lang/stopwords_th.txt +119 -0
- data/solr_conf/conf/lang/stopwords_tr.txt +212 -0
- data/solr_conf/conf/lang/userdict_ja.txt +29 -0
- data/solr_conf/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr_conf/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr_conf/conf/protwords.txt +21 -0
- data/solr_conf/conf/schema.blacklight.xml +724 -0
- data/solr_conf/conf/schema.xml +1268 -0
- data/solr_conf/conf/schema.xml.orig +1524 -0
- data/solr_conf/conf/solrconfig.adams.xml +1903 -0
- data/solr_conf/conf/solrconfig.blacklight.xml +411 -0
- data/solr_conf/conf/solrconfig.old.xml +1634 -0
- data/solr_conf/conf/solrconfig.xml +332 -0
- data/solr_conf/conf/solrconfig.xml.orig +3531 -0
- data/solr_conf/conf/spellings.txt +2 -0
- data/solr_conf/conf/stopwords.txt +14 -0
- data/solr_conf/conf/synonyms.txt +29 -0
- data/solr_conf/conf/update-script.js +53 -0
- data/solr_conf/conf/xslt/example.xsl +132 -0
- data/solr_conf/conf/xslt/example_atom.xsl +67 -0
- data/solr_conf/conf/xslt/example_rss.xsl +66 -0
- data/solr_conf/conf/xslt/luke.xsl +337 -0
- data/solr_conf/conf/xslt/updateXml.xsl +70 -0
- data/spec/factories/user.rb +6 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/solr_support.rb +11 -0
- data/spec/test_app_templates/blacklight.yml +18 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +25 -0
- data/spec/unit/ability_spec.rb +202 -0
- data/spec/unit/catalog_spec.rb +41 -0
- data/spec/unit/config_spec.rb +69 -0
- data/spec/unit/enforcement_spec.rb +147 -0
- metadata +265 -0
@@ -0,0 +1,125 @@
|
|
1
|
+
# This file was created by Jacques Savoy and is distributed under the BSD license.
|
2
|
+
# See http://members.unine.ch/jacques.savoy/clef/index.html.
|
3
|
+
# Also see http://www.opensource.org/licenses/bsd-license.html
|
4
|
+
# Cleaned on October 11, 2009 (not normalized, so use before normalization)
|
5
|
+
# This means that when modifying this list, you might need to add some
|
6
|
+
# redundant entries, for example containing forms with both أ and ا
|
7
|
+
من
|
8
|
+
ومن
|
9
|
+
منها
|
10
|
+
منه
|
11
|
+
في
|
12
|
+
وفي
|
13
|
+
فيها
|
14
|
+
فيه
|
15
|
+
و
|
16
|
+
ف
|
17
|
+
ثم
|
18
|
+
او
|
19
|
+
أو
|
20
|
+
ب
|
21
|
+
بها
|
22
|
+
به
|
23
|
+
ا
|
24
|
+
أ
|
25
|
+
اى
|
26
|
+
اي
|
27
|
+
أي
|
28
|
+
أى
|
29
|
+
لا
|
30
|
+
ولا
|
31
|
+
الا
|
32
|
+
ألا
|
33
|
+
إلا
|
34
|
+
لكن
|
35
|
+
ما
|
36
|
+
وما
|
37
|
+
كما
|
38
|
+
فما
|
39
|
+
عن
|
40
|
+
مع
|
41
|
+
اذا
|
42
|
+
إذا
|
43
|
+
ان
|
44
|
+
أن
|
45
|
+
إن
|
46
|
+
انها
|
47
|
+
أنها
|
48
|
+
إنها
|
49
|
+
انه
|
50
|
+
أنه
|
51
|
+
إنه
|
52
|
+
بان
|
53
|
+
بأن
|
54
|
+
فان
|
55
|
+
فأن
|
56
|
+
وان
|
57
|
+
وأن
|
58
|
+
وإن
|
59
|
+
التى
|
60
|
+
التي
|
61
|
+
الذى
|
62
|
+
الذي
|
63
|
+
الذين
|
64
|
+
الى
|
65
|
+
الي
|
66
|
+
إلى
|
67
|
+
إلي
|
68
|
+
على
|
69
|
+
عليها
|
70
|
+
عليه
|
71
|
+
اما
|
72
|
+
أما
|
73
|
+
إما
|
74
|
+
ايضا
|
75
|
+
أيضا
|
76
|
+
كل
|
77
|
+
وكل
|
78
|
+
لم
|
79
|
+
ولم
|
80
|
+
لن
|
81
|
+
ولن
|
82
|
+
هى
|
83
|
+
هي
|
84
|
+
هو
|
85
|
+
وهى
|
86
|
+
وهي
|
87
|
+
وهو
|
88
|
+
فهى
|
89
|
+
فهي
|
90
|
+
فهو
|
91
|
+
انت
|
92
|
+
أنت
|
93
|
+
لك
|
94
|
+
لها
|
95
|
+
له
|
96
|
+
هذه
|
97
|
+
هذا
|
98
|
+
تلك
|
99
|
+
ذلك
|
100
|
+
هناك
|
101
|
+
كانت
|
102
|
+
كان
|
103
|
+
يكون
|
104
|
+
تكون
|
105
|
+
وكانت
|
106
|
+
وكان
|
107
|
+
غير
|
108
|
+
بعض
|
109
|
+
قد
|
110
|
+
نحو
|
111
|
+
بين
|
112
|
+
بينما
|
113
|
+
منذ
|
114
|
+
ضمن
|
115
|
+
حيث
|
116
|
+
الان
|
117
|
+
الآن
|
118
|
+
خلال
|
119
|
+
بعد
|
120
|
+
قبل
|
121
|
+
حتى
|
122
|
+
عند
|
123
|
+
عندما
|
124
|
+
لدى
|
125
|
+
جميع
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# This file was created by Jacques Savoy and is distributed under the BSD license.
|
2
|
+
# See http://members.unine.ch/jacques.savoy/clef/index.html.
|
3
|
+
# Also see http://www.opensource.org/licenses/bsd-license.html
|
4
|
+
а
|
5
|
+
аз
|
6
|
+
ако
|
7
|
+
ала
|
8
|
+
бе
|
9
|
+
без
|
10
|
+
беше
|
11
|
+
би
|
12
|
+
бил
|
13
|
+
била
|
14
|
+
били
|
15
|
+
било
|
16
|
+
близо
|
17
|
+
бъдат
|
18
|
+
бъде
|
19
|
+
бяха
|
20
|
+
в
|
21
|
+
вас
|
22
|
+
ваш
|
23
|
+
ваша
|
24
|
+
вероятно
|
25
|
+
вече
|
26
|
+
взема
|
27
|
+
ви
|
28
|
+
вие
|
29
|
+
винаги
|
30
|
+
все
|
31
|
+
всеки
|
32
|
+
всички
|
33
|
+
всичко
|
34
|
+
всяка
|
35
|
+
във
|
36
|
+
въпреки
|
37
|
+
върху
|
38
|
+
г
|
39
|
+
ги
|
40
|
+
главно
|
41
|
+
го
|
42
|
+
д
|
43
|
+
да
|
44
|
+
дали
|
45
|
+
до
|
46
|
+
докато
|
47
|
+
докога
|
48
|
+
дори
|
49
|
+
досега
|
50
|
+
доста
|
51
|
+
е
|
52
|
+
едва
|
53
|
+
един
|
54
|
+
ето
|
55
|
+
за
|
56
|
+
зад
|
57
|
+
заедно
|
58
|
+
заради
|
59
|
+
засега
|
60
|
+
затова
|
61
|
+
защо
|
62
|
+
защото
|
63
|
+
и
|
64
|
+
из
|
65
|
+
или
|
66
|
+
им
|
67
|
+
има
|
68
|
+
имат
|
69
|
+
иска
|
70
|
+
й
|
71
|
+
каза
|
72
|
+
как
|
73
|
+
каква
|
74
|
+
какво
|
75
|
+
както
|
76
|
+
какъв
|
77
|
+
като
|
78
|
+
кога
|
79
|
+
когато
|
80
|
+
което
|
81
|
+
които
|
82
|
+
кой
|
83
|
+
който
|
84
|
+
колко
|
85
|
+
която
|
86
|
+
къде
|
87
|
+
където
|
88
|
+
към
|
89
|
+
ли
|
90
|
+
м
|
91
|
+
ме
|
92
|
+
между
|
93
|
+
мен
|
94
|
+
ми
|
95
|
+
мнозина
|
96
|
+
мога
|
97
|
+
могат
|
98
|
+
може
|
99
|
+
моля
|
100
|
+
момента
|
101
|
+
му
|
102
|
+
н
|
103
|
+
на
|
104
|
+
над
|
105
|
+
назад
|
106
|
+
най
|
107
|
+
направи
|
108
|
+
напред
|
109
|
+
например
|
110
|
+
нас
|
111
|
+
не
|
112
|
+
него
|
113
|
+
нея
|
114
|
+
ни
|
115
|
+
ние
|
116
|
+
никой
|
117
|
+
нито
|
118
|
+
но
|
119
|
+
някои
|
120
|
+
някой
|
121
|
+
няма
|
122
|
+
обаче
|
123
|
+
около
|
124
|
+
освен
|
125
|
+
особено
|
126
|
+
от
|
127
|
+
отгоре
|
128
|
+
отново
|
129
|
+
още
|
130
|
+
пак
|
131
|
+
по
|
132
|
+
повече
|
133
|
+
повечето
|
134
|
+
под
|
135
|
+
поне
|
136
|
+
поради
|
137
|
+
после
|
138
|
+
почти
|
139
|
+
прави
|
140
|
+
пред
|
141
|
+
преди
|
142
|
+
през
|
143
|
+
при
|
144
|
+
пък
|
145
|
+
първо
|
146
|
+
с
|
147
|
+
са
|
148
|
+
само
|
149
|
+
се
|
150
|
+
сега
|
151
|
+
си
|
152
|
+
скоро
|
153
|
+
след
|
154
|
+
сме
|
155
|
+
според
|
156
|
+
сред
|
157
|
+
срещу
|
158
|
+
сте
|
159
|
+
съм
|
160
|
+
със
|
161
|
+
също
|
162
|
+
т
|
163
|
+
тази
|
164
|
+
така
|
165
|
+
такива
|
166
|
+
такъв
|
167
|
+
там
|
168
|
+
твой
|
169
|
+
те
|
170
|
+
тези
|
171
|
+
ти
|
172
|
+
тн
|
173
|
+
то
|
174
|
+
това
|
175
|
+
тогава
|
176
|
+
този
|
177
|
+
той
|
178
|
+
толкова
|
179
|
+
точно
|
180
|
+
трябва
|
181
|
+
тук
|
182
|
+
тъй
|
183
|
+
тя
|
184
|
+
тях
|
185
|
+
у
|
186
|
+
харесва
|
187
|
+
ч
|
188
|
+
че
|
189
|
+
често
|
190
|
+
чрез
|
191
|
+
ще
|
192
|
+
щом
|
193
|
+
я
|
@@ -0,0 +1,220 @@
|
|
1
|
+
# Catalan stopwords from http://github.com/vcl/cue.language (Apache 2 Licensed)
|
2
|
+
a
|
3
|
+
abans
|
4
|
+
ací
|
5
|
+
ah
|
6
|
+
així
|
7
|
+
això
|
8
|
+
al
|
9
|
+
als
|
10
|
+
aleshores
|
11
|
+
algun
|
12
|
+
alguna
|
13
|
+
algunes
|
14
|
+
alguns
|
15
|
+
alhora
|
16
|
+
allà
|
17
|
+
allí
|
18
|
+
allò
|
19
|
+
altra
|
20
|
+
altre
|
21
|
+
altres
|
22
|
+
amb
|
23
|
+
ambdós
|
24
|
+
ambdues
|
25
|
+
apa
|
26
|
+
aquell
|
27
|
+
aquella
|
28
|
+
aquelles
|
29
|
+
aquells
|
30
|
+
aquest
|
31
|
+
aquesta
|
32
|
+
aquestes
|
33
|
+
aquests
|
34
|
+
aquí
|
35
|
+
baix
|
36
|
+
cada
|
37
|
+
cadascú
|
38
|
+
cadascuna
|
39
|
+
cadascunes
|
40
|
+
cadascuns
|
41
|
+
com
|
42
|
+
contra
|
43
|
+
d'un
|
44
|
+
d'una
|
45
|
+
d'unes
|
46
|
+
d'uns
|
47
|
+
dalt
|
48
|
+
de
|
49
|
+
del
|
50
|
+
dels
|
51
|
+
des
|
52
|
+
després
|
53
|
+
dins
|
54
|
+
dintre
|
55
|
+
donat
|
56
|
+
doncs
|
57
|
+
durant
|
58
|
+
e
|
59
|
+
eh
|
60
|
+
el
|
61
|
+
els
|
62
|
+
em
|
63
|
+
en
|
64
|
+
encara
|
65
|
+
ens
|
66
|
+
entre
|
67
|
+
érem
|
68
|
+
eren
|
69
|
+
éreu
|
70
|
+
es
|
71
|
+
és
|
72
|
+
esta
|
73
|
+
està
|
74
|
+
estàvem
|
75
|
+
estaven
|
76
|
+
estàveu
|
77
|
+
esteu
|
78
|
+
et
|
79
|
+
etc
|
80
|
+
ets
|
81
|
+
fins
|
82
|
+
fora
|
83
|
+
gairebé
|
84
|
+
ha
|
85
|
+
han
|
86
|
+
has
|
87
|
+
havia
|
88
|
+
he
|
89
|
+
hem
|
90
|
+
heu
|
91
|
+
hi
|
92
|
+
ho
|
93
|
+
i
|
94
|
+
igual
|
95
|
+
iguals
|
96
|
+
ja
|
97
|
+
l'hi
|
98
|
+
la
|
99
|
+
les
|
100
|
+
li
|
101
|
+
li'n
|
102
|
+
llavors
|
103
|
+
m'he
|
104
|
+
ma
|
105
|
+
mal
|
106
|
+
malgrat
|
107
|
+
mateix
|
108
|
+
mateixa
|
109
|
+
mateixes
|
110
|
+
mateixos
|
111
|
+
me
|
112
|
+
mentre
|
113
|
+
més
|
114
|
+
meu
|
115
|
+
meus
|
116
|
+
meva
|
117
|
+
meves
|
118
|
+
molt
|
119
|
+
molta
|
120
|
+
moltes
|
121
|
+
molts
|
122
|
+
mon
|
123
|
+
mons
|
124
|
+
n'he
|
125
|
+
n'hi
|
126
|
+
ne
|
127
|
+
ni
|
128
|
+
no
|
129
|
+
nogensmenys
|
130
|
+
només
|
131
|
+
nosaltres
|
132
|
+
nostra
|
133
|
+
nostre
|
134
|
+
nostres
|
135
|
+
o
|
136
|
+
oh
|
137
|
+
oi
|
138
|
+
on
|
139
|
+
pas
|
140
|
+
pel
|
141
|
+
pels
|
142
|
+
per
|
143
|
+
però
|
144
|
+
perquè
|
145
|
+
poc
|
146
|
+
poca
|
147
|
+
pocs
|
148
|
+
poques
|
149
|
+
potser
|
150
|
+
propi
|
151
|
+
qual
|
152
|
+
quals
|
153
|
+
quan
|
154
|
+
quant
|
155
|
+
que
|
156
|
+
què
|
157
|
+
quelcom
|
158
|
+
qui
|
159
|
+
quin
|
160
|
+
quina
|
161
|
+
quines
|
162
|
+
quins
|
163
|
+
s'ha
|
164
|
+
s'han
|
165
|
+
sa
|
166
|
+
semblant
|
167
|
+
semblants
|
168
|
+
ses
|
169
|
+
seu
|
170
|
+
seus
|
171
|
+
seva
|
172
|
+
seva
|
173
|
+
seves
|
174
|
+
si
|
175
|
+
sobre
|
176
|
+
sobretot
|
177
|
+
sóc
|
178
|
+
solament
|
179
|
+
sols
|
180
|
+
son
|
181
|
+
són
|
182
|
+
sons
|
183
|
+
sota
|
184
|
+
sou
|
185
|
+
t'ha
|
186
|
+
t'han
|
187
|
+
t'he
|
188
|
+
ta
|
189
|
+
tal
|
190
|
+
també
|
191
|
+
tampoc
|
192
|
+
tan
|
193
|
+
tant
|
194
|
+
tanta
|
195
|
+
tantes
|
196
|
+
teu
|
197
|
+
teus
|
198
|
+
teva
|
199
|
+
teves
|
200
|
+
ton
|
201
|
+
tons
|
202
|
+
tot
|
203
|
+
tota
|
204
|
+
totes
|
205
|
+
tots
|
206
|
+
un
|
207
|
+
una
|
208
|
+
unes
|
209
|
+
uns
|
210
|
+
us
|
211
|
+
va
|
212
|
+
vaig
|
213
|
+
vam
|
214
|
+
van
|
215
|
+
vas
|
216
|
+
veu
|
217
|
+
vosaltres
|
218
|
+
vostra
|
219
|
+
vostre
|
220
|
+
vostres
|