Download & Extend

Add an "unclick" link to search facet block

Project:Apache Solr Search Integration
Version:6.x-1.5
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

A user can remove a filter by using the "unclick" link provided in the Current search block. Adding a similar link for the search keys would be convenient and make the UI more consistent.
Of course, this only makes sense with the new capability provided by #358166: Search for just facet(s).

Comments

#1

I'm thinking this is rather trivial?

* Comment above a sad excuse for bumping this =) *

#2

This is a nice little feature request that I'd still group in the 6-1--0 branch. Anyone want to take a first swing at rolling a patch?

#3

Assigned to:Anonymous» janusman

Taking this...

#4

Status:active» needs review

Here be a patch.

Took some code from @aufumy's patch in http://drupal.org/node/270412#comment-1747426 to add the public function remove_keys() to Solr_base_query.php

AttachmentSizeStatusTest resultOperations
473554_4.patch1.85 KBIgnored: Check issue status.NoneNone

#5

Version:6.x-1.x-dev» 6.x-2.x-dev

Let's resolve #545094: Method to set Keys on Query first and then get this in.

#6

Per discussion w/ Janusman. I think we'll need to change the interface, so we should not put this on the 1.x branch where it would break existing integrations.

I think a set_keys() method is more generally useful, and it's not clear then that we need a remove_keys() method.

#7

Status:needs review» needs work

There are now $query->get_keys() and $query->set_keys().

#8

Status:needs work» needs review

New patch for latest DRUPAL-6--2.

AttachmentSizeStatusTest resultOperations
473554-8.patch1.11 KBIgnored: Check issue status.NoneNone

#9

Status:needs review» fixed

Thank you. Committed to 6.2.

#10

Version:6.x-2.x-dev» 6.x-1.x-dev
Status:fixed» patch (to be ported)

Peter may want to port.

#11

Version:6.x-1.x-dev» 6.x-2.x-dev
Status:patch (to be ported)» fixed

If I understand, this requres the interface changes, so we were not going to backport.

#12

Ok.

#13

Status:fixed» closed (fixed)

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

#14

Title:Add an "unclick" link to search keys» Add an "unclick" link to search facet block
Version:6.x-2.x-dev» 6.x-1.5
Status:closed (fixed)» active

Is there any way to add the unclick link to the facet block all the time? Possible saying ( All ) instead of (-).
Just like drupal.org

#15

Assigned to:janusman» Anonymous

Not assigned to me anymore. =)

#16

Status:active» fixed

Marcusoaten, could you please open a new issue with a clear description + maybe an image/screenshot?
Also feature request will probably first go into the 7.x branch and are maybe backported to D6 in time.
This is a really old issue that was fixed so we'll leave it that way :)

#17

Status:fixed» closed (fixed)

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

nobody click here