Posted by robertDouglass on November 3, 2009 at 4:27pm
| Project: | Apache Solr Search Integration |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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 | Status | Test result | Operations |
|---|---|---|---|---|
| dynamic-show-more.patch | 2.57 KB | Ignored: Check issue status. | None | None |
Comments
#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.
#12
Marked #609040: "Show more" link not shown on facet blocks provided by other modules as duplicate. Both solutions seem to use the same approach.
#13
This patch is not applicable to 6.x-1.x-dev nor to 5.x-2.x-dev because is referring to a function - apachesolr_js() - missed in those branches.
Options:
Peter?
#14
Making this functionality more generic is nice to have, but I don't see it as critical. If someone wants to roll the patch, fine - otherwise I think it's not something to focus on now.
#15
Not backporting JS. Marking fixed for 6-2.
#16
Automatically closed -- issue fixed for 2 weeks with no activity.