blacklight_range_limit 1.0.0pre3 → 1.0.0pre4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0pre3
1
+ 1.0.0pre4
@@ -61,7 +61,7 @@ module RangeLimitHelper
61
61
  end
62
62
 
63
63
  def add_range_missing(solr_field, my_params = params)
64
- my_params = my_params.dup
64
+ my_params = Marshal.load(Marshal.dump(my_params))
65
65
  my_params["range"] ||= {}
66
66
  my_params["range"][solr_field] ||= {}
67
67
  my_params["range"][solr_field]["missing"] = "true"
@@ -75,7 +75,7 @@ module RangeLimitHelper
75
75
  end
76
76
 
77
77
  def add_range(solr_field, from, to, my_params = params)
78
- my_params = my_params.dup
78
+ my_params = Marshal.load(Marshal.dump(my_params))
79
79
  my_params["range"] ||= {}
80
80
  my_params["range"][solr_field] ||= {}
81
81
 
@@ -0,0 +1 @@
1
+ <%= render :partial => "blacklight_range_limit/range_segments", :locals => {:solr_field => solr_field} %>
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require "lib/blacklight_range_limit/version"
2
+ require File.join(File.dirname(__FILE__), "lib/blacklight_range_limit/version")
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "blacklight_range_limit"
@@ -66,12 +66,8 @@ module BlacklightRangeLimit
66
66
  # no big deal it should be well-cached at this point.
67
67
 
68
68
  @response = Blacklight.solr.find( solr_params )
69
-
70
- if request.xhr?
71
- render(:partial => 'blacklight_range_limit/range_segments', :locals => {:solr_field => solr_field})
72
- else
73
- render(:partial => 'blacklight_range_limit/range_segments', :layout => true, :locals => {:solr_field => solr_field})
74
- end
69
+
70
+ render('blacklight_range_limit/range_segments', :locals => {:solr_field => solr_field})
75
71
  end
76
72
 
77
73
  # Method added to solr_search_params_logic to fetch
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: 1923831951
4
+ hash: 1923831937
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - pre
11
- - 3
12
- version: 1.0.0pre3
11
+ - 4
12
+ version: 1.0.0pre4
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-06-27 00:00:00 -04:00
20
+ date: 2011-07-19 00:00:00 -04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -67,6 +67,7 @@ files:
67
67
  - app/helpers/range_limit_helper.rb
68
68
  - app/views/blacklight_range_limit/_range_limit_panel.html.erb
69
69
  - app/views/blacklight_range_limit/_range_segments.html.erb
70
+ - app/views/blacklight_range_limit/range_segments.html.erb
70
71
  - blacklight_range_limit.gemspec
71
72
  - config/routes.rb
72
73
  - lib/blacklight_range_limit.rb