"Show more" link not shown on facet blocks provided by other modules

David Lesieur - October 20, 2009 - 00:41
Project:Apache Solr Search Integration
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This problem can easily be observed with the ApacheSolr Biblio module, for example.

The "Show more" link gets appended to a facet block through a jQuery selector that relies on the block's ".block-modulename" class attribute. However, apachesolr.js hardcodes the classes ("block-apachesolr" and "block-apachesolr_search"). With this patch, the module names are passed to Drupal.settings and the selector dynamically built using those names.

Alternatively, perhaps one could imagine a different way for selecting the right blocks, without relying on those classes?

AttachmentSize
apachesolr-facet-modules-show-more.patch2.1 KB
 
 

Drupal is a registered trademark of Dries Buytaert.