blacklight_range_limit 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -20,3 +20,8 @@ pkg
20
20
  Gemfile.lock
21
21
 
22
22
  ## PROJECT::SPECIFIC
23
+
24
+ /spec/internal
25
+ /jetty
26
+ /pkg
27
+ /tmp
@@ -0,0 +1,11 @@
1
+ notifications:
2
+ email: false
3
+
4
+ rvm:
5
+ - 1.9.3
6
+ - 2.0.0
7
+
8
+ notifications:
9
+ irc: "irc.freenode.org#blacklight"
10
+ email:
11
+ - blacklight-commits@googlegroups.com
data/Gemfile CHANGED
@@ -2,5 +2,15 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'combustion'
6
- gem 'blacklight', :git => 'git://github.com/projectblacklight/blacklight.git'
5
+ gem 'engine_cart'
6
+
7
+ group :test do
8
+ gem 'devise'
9
+ gem 'devise-guests'
10
+ gem "bootstrap-sass"
11
+ gem 'turbolinks'
12
+ end
13
+
14
+ if File.exists?('spec/test_app_templates/Gemfile.extra')
15
+ eval File.read('spec/test_app_templates/Gemfile.extra'), nil, 'spec/test_app_templates/Gemfile.extra'
16
+ end
@@ -1,5 +1,7 @@
1
1
  BlacklightRangeLimit: integer range limiting and profiling for Blacklight applications
2
2
 
3
+ {<img src="https://travis-ci.org/projectblacklight/blacklight_range_limit.png?branch=master" alt="Build Status" />}[https://travis-ci.org/projectblacklight/blacklight_range_limit] {<img src="https://badge.fury.io/rb/blacklight_range_limit.png" alt="Gem Version" />}[http://badge.fury.io/rb/blacklight_range_limit]
4
+
3
5
  = Description
4
6
 
5
7
  The BlacklightRangeLimit plugin provides a 'facet' or limit for integer fields, that lets the user enter range limits with a text box or a slider, and also provides area charts giving a sense of the distribution of values (with drill down).
data/Rakefile CHANGED
@@ -6,50 +6,42 @@ Bundler::GemHelper.install_tasks
6
6
 
7
7
  require 'rspec/core/rake_task'
8
8
 
9
- require 'blacklight'
10
- import File.join(Blacklight.root, 'lib', 'railties', 'solr_marc.rake')
11
9
 
12
- task :default => :spec
13
-
14
- desc "Run specs"
15
- RSpec::Core::RakeTask.new do |t|
16
-
17
- end
18
-
19
- desc "Execute Continuous Integration build"
20
- task :ci do
21
-
22
- require 'combustion'
23
- Combustion.initialize!
24
- unless ENV['environment'] == 'test'
25
- exec("rake ci environment=test")
26
- end
10
+ TEST_APP_TEMPLATES = 'spec/test_app_templates'
11
+ TEST_APP = 'spec/internal'
12
+ require 'engine_cart/rake_task'
27
13
 
14
+ ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.0.0.zip"
15
+ APP_ROOT = File.dirname(__FILE__)
28
16
 
29
- require 'rails/generators'
30
- require File.join(Blacklight.root, 'lib', 'generators', 'blacklight', 'jetty_generator.rb')
17
+ require 'jettywrapper'
31
18
 
32
- Blacklight::Jetty.start(["--save_location=jetty", "--force", "-e test"])
33
-
34
- ENV['RAILS_ENV'] = 'test'
35
- ENV['CONFIG_PATH'] = File.expand_path(File.join(Blacklight.root, 'lib', 'generators', 'blacklight', 'templates', 'config', 'SolrMarc', 'config-test.properties'))
36
- ENV['SOLRMARC_JAR_PATH'] = File.expand_path(File.join(Blacklight.root, 'lib', 'SolrMarc.jar'))
37
- ENV['SOLR_PATH'] = File.expand_path(File.join('jetty', 'solr'))
38
- ENV['SOLR_WAR_PATH'] = File.expand_path(File.join('jetty', 'webapps', 'solr.war'))
39
- Rake::Task['solr:marc:index_test_data'].invoke
19
+ task :default => :ci
40
20
 
21
+ desc "Run specs"
22
+ RSpec::Core::RakeTask.new do |t|
41
23
 
42
- require 'jettywrapper'
43
- jetty_params = {
44
- :jetty_home => File.expand_path(File.dirname(__FILE__) + '/jetty'),
45
- :quiet => false,
46
- :jetty_port => 8888,
47
- :solr_home => File.expand_path(File.dirname(__FILE__) + '/jetty/solr'),
48
- :startup_wait => 30
49
- }
24
+ end
50
25
 
26
+ task :ci => ['jetty:clean', 'engine_cart:generate'] do
27
+ ENV['environment'] = "test"
28
+ jetty_params = Jettywrapper.load_config
29
+ jetty_params[:startup_wait]= 60
51
30
  error = Jettywrapper.wrap(jetty_params) do
31
+ Rake::Task["test:seed"].invoke
52
32
  Rake::Task['spec'].invoke
53
33
  end
54
34
  raise "test failures: #{error}" if error
55
35
  end
36
+
37
+ namespace :test do
38
+
39
+ desc "Put sample data into solr"
40
+ task :seed => ['engine_cart:generate'] do
41
+ docs = File.join(APP_ROOT, 'solr', 'sample_solr_documents.yml')
42
+ within_test_app do
43
+ system "RAILS_ENV=test rake blacklight_test_app:seed DOC_PATH=#{docs}"
44
+ end
45
+ end
46
+
47
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.1.0
@@ -207,21 +207,18 @@ jQuery(document).ready(function($) {
207
207
  container, or it will render weird. But the whole parent
208
208
  limit content, testing reveals we can. */
209
209
  function wrapPrepareForFlot(container, parent_section, widthToHeight, call_block) {
210
- var parent_originally_hidden = $(parent_section).css("display") == "none";
210
+ var c = $(parent_section).closest(".panel-collapse.collapse");
211
+ var parent_originally_hidden = c != [];
211
212
  if (parent_originally_hidden) {
212
- $(parent_section).show();
213
+ c.collapse('show');
213
214
  }
214
215
  $(container).width( $(parent_section).width() );
215
216
  $(container).height( $(parent_section).width() * widthToHeight );
216
- if (parent_originally_hidden) {
217
- parent_section.addClass("ui-helper-hidden-accessible");
218
- }
219
217
 
220
218
  call_block(container);
221
219
 
222
220
  if (parent_originally_hidden) {
223
- $(parent_section).removeClass("ui-helper-hidden-accessible");
224
- $(parent_section).hide();
221
+ c.collapse('hide');
225
222
  }
226
223
  }
227
224
  });
@@ -19,40 +19,40 @@ $(".range_limit .profile .range.slider_js").each(function() {
19
19
  var begin_el = form.find("input.range_begin");
20
20
  var end_el = form.find("input.range_end");
21
21
 
22
- $(this).slider({
23
- range: true,
24
- min: min,
25
- max: max+1,
26
- values: [min, max+1],
27
- slide: function(event, ui) {
28
- begin_el.val(ui.values[0]);
29
-
30
- end_el.val(Math.max(ui.values[1]-1, ui.values[0]));
31
- }
32
- });
33
-
34
-
35
- begin_el.val(min);
36
- end_el.val(max);
37
-
38
- begin_el.change( function() {
39
- var val = parseInt($(this).val());
40
- if ( isNaN(val) || val < min) {
41
- //for weird data, set slider at min
42
- val = min;
43
- }
44
- range_element.slider("values", 0, val);
45
- });
46
-
47
- end_el.change( function() {
48
- var val = parseInt($(this).val());
49
- if ( isNaN(val) || val > max ) {
50
- //weird entry, set slider to max
51
- val = max;
52
- }
53
- range_element.slider("values", 1, val+1);
54
- });
55
-
22
+ if ($(this).slider) {
23
+ $(this).slider({
24
+ range: true,
25
+ min: min,
26
+ max: max+1,
27
+ values: [min, max+1],
28
+ slide: function(event, ui) {
29
+ begin_el.val(ui.values[0]);
30
+
31
+ end_el.val(Math.max(ui.values[1]-1, ui.values[0]));
32
+ }
33
+ });
34
+ }
35
+
36
+ begin_el.val(min);
37
+ end_el.val(max);
38
+
39
+ begin_el.change( function() {
40
+ var val = parseInt($(this).val());
41
+ if ( isNaN(val) || val < min) {
42
+ //for weird data, set slider at min
43
+ val = min;
44
+ }
45
+ range_element.slider("values", 0, val);
46
+ });
47
+
48
+ end_el.change( function() {
49
+ var val = parseInt($(this).val());
50
+ if ( isNaN(val) || val > max ) {
51
+ //weird entry, set slider to max
52
+ val = max;
53
+ }
54
+ range_element.slider("values", 1, val+1);
55
+ });
56
56
  }
57
57
  });
