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.
| Comment | File | Size | Author |
|---|---|---|---|
| biblio_pages_alter_filter.patch | 3.9 KB | mweixel |
Comments
Comment #1
rjerome commentedLooks 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.
Comment #2
mweixel commentedHi, 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...