Theming search results for Biblio

julou - May 30, 2008 - 08:39
Project:Biblio Facets
Version:5.x-1.0-beta1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

Is it possible to theme FS search results. In particular, to add a new category to the display options list.
A patch example would be of great help.

The ultimate goal would be to theme biblio items, searched through by biblio facets. I also posted a feature request on biblio facets issues list.
(#264541: Add the ability to display search results using the biblio module layout)

Thank you in advance for your help,

Thomas

#1

julou - June 13, 2008 - 07:51
Version:5.x-1.0-beta1» 5.x-1.0-beta1

Not a single piece of advice?! Really…
Thank you again for your help,

Thomas

#2

David Lesieur - June 17, 2008 - 18:02
Title:Theming search results» Theming search results for Biblio

There would be at least a few options.

You could add a new display style by extending the faceted_search_ui_style class in a module (there are examples in faceted_search_ui.inc). For search environments where Biblio and non-Biblio nodes are mixed in results, the display style would probably need a fall-back for non-Biblio nodes.

Or you could use the Extracts display style and override the theme_search_item() function from search.module. You'd have to check the node type in order to support both Biblio and non-Biblio nodes properly.

Or you could use a view to display search results, selecting one of the Biblio-specific view styles from the experimental (and unsupported) Biblio Views module.

#3

David Lesieur - June 17, 2008 - 19:06
Project:Faceted Search» Biblio Facets
Version:5.x-1.0-beta1» 5.x-1.0-beta1

Related feature request: Display results using Biblio styles.

 
 

Drupal is a registered trademark of Dries Buytaert.