lib/blacklight_browse_nearby.rb
# Convenience method to return the combined key from the original document that is preferred_value aware. This is necessary for supporting multi-valued fields.
Convenience method to return the combined key from the original document that is preferred_value aware. This is necessary for supporting multi-valued fields.
Convenience method to return the combined key from the original document that is preferred_value aware . This is necessary for supporting multi - valued fields .
def combined_key
    return @original_document[combined_key_field].first if (@original_document[combined_key_field].length == 1 or @opts[:preferred_value].blank?)
    @original_document[combined_key_field].each do |key|
      return key if get_value_from_combined_key(key, value_field) == @opts[:preferred_value]
    end
  end
def combined_key return @original_document [ combined_key_field ] . first if ( @original_document [ combined_key_field ] . length == 1 or @opts [ :preferred_value ] . blank? ) @original_document [ combined_key_field ] . each do | key | return key if get_value_from_combined_key ( key , value_field ) == @opts [ :preferred_value ] end end
Convenience method to return the combined key from the original document that is preferred_value aware.
Convenience method to return the combined key from the original document that is preferred_value aware .