Author: jablko
Date: Thu Aug 27 12:08:26 2009
New Revision: 3084
Log:
Use query parameter if specified
Modified:
trunk/apps/qubit/modules/actor/actions/listAction.class.php
trunk/apps/qubit/modules/repository/actions/listAction.class.php
Modified: trunk/apps/qubit/modules/actor/actions/listAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/actor/actions/listAction.class.php Thu Aug 27
11:30:58 2009 (r3083)
+++ trunk/apps/qubit/modules/actor/actions/listAction.class.php Thu Aug 27
12:08:26 2009 (r3084)
@@ -69,6 +69,11 @@
$search = new QubitSearch;
$query = new Zend_Search_Lucene_Search_Query_Term(new
Zend_Search_Lucene_Index_Term('QubitActor', 'className'));
+ if (isset($request->query))
+ {
+ $query = $request->query;
+ }
+
$this->pager = new
QubitSearchPager($search->getEngine()->getIndex()->find($query),
$request->page);
$ids = array();
Modified: trunk/apps/qubit/modules/repository/actions/listAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/listAction.class.php Thu Aug
27 11:30:58 2009 (r3083)
+++ trunk/apps/qubit/modules/repository/actions/listAction.class.php Thu Aug
27 12:08:26 2009 (r3084)
@@ -36,6 +36,11 @@
$search = new QubitSearch;
$query = new Zend_Search_Lucene_Search_Query_Term(new
Zend_Search_Lucene_Index_Term('QubitRepository', 'className'));
+ if (isset($request->query))
+ {
+ $query = $request->query;
+ }
+
$this->pager = new
QubitSearchPager($search->getEngine()->getIndex()->find($query),
$request->page);
$ids = array();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---