Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: rt_davies commentedproposed patch
Comment #2
mpgeek CreditAttribution: mpgeek commentedRolling this one in, thank you rt_davies.
Comment #3
mpgeek CreditAttribution: mpgeek commentedRolling this one in, thank you rt_davies.
Comment #4
mpgeek CreditAttribution: mpgeek commentedCommitted to 7.x-1.x (dev): http://drupalcode.org/project/google_appliance.git/shortlog/refs/heads/7....
Comment #5
mpgeek CreditAttribution: mpgeek commentedAdded in 7.x-1.5. See http://drupal.org/node/1518352
Comment #6
mpgeek CreditAttribution: mpgeek commentedComment #7
mpgeek CreditAttribution: mpgeek commented