58
58
 
@@ -18,11 +18,11 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
 
21
- s.add_dependency "rails", "~> 3.0"
21
+ s.add_dependency "rails", ">= 3.0", "< 5.0"
22
22
  s.add_dependency "jquery-rails" # our JS needs jquery_rails
23
23
  s.add_dependency "blacklight", "~> 4.0"
24
24
 
25
- s.add_development_dependency "rspec"
25
+ s.add_development_dependency "rspec", ">= 2.0"
26
26
  s.add_development_dependency "rspec-rails"
27
27
  s.add_development_dependency "capybara"
28
28
  s.add_development_dependency "sqlite3"
@@ -0,0 +1,4 @@
1
+ default:
2
+ startup_wait: 15
3
+ jetty_port: <%= ENV['TEST_JETTY_PORT'] || 8888 %>
4
+ <%= ENV['TEST_JETTY_PATH'] ? "jetty_home: " + ENV['TEST_JETTY_PATH'] : '' %>
@@ -11,8 +11,6 @@
11
11
  # how to start up solr, generally for automated testing.
12
12
 
13
13
  development:
14
- url: http://127.0.0.1:8983/solr
14
+ url: <%= ENV['SOLR_URL'] || "http://127.0.0.1:8983/solr" %>
15
15
  test: &test
16
- url: http://127.0.0.1:8888/solr
17
- cucumber:
18
- <<: *test
16
+ url: <%= "http://127.0.0.1:#{ENV['TEST_JETTY_PORT'] || 8888}/solr" %>
@@ -3,7 +3,7 @@ module BlacklightRangeLimit
3
3
  protected
4
4
  def catalog
5
5
  add_routes do |options|
6
- match 'catalog/range_limit' => 'catalog#range_limit'
6
+ get 'catalog/range_limit' => 'catalog#range_limit'
7
7
  end
8
8
 
9
9
  super
