Skip to content

Commit

Permalink
Add organizations to the default facet titles
Browse files Browse the repository at this point in the history
Currently this is only set in the package controller, so on all other pages that display the facets the title is not displayed correctly
  • Loading branch information
Stefan Oderbolz committed Oct 21, 2013
1 parent ace4ca9 commit 5cc76ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -278,7 +278,8 @@ def pager_url(q=None, page=None):

facets = OrderedDict()

default_facet_titles = {'groups': _('Groups'),
default_facet_titles = {'organization': _('Organizations'),
'groups': _('Groups'),
'tags': _('Tags'),
'res_format': _('Formats'),
'license_id': _('License')}
Expand Down
1 change: 1 addition & 0 deletions ckan/controllers/home.py
Expand Up @@ -67,6 +67,7 @@ def index(self):
c.search_facets = query['search_facets']

c.facet_titles = {
'organization': _('Organizations'),
'groups': _('Groups'),
'tags': _('Tags'),
'res_format': _('Formats'),
Expand Down
3 changes: 2 additions & 1 deletion ckan/lib/helpers.py
Expand Up @@ -597,7 +597,8 @@ def get_facet_title(name):
if config_title:
return config_title

facet_titles = {'groups': _('Groups'),
facet_titles = {'organization': _('Organizations'),
'groups': _('Groups'),
'tags': _('Tags'),
'res_format': _('Formats'),
'license': _('License'), }
Expand Down

0 comments on commit 5cc76ac

Please sign in to comment.