Problem/Motivation
Google appliance may return search term synonyms, which are being ignored by the module.
Proposed resolution
The attached patch follows code examples for handling other elements (e.g. keymatch). It parses the xml in the module, uses template preprocess functions to check the parsed data and generate links to synonym searches and displays the results with a new template file and some css rules.
Remaining tasks
quality control.
User interface changes
If synonyms are returned, they appear as links under the search box on the results page, labeled similar to the google appliance default, "You might also try:".
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | google_appliance-synonyms-1469028-1.patch | 7.04 KB | rt_davies |
Comments
Comment #1
rt_davies commentedproposed patch
Comment #2
mpgeek commentedRolling this one in, thank you rt_davies.
Comment #3
mpgeek commentedRolling this one in, thank you rt_davies.
Comment #4
mpgeek commentedCommitted to 7.x-1.x (dev): http://drupalcode.org/project/google_appliance.git/shortlog/refs/heads/7....
Comment #5
mpgeek commentedAdded in 7.x-1.5. See http://drupal.org/node/1518352
Comment #6
mpgeek commentedComment #7
mpgeek commented