My project makes heavy use of multiple taxonomies to categorize biblio nodes instead of using biblio keywords. As a result, we want to be able to filter by multiple terms (e.g. Japan AND Culture), which causes an error in the original incarnation of biblio.pages.inc. Furthermore, I discovered that the way the query to retrieve filtered items was built was causing problems if I chose a type first and then tried to refine the selection using a taxonomy term. Basically, the order of parameters was getting out of sync with placeholders in the query string. Lastly, the display of the filter parameters ("Filters: type is Film and Taxonomy Term is Japan") was inconsistent in capitalizing the filter category (in the example here, "type" is not capitalized, while "Taxonomy Term" is).

A morning's testing seems to indicate that my modifications in the attached patch solve these issues.

CommentFileSizeAuthor
biblio_pages_alter_filter.patch3.9 KBmweixel

Comments

rjerome’s picture

Status: Active » Fixed

Looks fine to me, although I didn't see where "the order of parameters was getting out of sync with placeholders in the query string" was being addressed.

I've committed it with a few minor changes.

Ron.

mweixel’s picture

Hi, Ron:

Around line 340, the text for the WHERE contribution for the 'type' element was being placed in a string called $limit instead of added to the $where[] array. As a result, any 'type' parameters were being placed in a static location when the query string was built instead of being placed in order when the $where[] array was shifted.

By the way, thanks for all the hard work on getting such a complex module together...

Status: Fixed » Closed (fixed)

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