@core_helper
@maintain.deprecated('h.get_facet_title is deprecated in 2.0 and will be removed.')
def get_facet_title(name):
 config_title = config.get(('search.facets.%s.title' % name))
 if config_title:
  return config_title
 facet_titles = {'organization': _('Organizations'), 'groups': _('Groups'), 'tags': _('Tags'), 'res_format': _('Formats'), 'license': _('Licenses')}
 return facet_titles.get(name, name.capitalize())

@ core_helper @ maintain . deprecated ( 'h.get_facet_title is deprecated in 2.0 and will be removed.' ) def get_facet_title ( name ) : config_title = config . get ( ( 'search.facets.%s.title' % name ) ) if config_title : return config_title facet_titles = { 'organization' : _ ( 'Organizations' ) , 'groups' : _ ( 'Groups' ) , 'tags' : _ ( 'Tags' ) , 'res_format' : _ ( 'Formats' ) , 'license' : _ ( 'Licenses' ) } return facet_titles . get ( name , name . capitalize ( ) )
deprecated in ckan 2 .