I'd like to have the ability to disable the 'by location' tab in the search page, and so I have attached a patch which allows users to disable this if they wish (it is still displayed by default).

(I've also changed a string in the location settings page to remove reference to CivicSpace specifically)

Comments

geodaniel’s picture

Ankur, any thoughts on this one? Ideally I'd like to be more flexible in what search options we give to our users.

nedjo’s picture

+1, the search by location isn't always wanted.

(The unrelated removal of CivicSpace is also needed.)

geodaniel’s picture

StatusFileSize
new1.9 KB

This could also be done as a permission (see attached patch), though that would cause the search by location tab to disappear when people upgraded their modules.

ankur’s picture

Well, for the perm patch, we could include a db update in the .install file that runs the appropriate queries to add the 'search by location' access to all of the existing roles...

But I'm undecided myself about whether it'd be better to have it as a permissions thing or as a configurable setting for everyone.

I can imagine us wanted to be selective about who gets to do this if the search was for users, but I can't imagine what situations we'd want to prevent some people from search content by location and allow others to be able to search content by location.

2houseplague’s picture

I looked for the way to turn this off in admin >> search, if that tells you anything. The intuitive thing would be to allow the admin to enable or disable "realms", i.e users, locations, opensearch... globally, then to disallow by role.

lias’s picture

Being able to turn it off would be a great option, especially via permissions and by role.

lsabug

geodaniel’s picture

To keep this change as simple as possible, maybe the global on/off switch would be the best solution? I'd love to get this in... :)

bdragon’s picture

Version: 4.7.x-1.x-dev » 6.x-3.x-dev
Assigned: geodaniel » bdragon
Status: Needs review » Fixed

This has been fixed in HEAD since march 2008 by splitting the search interface off to a seperate module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.