@@ -0,0 +1,641 @@
1
+ ---
2
+ - published_display:
3
+ - Karācī
4
+ author_display: Ayaz, Shaikh, 1923-1997
5
+ lc_callnum_display:
6
+ - PK2788.9.A9 F55 1998
7
+ pub_date:
8
+ - '1998'
9
+ format: Book
10
+ material_type_display:
11
+ - 375 p.
12
+ title_display: Fikr-i Ayāz
13
+ id: 00282214
14
+ language_facet:
15
+ - Urdu
16
+ - published_display:
17
+ - Karācī
18
+ author_display: Ayaz, Shaikh, 1923-1997
19
+ lc_callnum_display:
20
+ - MLCME 2002/02660 (D)
21
+ pub_date:
22
+ - '1986'
23
+ format: Book
24
+ material_type_display:
25
+ - 232 p.
26
+ title_display: Sāhivāl jail kī ḍāʼirī
27
+ id: 00282371
28
+ language_facet:
29
+ - Urdu
30
+ - subtitle_display: 'guft va gū-yi Akbar Ganjī bā ʻAbd Allāh Nūrī : bih payvast-i
31
+ matn-i istīz̤āḥ-i ʻAbd Allāh Nūrī dar Majlis-i panjum'
32
+ author_vern_display: ‏نورى، عبد الله
33
+ title_display: Naqdī barā-yi tamām-i fuṣūl
34
+ subject_era_facet:
35
+ - 1997-
36
+ id: 00313831
37
+ isbn_t:
38
+ - '9645625963'
39
+ subject_geo_facet:
40
+ - Iran
41
+ subject_topic_facet:
42
+ - Nūrī, ʻAbd Allāh, 1949-
43
+ - Iran. Vizārat-i Kishvar
44
+ published_display:
45
+ - Tihrān
46
+ author_display: Nūrī, ʻAbd Allāh, 1949-
47
+ title_vern_display: ‏نقدى براى تمام فصول :‏
48
+ lc_callnum_display:
49
+ - DS318.84.N87 N87 2000
50
+ pub_date:
51
+ - '2000'
52
+ published_vern_display:
53
+ - ‏تهران :‏
54
+ format: Book
55
+ subtitle_vern_display: '‏گفت و گوى اکبر گنجى با عبد الله نورى : به پيوست متن استيضاح
56
+ عبد الله نورى در مجلس پنجم'
57
+ material_type_display:
58
+ - 245 p.
59
+ language_facet:
60
+ - Persian
61
+ - published_display:
62
+ - Tōkyō
63
+ title_vern_display: 久保栄 「火山灰地」 を読む
64
+ author_display: Yoshida, Hajime, 1934-
65
+ pub_date:
66
+ - '1997'
67
+ published_vern_display:
68
+ - 東京
69
+ format: Book
70
+ author_vern_display: 吉田一, 1934-
71
+ material_type_display:
72
+ - 480 p.
73
+ title_display: Kubo Sakae "Kazanbaichi" o yomu
74
+ subject_era_facet:
75
+ - 20th century
76
+ id: '00314247'
77
+ subject_geo_facet:
78
+ - Japan
79
+ subject_topic_facet:
80
+ - Kubo, Sakae, 1901-1958
81
+ - Japanese drama
82
+ - Political plays, Japanese
83
+ - Theater
84
+ language_facet:
85
+ - Japanese
86
+ - published_display:
87
+ - Moskva
88
+ author_display: Vi︠a︡tkin, M. P. (Mikhail Porfirʹevich), 1895-1967
89
+ lc_callnum_display:
90
+ - DK861.K3 V5
91
+ pub_date:
92
+ - '1941'
93
+ format: Book
94
+ material_type_display:
95
+ - v.
96
+ title_display: Ocherki po istorii Kazakhskoĭ SSR
97
+ id: '43037890'
98
+ subject_geo_facet:
99
+ - Kazakhstan
100
+ language_facet:
101
+ - Russian
102
+ - published_display:
103
+ - Moskva
104
+ author_display: Korea (North)
105
+ lc_callnum_display:
106
+ - KPC13 1952
107
+ pub_date:
108
+ - '1952'
109
+ format: Book
110
+ material_type_display:
111
+ - 396 p.
112
+ title_display: Konstitut︠s︡ii︠a︡ i osnovnye zakonodatelʹnye akty Koreĭskoĭ Narodno-Demokraticheskoĭ
113
+ Respubliki
114
+ id: '53029833'
115
+ language_facet:
116
+ - Russian
117
+ - published_display:
118
+ - Sŏul
119
+ title_vern_display: 高麗 人物 列傅
120
+ lc_callnum_display:
121
+ - DS912.38 .K982 1976
122
+ pub_date:
123
+ - '1976'
124
+ published_vern_display:
125
+ - 서울
126
+ format: Book
127
+ material_type_display:
128
+ - 255 p.
129
+ title_display: Koryŏ inmul yŏlchŏn
130
+ subject_era_facet:
131
+ - Koryŏ period, 935-1392
132
+ id: '77826928'
133
+ subject_geo_facet:
134
+ - Korea
135
+ language_facet:
136
+ - Korean
137
+ - published_display:
138
+ - Puṇyapattanam
139
+ - Haidrābāda
140
+ author_display: Parikshit Sharma, Ogeti, 1930-
141
+ lc_callnum_display:
142
+ - PK3799.P29 Y3
143
+ pub_date:
144
+ - '1976'
145
+ format: Book
146
+ material_type_display:
147
+ - 24, 128, 2 p.
148
+ title_display: Yaśodharā-mahākāvyam
149
+ id: '78908283'
150
+ subject_topic_facet:
151
+ - Gautama Buddha
152
+ - Yaśodharā (Wife of Gautama Buddha)
153
+ language_facet:
154
+ - Sanskrit
155
+ - published_display:
156
+ - Lāhaur
157
+ author_display: Iṣlāḥī, Amīn Aḥsan, 1904-1997
158
+ lc_callnum_display:
159
+ - HQ1745.5 .I83 1978
160
+ pub_date:
161
+ - '1978'
162
+ format: Book
163
+ material_type_display:
164
+ - 8, 174 p.
165
+ title_display: Pākistānī ʻaurat dorāhe par
166
+ id: '79930185'
167
+ subject_geo_facet:
168
+ - Pakistan
169
+ subject_topic_facet:
170
+ - Women
171
+ language_facet:
172
+ - Urdu
173
+ - published_display:
174
+ - Trivandrum
175
+ author_display: Nārāyaṇapaṇḍita, 17th cent
176
+ lc_callnum_display:
177
+ - Microfiche 90/61328 (P)
178
+ pub_date:
179
+ - '1946'
180
+ format: Book
181
+ material_type_display:
182
+ - xii, 24 p.
183
+ title_display: Āśleṣāśataka of Nārāyaṇa Paṇḍita
184
+ id: '85910001'
185
+ language_facet:
186
+ - Sanskrit
187
+ - subtitle_display: sipurim mafliʼim ha-mevusasim ʻal ʻuvdot hisṭoriyot
188
+ author_vern_display: ‏פינקל, חיים יעקב
189
+ title_display: Shodede-yam Yehudiyim
190
+ id: '86207417'
191
+ isbn_t:
192
+ - '9650101373'
193
+ subject_topic_facet:
194
+ - Jewish pirates
195
+ - Jewish criminals
196
+ published_display:
197
+ - Yerushalayim
198
+ author_display: Finkel, Chaim Jacob
199
+ title_vern_display: ‏שודדי־ים יהודיים :‏
200
+ lc_callnum_display:
201
+ - G535 .F54 1984
202
+ pub_date:
203
+ - '1984'
204
+ published_vern_display:
205
+ - ‏ירושלים :‏
206
+ format: Book
207
+ subtitle_vern_display: ‏ספורים מפליאים המבוססים על עובדות היסטוריות /‏
208
+ material_type_display:
209
+ - 283 p.
210
+ language_facet:
211
+ - Hebrew
212
+ - published_display:
213
+ - Iṣfahān
214
+ title_vern_display: ‏اشنائى با حوزه‌هاى علميۀ شيعه در طول تاريخ /‏
215
+ author_display: Muvaḥḥid Abṭaḥī, Ḥujjat
216
+ lc_callnum_display:
217
+ - BP44 .M88 1986
218
+ pub_date:
219
+ - '1986'
220
+ published_vern_display:
221
+ - ‏اصفهان :‏
222
+ format: Book
223
+ author_vern_display: ‏موحد ابطحى، خجة
224
+ material_type_display:
225
+ - v. <1>
226
+ title_display: Āshnāʼī bā ḥawzahʹhā-yi ʻilmīyah-ʼi Shīʻah dar ṭūl-i tārīkh
227
+ id: '87931798'
228
+ subject_geo_facet:
229
+ - Islamic countries
230
+ subject_topic_facet:
231
+ - Religious institutions
232
+ - Shiites
233
+ - Islamic universities and colleges
234
+ language_facet:
235
+ - Persian
236
+ - published_display:
237
+ - Tʻbilisi
238
+ author_display: Lomtʻatʻiże, Čola, 1879-1915
239
+ lc_callnum_display:
240
+ - MLCSN 96/3906 (H)
241
+ pub_date:
242
+ - '1975'
243
+ subtitle_display: tʻeoriul-metʻoduri narkvevi
244
+ format: Book
245
+ material_type_display:
246
+ - 65 p.
247
+ title_display: Mrecvelobis mušakis cʻxovrebis cesi
248
+ id: '90142413'
249
+ subject_topic_facet:
250
+ - Industrial workers; life style
251
+ language_facet:
252
+ - Georgian
253
+ - published_display:
254
+ - Sŏul Tʻŭkpyŏlsi
255
+ title_vern_display: 北韓 法令集 /
256
+ author_display: Korea (North)
257
+ lc_callnum_display:
258
+ - KPC13 .K67 1990
259
+ pub_date:
260
+ - '1990'
261
+ published_vern_display:
262
+ - 서울 持別市 :
263
+ format: Book
264
+ material_type_display:
265
+ - 5 v.
266
+ title_display: Pukhan pŏmnyŏngjip
267
+ id: '92117465'
268
+ subject_geo_facet:
269
+ - Korea (North)
270
+ subject_topic_facet:
271
+ - Law
272
+ language_facet:
273
+ - Korean
274
+ - subtitle_display: ṿe-hu perush yafeh u-menupeh ʻal Shulḥan ʻarukh Oraḥ ḥayim
275
+ asher ḥiber Yosef Ḳaro ... ʻim ḥidushe dinim she-hishmiṭ ha-gaʼon ... ṿe-himtsiʼam
276
+ ... Mosheh Iserlish
277
+ author_vern_display: ‏ישראל מאיר,‏ ‏הכהן
278
+ title_display: Sefer Mishnah berurah
279
+ id: '92828023'
280
+ subject_topic_facet:
281
+ - Karo, Joseph ben Ephraim, 1488-1575
282
+ - Jewish law
283
+ - Judaism
284
+ published_display:
285
+ - Jerusalem?
286
+ author_display: Israel Meir, ha-Kohen, 1838-1933
287
+ title_vern_display: ‏ספר משנה ברורה :‏
288
+ lc_callnum_display:
289
+ - BM520.88.A53 I88 1992b
290
+ pub_date:
291
+ - '1992'
292
+ published_vern_display:
293
+ - ‏[Jerusalem? :‏
294
+ format: Book
295
+ subtitle_vern_display: ‏והוא פירוש יפה ומנפה על שלחן ערוך ארח חיים אשר חבר יוסף
296
+ קארו ... עם חידושי דינים שהשמיט הגאון ... והמציאם משה איסרליש /‏
297
+ material_type_display:
298
+ - v. <1-5>
299
+ language_facet:
300
+ - Hebrew
301
+ - subtitle_display: 'kangnam yŏin kwa sin pʻalbulchʻul : Kim Hong-sin setʻae rŭpʻo'
302
+ author_vern_display: 김 홍신, 1947-
303
+ title_display: Ajikto kŭrŏk chŏrŏk sasimnikka
304
+ id: '94120425'
305
+ subject_geo_facet:
306
+ - Seoul (Korea)
307
+ - Korea (South)
308
+ subject_topic_facet:
309
+ - Women
310
+ published_display:
311
+ - Sŏul
312
+ author_display: Kim, Hong-sin, 1947-
313
+ title_vern_display: 아직도 그럭 저럭 사십니까
314
+ lc_callnum_display:
315
+ - HQ1765.5 .K46 1990
316
+ pub_date:
317
+ - '1990'
318
+ published_vern_display:
319
+ - 서울
320
+ format: Book
321
+ subtitle_vern_display: '강남 여인 과 신 팔불출 : 金 洪信 세태 르포'
322
+ material_type_display:
323
+ - 289 p.
324
+ language_facet:
325
+ - Korean
326
+ - subtitle_display: dar khiradvarzī-i siyāsī va huvīyat-i mā Īrānīyān
327
+ author_vern_display: ‏رجايى، فرهنگ .
328
+ title_display: Maʻrakah-ʼi jahānʹbīnīʹhā
329
+ id: '96933325'
330
+ subject_geo_facet:
331
+ - Iran
332
+ subject_topic_facet:
333
+ - Political science
334
+ - Iranians
335
+ published_display:
336
+ - Tihrān
337
+ author_display: Rajāyī, Farhang, 1952 or 3-
338
+ title_vern_display: ‏معركۀ جهان‌بينىها :‏
339
+ lc_callnum_display:
340
+ - DS274 .R327 1994
341
+ pub_date:
342
+ - '1994'
343
+ published_vern_display:
344
+ - ‏تهران :‏
345
+ format: Book
346
+ subtitle_vern_display: ‏در خردورزى سياسى و هويت ما ايرانيان /‏
347
+ material_type_display:
348
+ - 323 p.
349
+ language_facet:
350
+ - Persian
351
+ - published_display:
352
+ - Bangalore
353
+ author_display: Nārāyaṇa Paṇḍitācārya, 13th cent
354
+ lc_callnum_display:
355
+ - PK3798.N313 S87 2000
356
+ pub_date:
357
+ - '2000'
358
+ format: Book
359
+ material_type_display:
360
+ - v. <1 >
361
+ title_display: Sumadhvavijayaḥ
362
+ id: '2001417245'
363
+ subject_topic_facet:
364
+ - Madhva, 13th cent
365
+ language_facet:
366
+ - Sanskrit
367
+ - published_display:
368
+ - Nuwākshūṭ
369
+ title_vern_display: الحرب في الألفية الثالثة
370
+ author_display: Wuld Mawlāy al-Zayn, Sayyid Muḥammad wuld Sayyid
371
+ lc_callnum_display:
372
+ - U21.2 .W85 2003
373
+ pub_date:
374
+ - '2003'
375
+ published_vern_display:
376
+ - نواكشوط
377
+ format: Book
378
+ author_vern_display: ولد مولاي الزين، سيد محمد ولد سيد
379
+ material_type_display:
380
+ - 128 p.
381
+ title_display: al-Ḥarb fī al-alfīyah al-thālithah
382
+ subject_era_facet:
383
+ - 21st century
384
+ id: '2003546302'
385
+ subject_topic_facet:
386
+ - War
387
+ - Military art and science
388
+ - Warfare, Conventional
389
+ - Military weapons
390
+ language_facet:
391
+ - Arabic
392
+ - published_display:
393
+ - Lha-sa
394
+ author_display: Bstan-ʼdzin-mkhas-grub, 1967-
395
+ lc_callnum_display:
396
+ - DS797.82.B663 B75 2004
397
+ pub_date:
398
+ - '2004'
399
+ format: Book
400
+ material_type_display:
401
+ - 149 p.
402
+ title_display: Bon-brgyaʼi lo rgyus lugs gñis gsal baʼi me loṅ źes bya ba bźugs
403
+ so
404
+ id: '2004310986'
405
+ subject_geo_facet:
406
+ - Bon-brgya (China)
407
+ language_facet:
408
+ - Tibetan
409
+ - subtitle_display: min jald al-dhāt ilá ṣidq al-sharḥ
410
+ author_vern_display: أبو الخير، علي عبد الحميد
411
+ title_display: Thuqūb fī ʻaql al-ummah
412
+ subject_era_facet:
413
+ - 20th century
414
+ - 21st century
415
+ id: '2005461726'
416
+ subject_topic_facet:
417
+ - Islam
418
+ published_display:
419
+ - al-Maʻādī, al-Qāhirah
420
+ author_display: Abū al-Khayr, ʻAlī ʻAbd al-Ḥamīd
421
+ title_vern_display: ثقوب في عقل الأمة
422
+ lc_callnum_display:
423
+ - BP161.3 .A27 2006
424
+ pub_date:
425
+ - '2006'
426
+ published_vern_display:
427
+ - المعادي، القاهرة
428
+ format: Book
429
+ subtitle_vern_display: من جلد الذات إلى صدق الشرح
430
+ material_type_display:
431
+ - 85 p.
432
+ language_facet:
433
+ - Arabic
434
+ - published_display:
435
+ - Israel
436
+ title_vern_display: ביטוח וביטחון סוציאלי
437
+ lc_callnum_display:
438
+ - HG8695.2 .B57 1962
439
+ pub_date:
440
+ - '1962'
441
+ format: Book
442
+ material_type_display:
443
+ - items 1-<13> of <13>
444
+ title_display: Bituaḥ u-viṭaḥon sotsyali
445
+ id: '2005553155'
446
+ subject_geo_facet:
447
+ - Israel
448
+ subject_topic_facet:
449
+ - Insurance
450
+ - Social security
451
+ - Family allowances
452
+ - Maternity insurance
453
+ - Accident insurance
454
+ - Old age
455
+ language_facet:
456
+ - Hebrew
457
+ - published_display:
458
+ - New York
459
+ author_display: Hearth, Amy Hill, 1958-
460
+ lc_callnum_display:
461
+ - E99.D2 H437 2008
462
+ pub_date:
463
+ - '2008'
464
+ subtitle_display: 'a Native American elder has her say : an oral history'
465
+ format: Book
466
+ url_suppl_display:
467
+ - http://www.loc.gov/catdir/toc/ecip0719/2007020969.html
468
+ - http://www.loc.gov/catdir/enhancements/fy0808/2007020969-d.html
469
+ - http://www.loc.gov/catdir/enhancements/fy0808/2007020969-s.html
470
+ material_type_display:
471
+ - xvii, 267 p.
472
+ title_display: '"Strong Medicine speaks"'
473
+ isbn_t:
474
+ - '9780743297790'
475
+ - 0743297792
476
+ id: '2007020969'
477
+ subject_geo_facet:
478
+ - New Jersey
479
+ - Bridgeton
480
+ subject_topic_facet:
481
+ - Strong Medicine, 1922-
482
+ - Delaware women
483
+ - Indian women shamans
484
+ - Delaware Indians
485
+ language_facet:
486
+ - English
487
+ - published_display:
488
+ - ʼPhags-yul Dhe-ra-dhun
489
+ author_display: Dkon-mchog-rgya-mtsho, Ra-se, 1968-
490
+ lc_callnum_display:
491
+ - BQ7684.4 .D564 2008
492
+ pub_date:
493
+ - '2008'
494
+ subtitle_display: dam paʼi chos dgoṅs pa gcig paʼi dri ba legs bśad bsu baʼi pho
495
+ ñaʼi dris lan Dgoṅs-gcig smra baʼi mdzes rgyan źes bya ba bźugs so
496
+ format: Book
497
+ material_type_display:
498
+ - 208 p.
499
+ title_display: Dris lan don gcig ma
500
+ id: '2008305903'
501
+ subject_topic_facet:
502
+ - ʼBri-guṅ-pa (Sect)
503
+ language_facet:
504
+ - Tibetan
505
+ - subtitle_display: a supplication to the noble Lama Mahaguru Padmasambhava
506
+ title_display: Pluvial nectar of blessings
507
+ id: '2008308175'
508
+ isbn_t:
509
+ - '8186470336'
510
+ subject_geo_facet:
511
+ - India
512
+ subject_topic_facet:
513
+ - Padma Sambhava, ca. 717-ca. 762
514
+ - Priests, Buddhist
515
+ published_display:
516
+ - Dharamsala
517
+ author_display: Ṅag-dbaṅ-blo-bzaṅ-rgya-mtsho, Dalai Lama V, 1617-1682
518
+ lc_callnum_display:
519
+ - BQ5593.P3 N3313 2002
520
+ pub_date:
521
+ - '2002'
522
+ format: Book
523
+ material_type_display:
524
+ - viii, 101 p.
525
+ language_facet:
526
+ - English
527
+ - Tibetan
528
+ - published_display:
529
+ - Dharamsala, H.P.
530
+ author_display: Bstan-ʼdzin-rgya-mtsho, Dalai Lama XIV, 1935-
531
+ lc_callnum_display:
532
+ - BQ4036 .B78 2008
533
+ pub_date:
534
+ - '2008'
535
+ subtitle_display: goṅ sa skyabs mgon chen po mchog nas deṅ dus Bod rigs na gźon
536
+ rnams la naṅ chos ṅo sprod bstsal ba bźugs so
537
+ format: Book
538
+ material_type_display:
539
+ - 4, iv, 254 p.
540
+ title_display: Bod kyi naṅ chos ṅo sprod sñiṅ bsdus
541
+ id: '2008308201'
542
+ subject_topic_facet:
543
+ - Buddhism
544
+ language_facet:
545
+ - Tibetan
546
+ - published_display:
547
+ - Dharamsala, H.P.
548
+ author_display: Thub-bstan-yar-ʼphel, Rnam-grwa
549
+ lc_callnum_display:
550
+ - DS785 .T475 2005
551
+ pub_date:
552
+ - '2005'
553
+ format: Book
554
+ material_type_display:
555
+ - a-e, iv, ii, 407 p.
556
+ title_display: Bod gaṅs can gyi rgyal rabs mdor bsdus dris lan brgya pa rab gsal
557
+ śel gyi me loṅ źes bya ba bźugs so
558
+ id: '2008308202'
559
+ subject_geo_facet:
560
+ - Tibet (China)
561
+ language_facet:
562
+ - Tibetan
563
+ - published_display:
564
+ - Dharamsala, Distt. Kangra, H.P.
565
+ pub_date:
566
+ - '2007'
567
+ format: Book
568
+ title_display: Śes yon
569
+ material_type_display:
570
+ - xii, 419 p.
571
+ id: '2008308478'
572
+ subject_geo_facet:
573
+ - China
574
+ - Tibet
575
+ - India
576
+ subject_topic_facet:
577
+ - Education and state
578
+ - Tibetans
579
+ - Tibetan language
580
+ - Teaching
581
+ language_facet:
582
+ - Tibetan
583
+ - author_vern_display: 吉田一, 1934-
584
+ title_display: Kubo Sakae 'Kazanbaichi' o yomu
585
+ subject_era_facet:
586
+ - 20th century
587
+ id: '2008543486'
588
+ isbn_t:
589
+ - '9784588460050'
590
+ - '4588460056'
591
+ subject_geo_facet:
592
+ - Japan
593
+ subject_topic_facet:
594
+ - Kubo, Sakae, 1901-1958
595
+ - Japanese drama
596
+ - Political plays, Japanese
597
+ - Theater
598
+ published_display:
599
+ - Tōkyō
600
+ author_display: Yoshida, Hajime, 1934-
601
+ title_vern_display: 久保栄「火山灰地」を読む
602
+ lc_callnum_display:
603
+ - PL832.U25 Z96 1997
604
+ pub_date:
605
+ - '1997'
606
+ published_vern_display:
607
+ - 東京
608
+ format: Book
609
+ material_type_display:
610
+ - 480 p.
611
+ language_facet:
612
+ - Japanese
613
+ - author_vern_display: 林行止
614
+ title_display: Ci an zhou bian
615
+ subject_era_facet:
616
+ - 1990-
617
+ - 2005-2015
618
+ - 1997-
619
+ id: '2009373513'
620
+ isbn_t:
621
+ - '9789573908678'
622
+ - '9573908670'
623
+ subject_geo_facet:
624
+ - Economic history
625
+ - World politics
626
+ - Hong Kong (China)
627
+ published_display:
628
+ - Taibei Xian Banqiao Shi
629
+ author_display: Lin, Xingzhi
630
+ title_vern_display: 次按驟變
631
+ lc_callnum_display:
632
+ - HC59.15 .L533 2008
633
+ pub_date:
634
+ - '2008'
635
+ published_vern_display:
636
+ - 臺北縣板橋市
637
+ format: Book
638
+ material_type_display:
639
+ - 5, 300 p.
640
+ language_facet:
641
+ - Chinese
@@ -11,13 +11,13 @@ describe "Blacklight Range Limit" do
11
11
  end
12
12
 
13
13
  it "should show the range limit facet" do
14
- visit '/catalog?q='
14
+ visit '/catalog'
15
15
  page.should have_selector 'input.range_begin'
16
16
  page.should have_selector 'input.range_end'
17
17
  end
18
18
 
19
19
  it "should provide distribution information" do
20
- visit '/catalog?q='
20
+ visit '/catalog'
21
21
  click_link 'View distribution'
22
22
 
23
23
  page.should have_content("1941 to 1944 (1)")
@@ -25,7 +25,7 @@ describe "Blacklight Range Limit" do
25
25
  end
26
26
 
27
27
  it "should limit appropriately" do
28
- visit '/catalog?q='
28
+ visit '/catalog'
29
29
  click_link 'View distribution'
30
30
  click_link '1941 to 1944'
31
31
 
@@ -1,15 +1,15 @@
1
1
  require 'rubygems'
2
- require 'bundler'
2
+ require 'bundler/setup'
3
3
 
4
- Bundler.require :default, :development
4
+ ENV["RAILS_ENV"] ||= 'test'
5
5
 
6
- require 'blacklight/engine'
7
6
  require 'rsolr'
8
- require 'capybara/rspec'
9
- Combustion.initialize!
7
+
8
+ require 'engine_cart'
9
+ EngineCart.load_application!
10
10
 
11
11
  require 'rspec/rails'
12
- require 'capybara/rails'
12
+ require 'capybara/rspec'
13
13
 
14
14
 
15
15
  RSpec.configure do |config|
@@ -0,0 +1,26 @@
1
+ platforms :jruby do
2
+ gem 'jdbc-sqlite3'
3
+ gem 'mediashelf-loggable', '>= 0.4.8'
4
+ gem 'therubyrhino'
5
+ end
6
+
7
+ platforms :ruby do
8
+ gem 'sqlite3'
9
+ end
10
+
11
+ gem 'jquery-rails'
12
+
13
+ group :test do
14
+ gem 'rspec-rails', '~> 2.13'
15
+ gem 'generator_spec'
16
+ if defined? :JRUBY_VERSION
17
+ gem 'capybara', '~> 1.0'
18
+ else
19
+ gem 'capybara'
20
+ end
21
+ gem 'simplecov', :platform => :mri_19
22
+ gem 'simplecov-rcov', :platform => :mri_19
23
+ end
24
+
25
+ gem 'jettywrapper', '>= 1.2.0'
26
+ gem 'blacklight'
@@ -0,0 +1,21 @@
1
+ require 'rails/generators'
2
+
3
+ class TestAppGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../../../test_app_templates", __FILE__)
5
+
6
+ def copy_blacklight_test_app_rake_task
7
+ copy_file "lib/tasks/blacklight_test_app.rake"
8
+ end
9
+
10
+ def run_blacklight_generator
11
+ say_status("warning", "GENERATING BL", :yellow)
12
+
13
+ generate 'blacklight', '--devise'
14
+ end
15
+
16
+ def run_blacklight_range_limit_generator
17
+ say_status("warning", "GENERATING BL", :yellow)
18
+
19
+ generate 'blacklight_range_limit'
20
+ end
21
+ end
@@ -0,0 +1,20 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ desc "run the blacklight gem spec"
4
+ gem_home = File.expand_path('../../../../..', __FILE__)
5
+
6
+ namespace :blacklight_test_app do
7
+
8
+ RSpec::Core::RakeTask.new(:spec) do |t|
9
+ t.pattern = gem_home + '/spec/**/*_spec.rb'
10
+ t.rspec_opts = "--colour"
11
+ t.ruby_opts = "-I#{gem_home}/spec"
12
+ end
13
+
14
+ task :seed do
15
+ docs = YAML::load(File.open(ENV['DOC_PATH']))
16
+ puts "Seeding solr with documents from #{ENV['DOC_PATH']}"
17
+ Blacklight.solr.add docs
18
+ Blacklight.solr.commit
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_range_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.0'
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '5.0'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
- - - ~>
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: '3.0'
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '5.0'
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: jquery-rails
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +72,7 @@ dependencies:
66
72
  requirements:
67
73
  - - ! '>='
68
74
  - !ruby/object:Gem::Version
69
- version: '0'
75
+ version: '2.0'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +80,7 @@ dependencies:
74
80
  requirements:
75
81
  - - ! '>='
76
82
  - !ruby/object:Gem::Version
77
- version: '0'
83
+ version: '2.0'
78
84
  - !ruby/object:Gem::Dependency
79
85
  name: rspec-rails
80
86
  requirement: !ruby/object:Gem::Requirement
@@ -163,6 +169,7 @@ extensions: []
163
169
  extra_rdoc_files: []
164
170
  files:
165
171
  - .gitignore
172
+ - .travis.yml
166
173
  - Gemfile
167
174
  - MIT-LICENSE
168
175
  - README.rdoc
@@ -178,7 +185,9 @@ files:
178
185
  - app/views/blacklight_range_limit/_range_segments.html.erb
179
186
  - app/views/blacklight_range_limit/range_segments.html.erb
180
187
  - blacklight_range_limit.gemspec
188
+ - config/jetty.yml
181
189
  - config/routes.rb
190
+ - config/solr.yml
182
191
  - lib/blacklight_range_limit.rb
183
192
  - lib/blacklight_range_limit/controller_override.rb
184
193
  - lib/blacklight_range_limit/engine.rb
@@ -188,18 +197,12 @@ files:
188
197
  - lib/blacklight_range_limit/view_helper_override.rb
189
198
  - lib/generators/blacklight_range_limit/assets_generator.rb
190
199
  - lib/generators/blacklight_range_limit/blacklight_range_limit_generator.rb
191
- - spec/acceptance/blacklight_range_limit_spec.rb
192
- - spec/integration/blacklight_stub_spec.rb
193
- - spec/internal/app/controllers/application_controller.rb
194
- - spec/internal/app/models/solr_document.rb
195
- - spec/internal/config/database.yml
196
- - spec/internal/config/routes.rb
197
- - spec/internal/config/solr.yml
198
- - spec/internal/db/combustion_test.sqlite
199
- - spec/internal/db/schema.rb
200
- - spec/internal/log/.gitignore
201
- - spec/internal/public/favicon.ico
200
+ - solr/sample_solr_documents.yml
201
+ - spec/features/blacklight_range_limit_spec.rb
202
202
  - spec/spec_helper.rb
203
+ - spec/test_app_templates/Gemfile.extra
204
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
205
+ - spec/test_app_templates/lib/tasks/blacklight_test_app.rake
203
206
  - vendor/assets/javascripts/flot/excanvas.min.js
204
207
  - vendor/assets/javascripts/flot/jquery.flot.js
205
208
  - vendor/assets/javascripts/flot/jquery.flot.selection.js
@@ -224,20 +227,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
227
  version: '0'
225
228
  requirements: []
226
229
  rubyforge_project: blacklight
227
- rubygems_version: 1.8.24
230
+ rubygems_version: 1.8.23
228
231
  signing_key:
229
232
  specification_version: 3
230
233
  summary: Blacklight Range Limit plugin
231
234
  test_files:
232
- - spec/acceptance/blacklight_range_limit_spec.rb
233
- - spec/integration/blacklight_stub_spec.rb
234
- - spec/internal/app/controllers/application_controller.rb
235
- - spec/internal/app/models/solr_document.rb
236
- - spec/internal/config/database.yml
237
- - spec/internal/config/routes.rb
238
- - spec/internal/config/solr.yml
239
- - spec/internal/db/combustion_test.sqlite
240
- - spec/internal/db/schema.rb
241
- - spec/internal/log/.gitignore
242
- - spec/internal/public/favicon.ico
235
+ - spec/features/blacklight_range_limit_spec.rb
243
236
  - spec/spec_helper.rb
237
+ - spec/test_app_templates/Gemfile.extra
238
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
239
+ - spec/test_app_templates/lib/tasks/blacklight_test_app.rake
240
+ has_rdoc:
@@ -1,10 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Blacklight Test Application' do
4
- it "should have a Blacklight module" do
5
- Blacklight.should be_a_kind_of(Module)
6
- end
7
- it "should have a Catalog controller" do
8
- CatalogController.blacklight_config.should be_a_kind_of(Blacklight::Configuration)
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- include Blacklight::Controller
3
-
4
- layout 'blacklight'
5
- end
@@ -1,3 +0,0 @@
1
- class SolrDocument
2
- include Blacklight::Solr::Document
3
- end
@@ -1,3 +0,0 @@
1
- test:
2
- adapter: sqlite3
3
- database: db/combustion_test.sqlite
@@ -1,6 +0,0 @@
1
- Rails.application.routes.draw do
2
- Blacklight.add_routes(self)
3
-
4
- root :to => "catalog#index"
5
- #
6
- end
@@ -1,53 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20111123152341) do
15
-
16
- create_table "bookmarks", :force => true do |t|
17
- t.integer "user_id", :null => false
18
- t.string "document_id"
19
- t.string "title"
20
- t.datetime "created_at"
21
- t.datetime "updated_at"
22
- t.string "user_type"
23
- end
24
-
25
- create_table "searches", :force => true do |t|
26
- t.text "query_params"
27
- t.integer "user_id"
28
- t.datetime "created_at"
29
- t.datetime "updated_at"
30
- t.string "user_type"
31
- end
32
-
33
- add_index "searches", ["user_id"], :name => "index_searches_on_user_id"
34
-
35
- create_table "users", :force => true do |t|
36
- t.string "email", :default => "", :null => false
37
- t.string "encrypted_password", :limit => 128, :default => "", :null => false
38
- t.string "reset_password_token"
39
- t.datetime "reset_password_sent_at"
40
- t.datetime "remember_created_at"
41
- t.integer "sign_in_count", :default => 0
42
- t.datetime "current_sign_in_at"
43
- t.datetime "last_sign_in_at"
44
- t.string "current_sign_in_ip"
45
- t.string "last_sign_in_ip"
46
- t.datetime "created_at"
47
- t.datetime "updated_at"
48
- end
49
-
50
- add_index "users", ["email"], :name => "index_users_on_email", :unique => true
51
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
52
-
53
- end
@@ -1 +0,0 @@
1
- *.log
File without changes