"Show more" links are hardcoded to apachesolr and apachesolr_search modules. This patch abstracts and automates.
robertDouglass - November 3, 2009 - 16:27
| Project: | Apache Solr Search Integration |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Description
This patch makes the jQuery selectors for adding the Show more links to blocks dynamic and ustilizes Drupal.settings and apachesolr_get_js to inject the #id selectors of blocks that may need to have the links. The selectors are more precise than class based selectors, so the jQuery should be faster, too, but I didn't benchmark.
| Attachment | Size |
|---|---|
| dynamic-show-more.patch | 2.57 KB |

#1
Added some code comments to keep the codebase from becoming too hard to follow.
#2
Committed to DRUPAL-6--2
#3
Backporting?
#4
Claudiu - you can flag issues you think need backporting by changing the status and coordinating with Peter Wolanin.
#5
Yes. That's why I asked... The part of code, subject of this patch, is present only in 6.x-2.x.
We have to figure out if we will backport the entire functionality there... I didn't had time to investigate.... Peter?
#6
Here's a band-aid followup. The CCK facet mapping is such a PITA... that needs to be solved. This patch fixes the problem locally.
#7
#8
(committed #6 to 6.2)
#9
Which part needs to be ported to 6.x-1.x?
#10
Peter, #0, #1, and #6 all got applied.
#11
Sorry. Only #1 and #6 got applied.