Skip to content

Commit

Permalink
Merge pull request #1286 from ogdch/fix-org-facet-title
Browse files Browse the repository at this point in the history
Add "organizations" to the default facet titles
  • Loading branch information
nigelbabu committed Nov 1, 2013
2 parents 9471b5d + 5cc76ac commit dbc36b6
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 dbc36b6

Please sign in to comment.