faceted_search 3.5.4 → 3.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9c031c6042e6795df7c7465fba26d1ff6e8d8ad3c7f3db94859febdcf3df6e0
4
- data.tar.gz: c534ffb91303aaa601e530bd2271bb36dcef60ec01d04ba97ee74645f8968e86
3
+ metadata.gz: 553d3617dd9ce61d6c40ee05bbb892fe015d92154858d8d94b9b1f17fa3c0bbe
4
+ data.tar.gz: 23c554467eea8e4495d8bcc4e3b32bbd7a9770be3eb19e27d10c13503b4bb9d3
5
5
  SHA512:
6
- metadata.gz: f062d6086f4608816429ad31f69cf706f7a7868e486183a3c42f7c1d546190c8142d8dcc6b2cb3fb91901b0f26f64cf49c848a3c5de37407d7cd9150ab0ca737
7
- data.tar.gz: 90669a44d5ba16929296b22854a80446ddb88cde6ea2df4e38e96495e25ab61b3e7b38788fefce07ce78d5a55162bf11b9cef99106616f6bd9388da228f68b13
6
+ metadata.gz: 7f030a78d48278f60d0a9c6f2c45663d4089d4745ef5fc212a10d8d41e21f5680529ca2c41447f8db0027fd23e60ecde3a3a606070d25887b9e8315a6d21c885
7
+ data.tar.gz: 29a04e3c793429cd53d1496da956f954f73ad9049cdf7866cae122e54a2695b5d3578cffded28ba0a3b04a25ea50aab18765c7cce1f9dfc85f9bd52ac113829a
@@ -10,7 +10,7 @@ reset ||= 'Reset'
10
10
  next if facet.hide_in_selected?
11
11
  partial = "#{facet.kind.underscore}/selected"
12
12
  %>
13
- <%= render partial, facet: facet %>
13
+ <%= render partial, facet: facet, anchor: anchor %>
14
14
  <% end %>
15
15
  </ul>
16
16
  <% end %>
@@ -6,7 +6,7 @@
6
6
  <%= render 'faceted_search/facets/facet-selected',
7
7
  title: facet.title,
8
8
  value: display_value,
9
- path: facet.facets.path_for(facet, identifier) %>
9
+ path: facet.facets.path_for(facet, identifier) + anchor %>
10
10
  <% end %>
11
11
  <% end %>
12
12
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <%= render 'faceted_search/facets/facet-selected',
5
5
  title: facet.title,
6
6
  value: year,
7
- path: facet.facets.path_for(facet, year) %>
7
+ path: facet.facets.path_for(facet, year) + anchor %>
8
8
  <% end %>
9
9
  <% end %>
10
10
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <div class="static-nestable-list">
5
5
  <div class="dd">
6
6
  <ol class="faceted__facet__full_tree list-unstyled dd-list">
7
- <%= render 'faceted_search/facets/full_tree/values', values: facet.values_with_parent(nil), facet: facet %>
7
+ <%= render 'faceted_search/facets/full_tree/values', values: facet.values_with_parent(nil), facet: facet, anchor: anchor %>
8
8
  </ol>
9
9
  </div>
10
10
  </div>
@@ -1,5 +1,6 @@
1
1
  <% if facet.values.any? %>
2
2
  <%= render 'faceted_search/facets/full_tree/values-selected',
3
3
  values: facet.values_with_parent(nil),
4
- facet: facet %>
4
+ facet: facet,
5
+ anchor: anchor %>
5
6
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <%= render 'faceted_search/facets/facet-selected',
5
5
  title: facet.title,
6
6
  value: facet.display_method.call(value),
7
- path: facet.facets.path_for(facet, identifier) %>
7
+ path: facet.facets.path_for(facet, identifier) + anchor %>
8
8
  <% end %>
9
9
  <% child_values = facet.values_with_parent(value.id) %>
10
10
  <% if child_values.any? %>
@@ -3,12 +3,12 @@
3
3
  <li class="faceted__facet__full_tree__value<%= '--selected' if facet.value_selected?(identifier) %> dd-item <%= 'dd-item--selected' if facet.value_selected?(identifier) %>">
4
4
  <%= render 'faceted_search/link',
5
5
  display_value: facet.display_method.call(value),
6
- path: facet.facets.path_for(facet, identifier),
6
+ path: facet.facets.path_for(facet, identifier) + anchor,
7
7
  searchable: facet.searchable %>
8
8
  <% child_values = facet.values_with_parent(value.id) %>
9
9
  <% if child_values.any? %>
10
10
  <ol class="dd-list">
11
- <%= render 'faceted_search/facets/full_tree/values', values: child_values, facet: facet %>
11
+ <%= render 'faceted_search/facets/full_tree/values', values: child_values, facet: facet, anchor: anchor %>
12
12
  </ol>
13
13
  <% end %>
14
14
  </li>
@@ -6,7 +6,7 @@
6
6
  <%= render 'faceted_search/facets/facet-selected',
7
7
  title: facet.title,
8
8
  value: display_value,
9
- path: facet.facets.path_for(facet, identifier) %>
9
+ path: facet.facets.path_for(facet, identifier) + anchor %>
10
10
  <% end %>
11
11
  <% end %>
12
12
  <% end %>
@@ -3,5 +3,5 @@
3
3
  <%= render 'faceted_search/facets/facet-selected',
4
4
  title: facet.title,
5
5
  value: value,
6
- path: facet.facets.path_for(facet, nil) %>
6
+ path: facet.facets.path_for(facet, nil) + anchor %>
7
7
  <% end %>
@@ -3,5 +3,5 @@
3
3
  <%= render 'faceted_search/facets/facet-selected',
4
4
  title: facet.title,
5
5
  value: value,
6
- path: facet.facets.path_for(facet, nil) %>
6
+ path: facet.facets.path_for(facet, nil) + anchor %>
7
7
  <% end %>
@@ -6,7 +6,7 @@
6
6
  <%
7
7
  display_value = facet.display_method.call(facet.selected_object)
8
8
  identifier = facet.selected_object.send facet.find_by
9
- path = facet.facets.path_for(facet, identifier)
9
+ path = facet.facets.path_for(facet, identifier) + anchor
10
10
  %>
11
11
  <div class="faceted__facet__tree__back">
12
12
  <%= link_to path, rel: 'nofollow' do %>
@@ -20,7 +20,7 @@
20
20
  <%
21
21
  display_value = facet.display_method.call(value)
22
22
  identifier = value.send facet.find_by
23
- path = facet.facets.path_for(facet, identifier)
23
+ path = facet.facets.path_for(facet, identifier) + anchor
24
24
  %>
25
25
  <li class="faceted__facet__tree__value">
26
26
  <%= render 'faceted_search/link',
@@ -1,3 +1,3 @@
1
1
  module FacetedSearch
2
- VERSION = '3.5.4'
2
+ VERSION = '3.5.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceted_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.4
4
+ version: 3.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy