app/searchers/quick_search/maryland_map_searcher.rb
def description(result)
      start_year = result['startYear'] || ''
      start_year = start_year.strip
      digitized = result['digitized'].to_s == 'true'

      digitized_image_msg = I18n.t('maryland_map_search.digitized_image_message')

      return nil if start_year.empty? && !digitized
      return digitized_image_msg if start_year.empty?
      return start_year unless digitized

      "#{start_year} - #{digitized_image_msg}"
    end
# Generates a description for the given result
Generates a description for the given result
Generates a description for the given result
def description(result)
      start_year = result['startYear'] || ''
      start_year = start_year.strip
      digitized = result['digitized'].to_s == 'true'
      digitized_image_msg = I18n.t('maryland_map_search.digitized_image_message')
      return nil if start_year.empty? && !digitized
      return digitized_image_msg if start_year.empty?
      return start_year unless digitized
      "#{start_year} - #{digitized_image_msg}"
    end
def description ( result ) start_year = result [ 'startYear' ] || '' start_year = start_year . strip digitized = result [ 'digitized' ] . to_s == 'true' digitized_image_msg = I18n . t ( 'maryland_map_search.digitized_image_message' ) return nil if start_year . empty? && ! digitized return digitized_image_msg if start_year . empty? return start_year unless digitized "#{start_year} - #{digitized_image_msg}" end
Generates a description for the given result
Generates a description for the given result
result