Skip to content

Commit

Permalink
[#776] Show organization search facets by default
Browse files Browse the repository at this point in the history
Show faceting by organization by default on the dataset search page.
Fixes #776.
  • Loading branch information
Sean Hammond authored and amercader committed Apr 19, 2013
1 parent 6073fa6 commit 27ac116
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions ckan/controllers/package.py
Expand Up @@ -221,10 +221,13 @@ def pager_url(q=None, page=None):

facets = OrderedDict()

default_facet_titles = {'groups': _('Groups'),
'tags': _('Tags'),
'res_format': _('Formats'),
'license': _('Licence'), }
default_facet_titles = {
'organization': _('Organizations'),
'groups': _('Groups'),
'tags': _('Tags'),
'res_format': _('Formats'),
'license': _('Licence'),
}

for facet in g.facets:
if facet in default_facet_titles:
Expand Down
2 changes: 1 addition & 1 deletion ckan/lib/app_globals.py
Expand Up @@ -47,7 +47,7 @@
'ckan.api_url': {},

# split string
'search.facets': {'default': 'groups tags res_format license',
'search.facets': {'default': 'organization groups tags res_format license',
'type': 'split',
'name': 'facets'},
'package_hide_extras': {'type': 'split'},
Expand Down

0 comments on commit 27ac116

Please sign in to comment.