warclight 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.eslintrc +12 -0
  3. data/.gitignore +19 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +66 -0
  6. data/.solr_wrapper +5 -0
  7. data/.travis.yml +31 -0
  8. data/CONTRIBUTING.md +53 -0
  9. data/Gemfile +42 -0
  10. data/LICENSE.txt +11 -0
  11. data/README.md +79 -0
  12. data/Rakefile +16 -0
  13. data/app/assets/images/blacklight/compact.svg +25 -0
  14. data/app/assets/images/blacklight/logo.png +0 -0
  15. data/app/assets/javascripts/warclight/oembed_viewer.js +39 -0
  16. data/app/assets/javascripts/warclight/warclight.js +4 -0
  17. data/app/assets/stylesheets/warclight/application.scss +1 -0
  18. data/app/assets/stylesheets/warclight/warclight.scss +1 -0
  19. data/app/controllers/concerns/warclight/field_config_helpers.rb +11 -0
  20. data/app/helpers/warclight/application_helper.rb +8 -0
  21. data/app/jobs/warclight/application_job.rb +6 -0
  22. data/app/models/concerns/warclight/catalog.rb +8 -0
  23. data/app/models/concerns/warclight/search_behavior.rb +9 -0
  24. data/app/models/concerns/warclight/solr_document.rb +9 -0
  25. data/app/views/layouts/warclight/application.html.erb +14 -0
  26. data/bin/rails +14 -0
  27. data/config/routes.rb +4 -0
  28. data/lib/generators/warclight/install_generator.rb +55 -0
  29. data/lib/generators/warclight/templates/catalog_controller.rb +129 -0
  30. data/lib/generators/warclight/templates/warclight.js +2 -0
  31. data/lib/generators/warclight/templates/warclight.scss +3 -0
  32. data/lib/generators/warclight/update_generator.rb +22 -0
  33. data/lib/warclight.rb +7 -0
  34. data/lib/warclight/engine.rb +105 -0
  35. data/lib/warclight/version.rb +5 -0
  36. data/package.json +24 -0
  37. data/solr/conf/elevate.xml +42 -0
  38. data/solr/conf/lang/contractions_ca.txt +8 -0
  39. data/solr/conf/lang/contractions_fr.txt +15 -0
  40. data/solr/conf/lang/contractions_ga.txt +5 -0
  41. data/solr/conf/lang/contractions_it.txt +23 -0
  42. data/solr/conf/lang/hyphenations_ga.txt +5 -0
  43. data/solr/conf/lang/stemdict_nl.txt +6 -0
  44. data/solr/conf/lang/stoptags_ja.txt +420 -0
  45. data/solr/conf/lang/stopwords_ar.txt +125 -0
  46. data/solr/conf/lang/stopwords_bg.txt +193 -0
  47. data/solr/conf/lang/stopwords_ca.txt +220 -0
  48. data/solr/conf/lang/stopwords_cz.txt +172 -0
  49. data/solr/conf/lang/stopwords_da.txt +110 -0
  50. data/solr/conf/lang/stopwords_de.txt +294 -0
  51. data/solr/conf/lang/stopwords_el.txt +78 -0
  52. data/solr/conf/lang/stopwords_en.txt +54 -0
  53. data/solr/conf/lang/stopwords_es.txt +356 -0
  54. data/solr/conf/lang/stopwords_eu.txt +99 -0
  55. data/solr/conf/lang/stopwords_fa.txt +313 -0
  56. data/solr/conf/lang/stopwords_fi.txt +97 -0
  57. data/solr/conf/lang/stopwords_fr.txt +186 -0
  58. data/solr/conf/lang/stopwords_ga.txt +110 -0
  59. data/solr/conf/lang/stopwords_gl.txt +161 -0
  60. data/solr/conf/lang/stopwords_hi.txt +235 -0
  61. data/solr/conf/lang/stopwords_hu.txt +211 -0
  62. data/solr/conf/lang/stopwords_hy.txt +46 -0
  63. data/solr/conf/lang/stopwords_id.txt +359 -0
  64. data/solr/conf/lang/stopwords_it.txt +303 -0
  65. data/solr/conf/lang/stopwords_ja.txt +127 -0
  66. data/solr/conf/lang/stopwords_lv.txt +172 -0
  67. data/solr/conf/lang/stopwords_nl.txt +119 -0
  68. data/solr/conf/lang/stopwords_no.txt +194 -0
  69. data/solr/conf/lang/stopwords_pt.txt +253 -0
  70. data/solr/conf/lang/stopwords_ro.txt +233 -0
  71. data/solr/conf/lang/stopwords_ru.txt +243 -0
  72. data/solr/conf/lang/stopwords_sv.txt +133 -0
  73. data/solr/conf/lang/stopwords_th.txt +119 -0
  74. data/solr/conf/lang/stopwords_tr.txt +212 -0
  75. data/solr/conf/lang/userdict_ja.txt +29 -0
  76. data/solr/conf/managed-schema +1045 -0
  77. data/solr/conf/params.json +20 -0
  78. data/solr/conf/protwords.txt +21 -0
  79. data/solr/conf/schema.xml +350 -0
  80. data/solr/conf/solrconfig.xml +1361 -0
  81. data/solr/conf/stopwords.txt +14 -0
  82. data/solr/conf/synonyms.txt +29 -0
  83. data/tasks/warclight.rake +61 -0
  84. data/template.rb +15 -0
  85. data/vendor/assets/javascripts/responsiveTruncator.js +69 -0
  86. data/vendor/assets/javascripts/stickyfill.js +480 -0
  87. data/warclight.gemspec +38 -0
  88. metadata +312 -0
