blacklight 4.6.0 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +0 -5
- data/app/helpers/blacklight/catalog_helper_behavior.rb +18 -10
- data/app/views/catalog/_paginate_compact.html.erb +5 -3
- data/app/views/catalog/index.html.erb +1 -1
- data/app/views/kaminari/blacklight_compact/_paginator.html.erb +1 -1
- data/lib/blacklight/legacy_controller_methods.rb +7 -1
- data/lib/blacklight/solr_response.rb +4 -0
- data/spec/helpers/catalog_helper_spec.rb +14 -1
- data/spec/lib/blacklight_solr_response_spec.rb +7 -2
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +49 -0
- data/spec/views/catalog/index.html.erb_spec.rb +1 -1
- metadata +42 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7778b16dcb6a423cfc3ae78a5c8c94ee31622039
|
4
|
+
data.tar.gz: 05a40b65ff9610a0f76b259c0d765897dfb44d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d6a0c5e522c97076ce95ccdc52b9ec11d841e23bc7143e2678c2d9cee5bd5836d405f4a71c9ebc6317e07a2446200a5fbf5a29fa427e923130920bceb6dda05
|
7
|
+
data.tar.gz: e119661aa4a379fa17d92f5c57c0dce7d9f2014a9cafbd1a03ca1b1c9960a6fc515c0fcb571bd5d571c504fcaffc90209ddc6a35c66053cfdb32e26ba1300cd8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.6.
|
1
|
+
4.6.1
|
@@ -450,11 +450,6 @@ module Blacklight::BlacklightHelperBehavior
|
|
450
450
|
link_to(raw(render_search_to_s(params)), catalog_index_path(params)).html_safe
|
451
451
|
end
|
452
452
|
|
453
|
-
#
|
454
|
-
# shortcut for built-in Rails helper, "number_with_delimiter"
|
455
|
-
#
|
456
|
-
def format_num(num); number_with_delimiter(num) end
|
457
|
-
|
458
453
|
#
|
459
454
|
# link based helpers ->
|
460
455
|
#
|
@@ -8,6 +8,8 @@ module Blacklight::CatalogHelperBehavior
|
|
8
8
|
# it translates to a Kaminari-paginatable
|
9
9
|
# object, with the keys Kaminari views expect.
|
10
10
|
def paginate_params(response)
|
11
|
+
Deprecation.warn self, "#paginate_params is deprecated; the original response object is Kaminari-compatible"
|
12
|
+
|
11
13
|
response
|
12
14
|
end
|
13
15
|
|
@@ -23,17 +25,21 @@ module Blacklight::CatalogHelperBehavior
|
|
23
25
|
#
|
24
26
|
# shortcut for built-in Rails helper, "number_with_delimiter"
|
25
27
|
#
|
26
|
-
def format_num(num)
|
28
|
+
def format_num(num)
|
29
|
+
Deprecation.warn self, "#format_num is deprecated; use e.g. #number_with_delimiter directly"
|
30
|
+
number_with_delimiter(num)
|
31
|
+
end
|
27
32
|
|
28
33
|
#
|
29
34
|
# Pass in an RSolr::Response. Displays the "showing X through Y of N" message.
|
30
35
|
def render_pagination_info(response, options = {})
|
36
|
+
Deprecation.silence(Blacklight::CatalogHelperBehavior) do
|
31
37
|
entry_name = options[:entry_name] || t('blacklight.entry_name.default')
|
32
38
|
|
33
39
|
end_num = if render_grouped_response?
|
34
|
-
|
40
|
+
number_with_delimiter(response.start + response.groups.length)
|
35
41
|
else
|
36
|
-
|
42
|
+
number_with_delimiter(response.start + response.docs.length)
|
37
43
|
end
|
38
44
|
|
39
45
|
case response.total_count
|
@@ -41,6 +47,7 @@ module Blacklight::CatalogHelperBehavior
|
|
41
47
|
when 1; t('blacklight.search.pagination_info.single_item_found', :entry_name => entry_name).html_safe
|
42
48
|
else; t('blacklight.search.pagination_info.pages', :entry_name => entry_name.pluralize, :current_page => response.current_page, :num_pages => response.total_pages, :start_num => format_num(response.start + 1) , :end_num => end_num, :total_num => response.total_count, :count => response.total_pages).html_safe
|
43
49
|
end
|
50
|
+
end
|
44
51
|
end
|
45
52
|
deprecation_deprecate :render_pagination_info
|
46
53
|
|
@@ -53,9 +60,9 @@ module Blacklight::CatalogHelperBehavior
|
|
53
60
|
entry_name = if options[:entry_name]
|
54
61
|
options[:entry_name]
|
55
62
|
elsif collection.respond_to? :model # DataMapper
|
56
|
-
collection.model.model_name.
|
63
|
+
collection.model.model_name.human.downcase
|
57
64
|
elsif collection.respond_to? :model_name and !collection.model_name.nil? # AR, Blacklight::PaginationMethods
|
58
|
-
collection.model_name.
|
65
|
+
collection.model_name.human.downcase
|
59
66
|
elsif collection.is_a?(::Kaminari::PaginatableArray)
|
60
67
|
'entry'
|
61
68
|
else
|
@@ -72,15 +79,15 @@ module Blacklight::CatalogHelperBehavior
|
|
72
79
|
end
|
73
80
|
|
74
81
|
end_num = if collection.offset_value + end_num <= collection.total_count
|
75
|
-
|
82
|
+
collection.offset_value + end_num
|
76
83
|
else
|
77
|
-
|
84
|
+
collection.total_count
|
78
85
|
end
|
79
86
|
|
80
87
|
case collection.total_count
|
81
88
|
when 0; t('blacklight.search.pagination_info.no_items_found', :entry_name => entry_name ).html_safe
|
82
89
|
when 1; t('blacklight.search.pagination_info.single_item_found', :entry_name => entry_name).html_safe
|
83
|
-
else; t('blacklight.search.pagination_info.pages', :entry_name => entry_name, :current_page => collection.current_page, :num_pages => collection.total_pages, :start_num =>
|
90
|
+
else; t('blacklight.search.pagination_info.pages', :entry_name => entry_name, :current_page => collection.current_page, :num_pages => collection.total_pages, :start_num => number_with_delimiter(collection.offset_value + 1) , :end_num => number_with_delimiter(end_num), :total_num => number_with_delimiter(collection.total_count), :count => collection.total_pages).html_safe
|
84
91
|
end
|
85
92
|
end
|
86
93
|
|
@@ -97,7 +104,7 @@ module Blacklight::CatalogHelperBehavior
|
|
97
104
|
# Code should call this method rather than interrogating session directly,
|
98
105
|
# because implementation of where this data is stored/retrieved may change.
|
99
106
|
def item_page_entry_info
|
100
|
-
t('blacklight.search.entry_pagination_info.other', :current =>
|
107
|
+
t('blacklight.search.entry_pagination_info.other', :current => number_with_delimiter(search_session[:counter]), :total => number_with_delimiter(search_session[:total]), :count => search_session[:total].to_i).html_safe
|
101
108
|
end
|
102
109
|
|
103
110
|
# Look up search field user-displayable label
|
@@ -171,6 +178,7 @@ module Blacklight::CatalogHelperBehavior
|
|
171
178
|
end
|
172
179
|
|
173
180
|
def response_has_no_search_results?
|
174
|
-
|
181
|
+
Deprecation.warn(self, "#response_has_no_search_results? is deprecated; use Response#empty? to check instead")
|
182
|
+
@response.empty?
|
175
183
|
end
|
176
184
|
end
|
@@ -1,5 +1,7 @@
|
|
1
|
-
<%
|
2
|
-
|
1
|
+
<% paginate_compact ||= nil %>
|
2
|
+
<% response = paginate_compact || @response -%>
|
3
|
+
<% if response.total_pages > 1 %>
|
4
|
+
<%= paginate response, :pagination_info_cache => page_entries_info(response), :theme => :blacklight_compact %>
|
3
5
|
<% else %>
|
4
|
-
<%= page_entries_info(
|
6
|
+
<%= page_entries_info(response) %>
|
5
7
|
<% end %>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
<h2 class="hide-text"><%= t('blacklight.search.search_results') %></h2>
|
22
22
|
|
23
|
-
<%- if
|
23
|
+
<%- if @response.empty? %>
|
24
24
|
<%= render "zero_results" %>
|
25
25
|
<%- elsif render_grouped_response? %>
|
26
26
|
<%= render_grouped_document_index %>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
Paginator now using the Bootstrap paginator class
|
10
10
|
-%>
|
11
|
-
<%- pagination_info_cache
|
11
|
+
<%- pagination_info_cache ||= page_entries_info(@response) %>
|
12
12
|
|
13
13
|
<%= paginator.render do -%>
|
14
14
|
<%= prev_page_tag %> | <%= pagination_info_cache %> | <%= next_page_tag %>
|
@@ -71,12 +71,18 @@ module Blacklight
|
|
71
71
|
# don't use a layout, otherwise use the "application.html.erb" layout
|
72
72
|
#
|
73
73
|
def choose_layout
|
74
|
-
|
74
|
+
Deprecation.warn Blacklight::LegacyControllerMethods, "#choose_layout is deprecated"
|
75
|
+
|
76
|
+
Deprecation.silence(Blacklight::LegacyControllerMethods) do
|
77
|
+
layout_name unless request.xml_http_request? || ! params[:no_layout].blank?
|
78
|
+
end
|
75
79
|
end
|
76
80
|
|
77
81
|
#over-ride this one locally to change what layout BL controllers use, usually
|
78
82
|
#by defining it in your own application_controller.rb
|
79
83
|
def layout_name
|
84
|
+
Deprecation.warn Blacklight::LegacyControllerMethods, "#layout_name is deprecated"
|
85
|
+
|
80
86
|
'blacklight'
|
81
87
|
end
|
82
88
|
end
|
@@ -62,7 +62,7 @@ describe CatalogHelper do
|
|
62
62
|
|
63
63
|
it "should use the model_name from the response" do
|
64
64
|
response = mock_response :total => 1
|
65
|
-
response.stub(:model_name).and_return('thingy')
|
65
|
+
response.stub(:model_name).and_return(double(:human => 'thingy'))
|
66
66
|
|
67
67
|
html = page_entries_info(response)
|
68
68
|
expect(html).to eq "<strong>1</strong> thingy found"
|
@@ -109,6 +109,19 @@ describe CatalogHelper do
|
|
109
109
|
html.html_safe?.should == true
|
110
110
|
end
|
111
111
|
|
112
|
+
it "uses delimiters with large numbers" do
|
113
|
+
@response = mock_response :total => 5000, :rows => 10, :current_page => 101
|
114
|
+
html = page_entries_info(@response, { :entry_name => 'entry_name' })
|
115
|
+
|
116
|
+
html.should == "<strong>1,001</strong> - <strong>1,010</strong> of <strong>5,000</strong>"
|
117
|
+
end
|
118
|
+
|
119
|
+
it "should work with an activerecord collection" do
|
120
|
+
50.times { b = Bookmark.new; b.user_id = 1; b.save! }
|
121
|
+
html = helper.page_entries_info(Bookmark.page(1).per(25))
|
122
|
+
expect(html).to eq "<strong>1</strong> - <strong>25</strong> of <strong>50</strong>"
|
123
|
+
end
|
124
|
+
|
112
125
|
end
|
113
126
|
|
114
127
|
describe "should_autofocus_on_search_box?" do
|
@@ -70,12 +70,11 @@ describe Blacklight::SolrResponse do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
it "should provide a model name helper" do
|
73
|
-
first_doc_model_name = 'xyz'
|
73
|
+
first_doc_model_name = double(:human => 'xyz')
|
74
74
|
|
75
75
|
r.docs.first.stub(:model_name).and_return first_doc_model_name
|
76
76
|
|
77
77
|
expect(r.model_name).to eq first_doc_model_name
|
78
|
-
|
79
78
|
end
|
80
79
|
|
81
80
|
describe "FacetItem" do
|
@@ -178,6 +177,12 @@ describe Blacklight::SolrResponse do
|
|
178
177
|
r.more_like(double(:id => '79930185')).should have(2).items
|
179
178
|
end
|
180
179
|
|
180
|
+
it "should be empty when the response has no results" do
|
181
|
+
r = Blacklight::SolrResponse.new({}, {})
|
182
|
+
r.stub(:total => 0)
|
183
|
+
expect(r).to be_empty
|
184
|
+
end
|
185
|
+
|
181
186
|
def mock_query_response
|
182
187
|
%({'responseHeader'=>{'status'=>0,'QTime'=>5,'params'=>{'facet.limit'=>'10','wt'=>'ruby','rows'=>'11','facet'=>'true','facet.field'=>['cat','manu'],'echoParams'=>'EXPLICIT','q'=>'*:*','facet.sort'=>'true'}},'response'=>{'numFound'=>26,'start'=>0,'docs'=>[{'id'=>'SP2514N','inStock'=>true,'manu'=>'Samsung Electronics Co. Ltd.','name'=>'Samsung SpinPoint P120 SP2514N - hard drive - 250 GB - ATA-133','popularity'=>6,'price'=>92.0,'sku'=>'SP2514N','timestamp'=>'2009-03-20T14:42:49.795Z','cat'=>['electronics','hard drive'],'spell'=>['Samsung SpinPoint P120 SP2514N - hard drive - 250 GB - ATA-133'],'features'=>['7200RPM, 8MB cache, IDE Ultra ATA-133','NoiseGuard, SilentSeek technology, Fluid Dynamic Bearing (FDB) motor']},{'id'=>'6H500F0','inStock'=>true,'manu'=>'Maxtor Corp.','name'=>'Maxtor DiamondMax 11 - hard drive - 500 GB - SATA-300','popularity'=>6,'price'=>350.0,'sku'=>'6H500F0','timestamp'=>'2009-03-20T14:42:49.877Z','cat'=>['electronics','hard drive'],'spell'=>['Maxtor DiamondMax 11 - hard drive - 500 GB - SATA-300'],'features'=>['SATA 3.0Gb/s, NCQ','8.5ms seek','16MB cache']},{'id'=>'F8V7067-APL-KIT','inStock'=>false,'manu'=>'Belkin','name'=>'Belkin Mobile Power Cord for iPod w/ Dock','popularity'=>1,'price'=>19.95,'sku'=>'F8V7067-APL-KIT','timestamp'=>'2009-03-20T14:42:49.937Z','weight'=>4.0,'cat'=>['electronics','connector'],'spell'=>['Belkin Mobile Power Cord for iPod w/ Dock'],'features'=>['car power adapter, white']},{'id'=>'IW-02','inStock'=>false,'manu'=>'Belkin','name'=>'iPod & iPod Mini USB 2.0 Cable','popularity'=>1,'price'=>11.5,'sku'=>'IW-02','timestamp'=>'2009-03-20T14:42:49.944Z','weight'=>2.0,'cat'=>['electronics','connector'],'spell'=>['iPod & iPod Mini USB 2.0 Cable'],'features'=>['car power adapter for iPod, white']},{'id'=>'MA147LL/A','inStock'=>true,'includes'=>'earbud headphones, USB cable','manu'=>'Apple Computer Inc.','name'=>'Apple 60 GB iPod with Video Playback Black','popularity'=>10,'price'=>399.0,'sku'=>'MA147LL/A','timestamp'=>'2009-03-20T14:42:49.962Z','weight'=>5.5,'cat'=>['electronics','music'],'spell'=>['Apple 60 GB iPod with Video Playback Black'],'features'=>['iTunes, Podcasts, Audiobooks','Stores up to 15,000 songs, 25,000 photos, or 150 hours of video','2.5-inch, 320x240 color TFT LCD display with LED backlight','Up to 20 hours of battery life','Plays AAC, MP3, WAV, AIFF, Audible, Apple Lossless, H.264 video','Notes, Calendar, Phone book, Hold button, Date display, Photo wallet, Built-in games, JPEG photo playback, Upgradeable firmware, USB 2.0 compatibility, Playback speed control, Rechargeable capability, Battery level indication']},{'id'=>'TWINX2048-3200PRO','inStock'=>true,'manu'=>'Corsair Microsystems Inc.','name'=>'CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail','popularity'=>5,'price'=>185.0,'sku'=>'TWINX2048-3200PRO','timestamp'=>'2009-03-20T14:42:49.99Z','cat'=>['electronics','memory'],'spell'=>['CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail'],'features'=>['CAS latency 2, 2-3-3-6 timing, 2.75v, unbuffered, heat-spreader']},{'id'=>'VS1GB400C3','inStock'=>true,'manu'=>'Corsair Microsystems Inc.','name'=>'CORSAIR ValueSelect 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - Retail','popularity'=>7,'price'=>74.99,'sku'=>'VS1GB400C3','timestamp'=>'2009-03-20T14:42:50Z','cat'=>['electronics','memory'],'spell'=>['CORSAIR ValueSelect 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - Retail']},{'id'=>'VDBDB1A16','inStock'=>true,'manu'=>'A-DATA Technology Inc.','name'=>'A-DATA V-Series 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - OEM','popularity'=>5,'sku'=>'VDBDB1A16','timestamp'=>'2009-03-20T14:42:50.004Z','cat'=>['electronics','memory'],'spell'=>['A-DATA V-Series 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - OEM'],'features'=>['CAS latency 3, 2.7v']},{'id'=>'3007WFP','inStock'=>true,'includes'=>'USB cable','manu'=>'Dell, Inc.','name'=>'Dell Widescreen UltraSharp 3007WFP','popularity'=>6,'price'=>2199.0,'sku'=>'3007WFP','timestamp'=>'2009-03-20T14:42:50.017Z','weight'=>401.6,'cat'=>['electronics','monitor'],'spell'=>['Dell Widescreen UltraSharp 3007WFP'],'features'=>['30" TFT active matrix LCD, 2560 x 1600, .25mm dot pitch, 700:1 contrast']},{'id'=>'VA902B','inStock'=>true,'manu'=>'ViewSonic Corp.','name'=>'ViewSonic VA902B - flat panel display - TFT - 19"','popularity'=>6,'price'=>279.95,'sku'=>'VA902B','timestamp'=>'2009-03-20T14:42:50.034Z','weight'=>190.4,'cat'=>['electronics','monitor'],'spell'=>['ViewSonic VA902B - flat panel display - TFT - 19"'],'features'=>['19" TFT active matrix LCD, 8ms response time, 1280 x 1024 native resolution']},{'id'=>'0579B002','inStock'=>true,'manu'=>'Canon Inc.','name'=>'Canon PIXMA MP500 All-In-One Photo Printer','popularity'=>6,'price'=>179.99,'sku'=>'0579B002','timestamp'=>'2009-03-20T14:42:50.062Z','weight'=>352.0,'cat'=>['electronics','multifunction printer','printer','scanner','copier'],'spell'=>['Canon PIXMA MP500 All-In-One Photo Printer'],'features'=>['Multifunction ink-jet color photo printer','Flatbed scanner, optical scan resolution of 1,200 x 2,400 dpi','2.5" color LCD preview screen','Duplex Copying','Printing speed up to 29ppm black, 19ppm color','Hi-Speed USB','memory card: CompactFlash, Micro Drive, SmartMedia, Memory Stick, Memory Stick Pro, SD Card, and MultiMediaCard']}]},'facet_counts'=>{'facet_queries'=>{},'facet_fields'=>{'cat'=>['electronics',14,'memory',3,'card',2,'connector',2,'drive',2,'graphics',2,'hard',2,'monitor',2,'search',2,'software',2],'manu'=>['inc',8,'apach',2,'belkin',2,'canon',2,'comput',2,'corp',2,'corsair',2,'foundat',2,'microsystem',2,'softwar',2]},'facet_dates'=>{}}})
|
183
188
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "catalog/_paginate_compact.html.erb" do
|
4
|
+
|
5
|
+
describe "with a real solr response", :integration => true do
|
6
|
+
def blacklight_config
|
7
|
+
@config ||= CatalogController.blacklight_config
|
8
|
+
end
|
9
|
+
|
10
|
+
def blacklight_config=(config)
|
11
|
+
@config = config
|
12
|
+
end
|
13
|
+
|
14
|
+
def blacklight_solr
|
15
|
+
Blacklight.solr
|
16
|
+
end
|
17
|
+
|
18
|
+
def facet_limit_for *args
|
19
|
+
0
|
20
|
+
end
|
21
|
+
|
22
|
+
include Blacklight::SolrHelper
|
23
|
+
|
24
|
+
it "should render solr responses" do
|
25
|
+
solr_response, document_list = get_search_results(:q => '')
|
26
|
+
assign :response, solr_response
|
27
|
+
render :partial => 'catalog/paginate_compact'
|
28
|
+
expect(rendered).to have_selector "a[@rel=next]"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should use Blacklight 5.x style rendering" do
|
33
|
+
render :partial => 'catalog/paginate_compact', :object => Kaminari.paginate_array([], total_count: 145).page(1).per(10)
|
34
|
+
expect(rendered).to have_selector "a[@rel=next]"
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should render paginatable arrays" do
|
38
|
+
assign :response, Kaminari.paginate_array([], total_count: 145).page(1).per(10)
|
39
|
+
render :partial => 'catalog/paginate_compact'
|
40
|
+
expect(rendered).to have_selector "a[@rel=next]"
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should render ActiveRecord collections" do
|
44
|
+
50.times { b = Bookmark.new; b.user_id = 1; b.save! }
|
45
|
+
assign :response, Bookmark.page(1).per(25)
|
46
|
+
render :partial => 'catalog/paginate_compact'
|
47
|
+
expect(rendered).to have_selector "a[@rel=next]"
|
48
|
+
end
|
49
|
+
end
|
@@ -24,7 +24,7 @@ describe "catalog/index.html.erb" do
|
|
24
24
|
view.stub(:has_search_parameters?).and_return(true)
|
25
25
|
view.stub(:extra_head_content).and_return([])
|
26
26
|
view.stub(:render_opensearch_response_metadata).and_return("")
|
27
|
-
|
27
|
+
assign(:response, double(:empty? => true))
|
28
28
|
render
|
29
29
|
expect(rendered).to match /header_content/
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,192 +17,192 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date: 2014-01-
|
20
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
24
24
|
requirement: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 3.2.6
|
29
|
-
- - <
|
29
|
+
- - "<"
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: '5'
|
32
32
|
type: :runtime
|
33
33
|
prerelease: false
|
34
34
|
version_requirements: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 3.2.6
|
39
|
-
- - <
|
39
|
+
- - "<"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: nokogiri
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '1.6'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '1.6'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: marc
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 0.4.3
|
63
|
-
- - <
|
63
|
+
- - "<"
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '1.1'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 0.4.3
|
73
|
-
- - <
|
73
|
+
- - "<"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '1.1'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: rsolr
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.0.6
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 1.0.6
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: kaminari
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.13'
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0.13'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: sass-rails
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: bootstrap-sass
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 2.2.0
|
125
|
-
- - <
|
125
|
+
- - "<"
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '2.4'
|
128
128
|
type: :runtime
|
129
129
|
prerelease: false
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: 2.2.0
|
135
|
-
- - <
|
135
|
+
- - "<"
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '2.4'
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: deprecation
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
|
-
- -
|
142
|
+
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: jettywrapper
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- -
|
156
|
+
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: 1.4.1
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
|
-
- -
|
163
|
+
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: 1.4.1
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: rspec-rails
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- -
|
170
|
+
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0'
|
173
173
|
type: :development
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
|
-
- -
|
177
|
+
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: engine_cart
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
|
-
- -
|
184
|
+
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: 0.1.0
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
189
|
version_requirements: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
|
-
- -
|
191
|
+
- - ">="
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: 0.1.0
|
194
194
|
- !ruby/object:Gem::Dependency
|
195
195
|
name: equivalent-xml
|
196
196
|
requirement: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
|
-
- -
|
198
|
+
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
type: :development
|
202
202
|
prerelease: false
|
203
203
|
version_requirements: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
|
-
- -
|
205
|
+
- - ">="
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
description: Blacklight is an open source Solr user interface discovery platform.
|
@@ -214,11 +214,11 @@ executables: []
|
|
214
214
|
extensions: []
|
215
215
|
extra_rdoc_files: []
|
216
216
|
files:
|
217
|
-
- .gitignore
|
218
|
-
- .gitmodules
|
219
|
-
- .rspec
|
220
|
-
- .travis.yml
|
221
|
-
- .yardopts
|
217
|
+
- ".gitignore"
|
218
|
+
- ".gitmodules"
|
219
|
+
- ".rspec"
|
220
|
+
- ".travis.yml"
|
221
|
+
- ".yardopts"
|
222
222
|
- Gemfile
|
223
223
|
- LICENSE
|
224
224
|
- README.md
|
@@ -516,6 +516,7 @@ files:
|
|
516
516
|
- spec/views/catalog/_document_list.html.erb_spec.rb
|
517
517
|
- spec/views/catalog/_facets.html.erb_spec.rb
|
518
518
|
- spec/views/catalog/_index_default.erb_spec.rb
|
519
|
+
- spec/views/catalog/_paginate_compact.html.erb_spec.rb
|
519
520
|
- spec/views/catalog/_search_header.erb_spec.rb
|
520
521
|
- spec/views/catalog/_show_default.erb_spec.rb
|
521
522
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|
@@ -534,17 +535,17 @@ require_paths:
|
|
534
535
|
- lib
|
535
536
|
required_ruby_version: !ruby/object:Gem::Requirement
|
536
537
|
requirements:
|
537
|
-
- -
|
538
|
+
- - ">="
|
538
539
|
- !ruby/object:Gem::Version
|
539
540
|
version: '0'
|
540
541
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
541
542
|
requirements:
|
542
|
-
- -
|
543
|
+
- - ">="
|
543
544
|
- !ruby/object:Gem::Version
|
544
545
|
version: '0'
|
545
546
|
requirements: []
|
546
547
|
rubyforge_project: blacklight
|
547
|
-
rubygems_version: 2.0
|
548
|
+
rubygems_version: 2.2.0
|
548
549
|
signing_key:
|
549
550
|
specification_version: 4
|
550
551
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
@@ -617,6 +618,7 @@ test_files:
|
|
617
618
|
- spec/views/catalog/_document_list.html.erb_spec.rb
|
618
619
|
- spec/views/catalog/_facets.html.erb_spec.rb
|
619
620
|
- spec/views/catalog/_index_default.erb_spec.rb
|
621
|
+
- spec/views/catalog/_paginate_compact.html.erb_spec.rb
|
620
622
|
- spec/views/catalog/_search_header.erb_spec.rb
|
621
623
|
- spec/views/catalog/_show_default.erb_spec.rb
|
622
624
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|