def short_date(s)
return if s.nil?
Date.parse(s).strftime("%e %b %Y")
end
def cleanup(s)
return if s.nil?
s.sub!('Unknown', '')
s.sub!('Not Available', '')
s.sub!('Not Applicable', '')
# s = "#{s}" if s.match(/approve/i)
# s = "#{s}" if s.match(/refuse/i)
s
end
def slug(s)
s.downcase.gsub(' ', '-')
end
def authority_url(authority_name)
"/authorities/#{slug(authority_name)}/"
end