blacklight_range_limit 1.0.0pre1 → 1.0.0pre2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -15,7 +15,7 @@ A Rails app using the Blacklight plugin (post version 2.5. Either git checkout f
15
15
 
16
16
  A Solr integer field. Depending on your data, it may or may not be advantageous to use a tint (trie with non-zero precision) type field.
17
17
 
18
- ==Note on solr field types==
18
+ ==Note on solr field types
19
19
 
20
20
  If all your integers are the same number of digits, you can use just about any solr type, including string/type, and all will be well. But if your integers vary in digits, strings won't sort correctly, making your numbers behave oddly in partitions and limits. This is also true if you use a pre-1.4 "integer"/pint/solr.IntField field -- these are not "sortable".
21
21
 
@@ -25,19 +25,26 @@ The pre Solr 1.4 now deprecated sint or slong types should work fine too.
25
25
 
26
26
  = Installation
27
27
 
28
- This is a plugin, not a gem. Sadly, I was not able to make this a gem, Rails2 engines plugins don't work as gems, particularly the assets. A couple different ways to get the source into your vendor/plugins directory.
28
+ == Blacklight 3.x/Rails 3.x
29
29
 
30
- Go into your application directory, and run:
30
+ Add
31
+ gem "blacklight_range_limit"
32
+ to your Gemfile. Run "bundle install".
31
33
 
32
- ./script/plugin install git://github.com/projectblacklight/blacklight_range_limit.git
34
+ Then run "rails generate blacklight_range_limit". This will install some assets in your app's public/ folder. (This process likely to change in Rails 3.1).
33
35
 
34
- Later you can run ./script/plugin update blacklight_range_limit if you like.
36
+ == Blacklight 2.x/Rails 2.x
35
37
 
36
- Requires git installed on your system. There are other ways to get the plugin in there too.
38
+ Must be installed as a plugin, most easily using 'git', rather than as a gem. Version 0.9.6 is the last version that works with Blacklight 2.x.
39
+
40
+ cd ./vendor/plugins/
41
+ git clone git://github.com/projectblacklight/blacklight_range_limit.git
42
+ cd blacklight_range_limit
43
+ git checkout v0.9.6
44
+
45
+
46
+ If you don't have git installed, you can try downloading the 0.9.6 package from https://github.com/projectblacklight/blacklight_range_limit/archives/master , and installing in vendor/plugins.
37
47
 
38
- OR
39
- cd $your_app/vendor/plugins
40
- git clone git://github.com/projectblacklight/blacklight_range_limit.git
41
48
 
42
49
  = Configuration
43
50
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0pre1
1
+ 1.0.0pre2
@@ -7,9 +7,9 @@
7
7
  <div class="limit_content range_limit">
8
8
  <% if params["range"] &&
9
9
  params["range"][solr_field] &&
10
- ( params["range"][solr_field]["begin"] ||
11
- params["range"][solr_field]["end"] ||
12
- params["range"][solr_field]["missing"]) %>
10
+ ( (! params["range"][solr_field]["begin"].blank?) ||
11
+ (! params["range"][solr_field]["end"].blank?) ||
12
+ params["range"][solr_field]["missing"]) %>
13
13
  <div class="current">
14
14
  <span class="selected"><%= range_display(solr_field) %></span> <span class="count">(<%= format_num(@response.total) %>)</span> <%= link_to "[remove]", remove_range_param(solr_field), :class=>"remove" %>
15
15
  </div>
@@ -20,7 +20,7 @@
20
20
  # add a constraint for ranges?
21
21
  unless my_params[:range].blank?
22
22
  my_params[:range].each_pair do |solr_field, hash|
23
- next unless hash["missing"] || (!hash["begin"].empty?) || (!hash["end"].empty?)
23
+ next unless hash["missing"] || (!hash["begin"].blank?) || (!hash["end"].blank?)
24
24
  content << render_constraint_element(
25
25
  facet_field_labels[solr_field],
26
26
  range_display(solr_field, my_params),
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_range_limit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923831947
4
+ hash: 1923831949
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - pre
11
- - 1
12
- version: 1.0.0pre1
11
+ - 2
12
+ version: 1.0.0pre2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jonathan Rochkind