app/helpers/blacklight/hierarchy_helper.rb
# FIXME: remove baked in underscore separator in field name
remove baked in underscore separator in field name
remove baked in underscore separator in field name
def render_facet_rotate(field_name)
    return unless is_hierarchical?(field_name)
    (prefix, order) = field_name.split(/_/, 2)
    return if blacklight_config.facet_display[:hierarchy][prefix].length < 2
    new_order = facet_after(prefix, order)
    new_params = rotate_facet_params(prefix, order, new_order)
    new_params["#{prefix}_facet_order"] = new_order
    link_to image_tag('icons/rotate.png', title: new_order.upcase).html_safe, new_params, class: 'no-underline'
  end
def render_facet_rotate ( field_name ) return unless is_hierarchical? ( field_name ) ( prefix , order ) = field_name . split ( / _ / , 2 ) return if blacklight_config . facet_display [ :hierarchy ] [ prefix ] . length < 2 new_order = facet_after ( prefix , order ) new_params = rotate_facet_params ( prefix , order , new_order ) new_params [ "#{prefix}_facet_order" ] = new_order link_to image_tag ( 'icons/rotate.png' , title : new_order . upcase ) . html_safe , new_params , class : 'no-underline' end
FIXME: remove baked in underscore separator in field name
FIXME : remove baked in underscore separator in field name
field_name
<not_specific>