lib/blacklight_browse_nearby.rb
# Returns a boolean validating that the given document has all the required fields for the browsing.
Returns a boolean validating that the given document has all the required fields for the browsing.
Returns a boolean validating that the given document has all the required fields for the browsing .
def document_has_required_fields?
    [value_field, reverse_shelfkey_field, shelfkey_field, combined_key_field].each do |field|
      return false if @original_document[field].blank?
    end
    true
  end
def document_has_required_fields? [ value_field , reverse_shelfkey_field , shelfkey_field , combined_key_field ] . each do | field | return false if @original_document [ field ] . blank? end true end
Returns a boolean validating that the given document has all the required fields for the browsing.
Returns a boolean validating that the given document has all the required fields for the browsing .