Is it possible to have the tabs results appear on the drupal results page?
I have checked the xml returned by google search engine and the "facets" and "labels" are present in the xml, but the faceted search does not appear on my drupal results page.
Does this module have this functionality?
Attached some images to better explain the question
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | gss.zip | 16.02 KB | marcoscano |
| #1 | gss.zip | 15.62 KB | marcoscano |
| search_results_on_drupal_site.JPG | 58.93 KB | marcoscano | |
| search_preview_on_google.JPG | 70.27 KB | marcoscano |
Comments
Comment #1
marcoscanoHi again,
I've given some more attention to this and have added some code to extract also the faceted information from the XML. Now my problem is solved, everything is working fine.
Once this could be of some interest for others, I'm attaching the changes made to the module. I'm sorry I have no idea on how to create a patch, so I'm uploading the whole code. Hopefully someone more familiar with the drupal best practices could check it and create the appropriate patch... :)
In my use case everything is working fine (the output is a raw unordered list, some css is needed to have it looking good), but some more testing would be a good idea
Regards
Comment #2
dhavyd commentedHi! That seems like a nice functionality... Thanks for your code! I'll check it and include it to the upcoming version.
Comment #3
marcoscanoIn the code in #1 there is a bug when the query expression is made of more than 1 word. Attached a revised version that corrects it.
Also, I've added some more code to display as well the thumbnails on the results, if there is any.
You can see a demo of the results on
http://www.clasicanet.com/search/gss/franch
http://www.clasicanet.com/search/gss/franch+more%3Aconcerts
Please don't forget testing the code before using it on your site...
Regards
Comment #4
dhavyd commentedHi! Yes, it is nice feature to have in the module. Thanks for your code. I'll test and include it in the module and release a new version with those changes...
Comment #5
dhavyd commentedSo, the version 7.x-1.3 of the module is released and your code has been inserted in it. Thanks for your effort!
Comment #6
dhavyd commentedComment #7
marcoscanoHi!
In line 347 of GoogleSiteSearch.inc there is still a " print "test"; " remaining, I suppose from debbuging...
Comment #8
dhavyd commentedOh, no... :-)
I have released a new version, because it's not possible to rename a release tag. The new release is 7.x-1.4-beta1, but the problem is that drupal.org doesn't allow me to choose this release as recommended instead of 7.x-1.3, maybe because 1.3 is "better" than beta. I keep trying to change that...
Comment #9
dhavyd commentedI've release the version 7.x-1.4 to fix that...