On my site I have both biblio publications and books publications. So I create lists with these nodes using views. And I would like to have good interface for searching through these publications. I've found, that biblio provides fields, but not filters for views. This patch adds filters.

Index: biblio.module
===================================================================
--- biblio.module       (revision 88)
+++ biblio.module       (working copy)
@@ -2701,6 +2701,9 @@
       'sortable' => true,
       'notafield' => false,
     ));
+    views_table_add_filter($table, $field['name'], "Biblio: ".$field['title'], "", array(
+      'operator' => 'views_handler_operator_like',
+      'handler' => 'views_handler_filter_like'));
   }

   $tables['biblio'] = $table;

Comments

schildi’s picture

very helpful hint!

Regards
schildi

bekasu’s picture

Status: Reviewed & tested by the community » Closed (fixed)