Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit 2060939

Browse files
authored
Merge pull request #147 from pgwillia/locations_fix
Upstream change in how location_tesim is indexed
2 parents d697b6e + 32f92f9 commit 2060939

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

app/helpers/blacklight/facets_helper_behavior.rb

+1-8
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,7 @@ def facet_partial_name(display_facet = nil)
119119
# @option options [Boolean] :suppress_link display the facet, but don't link to it
120120
# @return [String]
121121
def render_facet_value(facet_field, item, options ={})
122-
if facet_field == "location_tesim"
123-
path = path_for_facet(facet_field, item)
124-
content_tag(:span, :class => "facet-label") do
125-
if @locations[item.value]
126-
link_to_unless(options[:suppress_link], facet_display_value(facet_field, @locations[item.value]["name"]), path, :class=>"facet_select")
127-
end
128-
end + render_facet_count(item.hits)
129-
elsif facet_field == "languagenote_tesim"
122+
if facet_field == "languagenote_tesim"
130123
path = path_for_facet(facet_field, item)
131124
content_tag(:span, :class => "facet-label") do
132125
link_to_unless(options[:suppress_link], facet_display_value(facet_field, @languages[item.value.to_s.downcase]), path, :class=>"facet_select")

0 commit comments

Comments
 (0)