@@ -0,0 +1,172 @@
1
+ a
2
+ s
3
+ k
4
+ o
5
+ i
6
+ u
7
+ v
8
+ z
9
+ dnes
10
+ cz
11
+ tímto
12
+ budeš
13
+ budem
14
+ byli
15
+ jseš
16
+ můj
17
+ svým
18
+ ta
19
+ tomto
20
+ tohle
21
+ tuto
22
+ tyto
23
+ jej
24
+ zda
25
+ proč
26
+ máte
27
+ tato
28
+ kam
29
+ tohoto
30
+ kdo
31
+ kteří
32
+ mi
33
+ nám
34
+ tom
35
+ tomuto
36
+ mít
37
+ nic
38
+ proto
39
+ kterou
40
+ byla
41
+ toho
42
+ protože
43
+ asi
44
+ ho
45
+ naši
46
+ napište
47
+ re
48
+ což
49
+ tím
50
+ takže
51
+ svých
52
+ její
53
+ svými
54
+ jste
55
+ aj
56
+ tu
57
+ tedy
58
+ teto
59
+ bylo
60
+ kde
61
+ ke
62
+ pravé
63
+ ji
64
+ nad
65
+ nejsou
66
+ či
67
+ pod
68
+ téma
69
+ mezi
70
+ přes
71
+ ty
72
+ pak
73
+ vám
74
+ ani
75
+ když
76
+ však
77
+ neg
78
+ jsem
79
+ tento
80
+ článku
81
+ články
82
+ aby
83
+ jsme
84
+ před
85
+ pta
86
+ jejich
87
+ byl
88
+ ještě
89
+
90
+ bez
91
+ také
92
+ pouze
93
+ první
94
+ vaše
95
+ která
96
+ nás
97
+ nový
98
+ tipy
99
+ pokud
100
+ může
101
+ strana
102
+ jeho
103
+ své
104
+ jiné
105
+ zprávy
106
+ nové
107
+ není
108
+ vás
109
+ jen
110
+ podle
111
+ zde
112
+
113
+ být
114
+ více
115
+ bude
116
+ již
117
+ než
118
+ který
119
+ by
120
+ které
121
+ co
122
+ nebo
123
+ ten
124
+ tak
125
+
126
+ při
127
+ od
128
+ po
129
+ jsou
130
+ jak
131
+ další
132
+ ale
133
+ si
134
+ se
135
+ ve
136
+ to
137
+ jako
138
+ za
139
+ zpět
140
+ ze
141
+ do
142
+ pro
143
+ je
144
+ na
145
+ atd
146
+ atp
147
+ jakmile
148
+ přičemž
149
+
150
+ on
151
+ ona
152
+ ono
153
+ oni
154
+ ony
155
+ my
156
+ vy
157
+
158
+ ji
159
+
160
+ mne
161
+ jemu
162
+ tomu
163
+ těm
164
+ těmu
165
+ němu
166
+ němuž
167
+ jehož
168
+ jíž
169
+ jelikož
170
+ jež
171
+ jakož
172
+ načež
@@ -0,0 +1,110 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/danish/stop.txt
2
+ | This file is distributed under the BSD License.
3
+ | See http://snowball.tartarus.org/license.php
4
+ | Also see http://www.opensource.org/licenses/bsd-license.html
5
+ | - Encoding was converted to UTF-8.
6
+ | - This notice was added.
7
+ |
8
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
+
10
+ | A Danish stop word list. Comments begin with vertical bar. Each stop
11
+ | word is at the start of a line.
12
+
13
+ | This is a ranked list (commonest to rarest) of stopwords derived from
14
+ | a large text sample.
15
+
16
+
17
+ og | and
18
+ i | in
19
+ jeg | I
20
+ det | that (dem. pronoun)/it (pers. pronoun)
21
+ at | that (in front of a sentence)/to (with infinitive)
22
+ en | a/an
23
+ den | it (pers. pronoun)/that (dem. pronoun)
24
+ til | to/at/for/until/against/by/of/into, more
25
+ er | present tense of "to be"
26
+ som | who, as
27
+ på | on/upon/in/on/at/to/after/of/with/for, on
28
+ de | they
29
+ med | with/by/in, along
30
+ han | he
31
+ af | of/by/from/off/for/in/with/on, off
32
+ for | at/for/to/from/by/of/ago, in front/before, because
33
+ ikke | not
34
+ der | who/which, there/those
35
+ var | past tense of "to be"
36
+ mig | me/myself
37
+ sig | oneself/himself/herself/itself/themselves
38
+ men | but
39
+ et | a/an/one, one (number), someone/somebody/one
40
+ har | present tense of "to have"
41
+ om | round/about/for/in/a, about/around/down, if
42
+ vi | we
43
+ min | my
44
+ havde | past tense of "to have"
45
+ ham | him
46
+ hun | she
47
+ nu | now
48
+ over | over/above/across/by/beyond/past/on/about, over/past
49
+ da | then, when/as/since
50
+ fra | from/off/since, off, since
51
+ du | you
52
+ ud | out
53
+ sin | his/her/its/one's
54
+ dem | them
55
+ os | us/ourselves
56
+ op | up
57
+ man | you/one
58
+ hans | his
59
+ hvor | where
60
+ eller | or
61
+ hvad | what
62
+ skal | must/shall etc.
63
+ selv | myself/youself/herself/ourselves etc., even
64
+ her | here
65
+ alle | all/everyone/everybody etc.
66
+ vil | will (verb)
67
+ blev | past tense of "to stay/to remain/to get/to become"
68
+ kunne | could
69
+ ind | in
70
+ når | when
71
+ være | present tense of "to be"
72
+ dog | however/yet/after all
73
+ noget | something
74
+ ville | would
75
+ jo | you know/you see (adv), yes
76
+ deres | their/theirs
77
+ efter | after/behind/according to/for/by/from, later/afterwards
78
+ ned | down
79
+ skulle | should
80
+ denne | this
81
+ end | than
82
+ dette | this
83
+ mit | my/mine
84
+ også | also
85
+ under | under/beneath/below/during, below/underneath
86
+ have | have
87
+ dig | you
88
+ anden | other
89
+ hende | her
90
+ mine | my
91
+ alt | everything
92
+ meget | much/very, plenty of
93
+ sit | his, her, its, one's
94
+ sine | his, her, its, one's
95
+ vor | our
96
+ mod | against
97
+ disse | these
98
+ hvis | if
99
+ din | your/yours
100
+ nogle | some
101
+ hos | by/at
102
+ blive | be/become
103
+ mange | many
104
+ ad | by/through
105
+ bliver | present tense of "to be/to become"
106
+ hendes | her/hers
107
+ været | be
108
+ thi | for (conj)
109
+ jer | you
110
+ sådan | such, like this/like that
@@ -0,0 +1,294 @@
1
+ | From svn.tartarus.org/snowball/trunk/website/algorithms/german/stop.txt
2
+ | This file is distributed under the BSD License.
3
+ | See http://snowball.tartarus.org/license.php
4
+ | Also see http://www.opensource.org/licenses/bsd-license.html
5
+ | - Encoding was converted to UTF-8.
6
+ | - This notice was added.
7
+ |
8
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
9
+
10
+ | A German stop word list. Comments begin with vertical bar. Each stop
11
+ | word is at the start of a line.
12
+
13
+ | The number of forms in this list is reduced significantly by passing it
14
+ | through the German stemmer.
15
+
16
+
17
+ aber | but
18
+
19
+ alle | all
20
+ allem
21
+ allen
22
+ aller
23
+ alles
24
+
25
+ als | than, as
26
+ also | so
27
+ am | an + dem
28
+ an | at
29
+
30
+ ander | other
31
+ andere
32
+ anderem
33
+ anderen
34
+ anderer
35
+ anderes
36
+ anderm
37
+ andern
38
+ anderr
39
+ anders
40
+
41
+ auch | also
42
+ auf | on
43
+ aus | out of
44
+ bei | by
45
+ bin | am
46
+ bis | until
47
+ bist | art
48
+ da | there
49
+ damit | with it
50
+ dann | then
51
+
52
+ der | the
53
+ den
54
+ des
55
+ dem
56
+ die
57
+ das
58
+
59
+ daß | that
60
+
61
+ derselbe | the same
62
+ derselben
63
+ denselben
64
+ desselben
65
+ demselben
66
+ dieselbe
67
+ dieselben
68
+ dasselbe
69
+
70
+ dazu | to that
71
+
72
+ dein | thy
73
+ deine
74
+ deinem
75
+ deinen
76
+ deiner
77
+ deines
78
+
79
+ denn | because
80
+
81
+ derer | of those
82
+ dessen | of him
83
+
84
+ dich | thee
85
+ dir | to thee
86
+ du | thou
87
+
88
+ dies | this
89
+ diese
90
+ diesem
91
+ diesen
92
+ dieser
93
+ dieses
94
+
95
+
96
+ doch | (several meanings)
97
+ dort | (over) there
98
+
99
+
100
+ durch | through
101
+
102
+ ein | a
103
+ eine
104
+ einem
105
+ einen
106
+ einer
107
+ eines
108
+
109
+ einig | some
110
+ einige
111
+ einigem
112
+ einigen
113
+ einiger
114
+ einiges
115
+
116
+ einmal | once
117
+
118
+ er | he
119
+ ihn | him
120
+ ihm | to him
121
+
122
+ es | it
123
+ etwas | something
124
+
125
+ euer | your
126
+ eure
127
+ eurem
128
+ euren
129
+ eurer
130
+ eures
131
+
132
+ für | for
133
+ gegen | towards
134
+ gewesen | p.p. of sein
135
+ hab | have
136
+ habe | have
137
+ haben | have
138
+ hat | has
139
+ hatte | had
140
+ hatten | had
141
+ hier | here
142
+ hin | there
143
+ hinter | behind
144
+
145
+ ich | I
146
+ mich | me
147
+ mir | to me
148
+
149
+
150
+ ihr | you, to her
151
+ ihre
152
+ ihrem
153
+ ihren
154
+ ihrer
155
+ ihres
156
+ euch | to you
157
+
158
+ im | in + dem
159
+ in | in
160
+ indem | while
161
+ ins | in + das
162
+ ist | is
163
+
164
+ jede | each, every
165
+ jedem
166
+ jeden
167
+ jeder
168
+ jedes
169
+
170
+ jene | that
171
+ jenem
172
+ jenen
173
+ jener
174
+ jenes
175
+
176
+ jetzt | now
177
+ kann | can
178
+
179
+ kein | no
180
+ keine
181
+ keinem
182
+ keinen
183
+ keiner
184
+ keines
185
+
186
+ können | can
187
+ könnte | could
188
+ machen | do
189
+ man | one
190
+
191
+ manche | some, many a
192
+ manchem
193
+ manchen
194
+ mancher
195
+ manches
196
+
197
+ mein | my
198
+ meine
199
+ meinem
200
+ meinen
201
+ meiner
202
+ meines
203
+
204
+ mit | with
205
+ muss | must
206
+ musste | had to
207
+ nach | to(wards)
208
+ nicht | not
209
+ nichts | nothing
210
+ noch | still, yet
211
+ nun | now
212
+ nur | only
213
+ ob | whether
214
+ oder | or
215
+ ohne | without
216
+ sehr | very
217
+
218
+ sein | his
219
+ seine
220
+ seinem
221
+ seinen
222
+ seiner
223
+ seines
224
+
225
+ selbst | self
226
+ sich | herself
227
+
228
+ sie | they, she
229
+ ihnen | to them
230
+
231
+ sind | are
232
+ so | so
233
+
234
+ solche | such
235
+ solchem
236
+ solchen
237
+ solcher
238
+ solches
239
+
240
+ soll | shall
241
+ sollte | should
242
+ sondern | but
243
+ sonst | else
244
+ über | over
245
+ um | about, around
246
+ und | and
247
+
248
+ uns | us
249
+ unse
250
+ unsem
251
+ unsen
252
+ unser
253
+ unses
254
+
255
+ unter | under
256
+ viel | much
257
+ vom | von + dem
258
+ von | from
259
+ vor | before
260
+ während | while
261
+ war | was
262
+ waren | were
263
+ warst | wast
264
+ was | what
265
+ weg | away, off
266
+ weil | because
267
+ weiter | further
268
+
269
+ welche | which
270
+ welchem
271
+ welchen
272
+ welcher
273
+ welches
274
+
275
+ wenn | when
276
+ werde | will
277
+ werden | will
278
+ wie | how
279
+ wieder | again
280
+ will | want
281
+ wir | we
282
+ wird | will
283
+ wirst | willst
284
+ wo | where
285
+ wollen | want
286
+ wollte | wanted
287
+ würde | would
288
+ würden | would
289
+ zu | to
290
+ zum | zu + dem
291
+ zur | zu + der
292
+ zwar | indeed
293
+ zwischen | between
294
+