Author: sevein
Date: Wed May  2 17:45:46 2012
New Revision: 11600

Log:
Add call to setFrom (ES) to show the expected page

Modified:
   branches/2.0/apps/qubit/modules/term/actions/browseTermAction.class.php

Modified: 
branches/2.0/apps/qubit/modules/term/actions/browseTermAction.class.php
==============================================================================
--- branches/2.0/apps/qubit/modules/term/actions/browseTermAction.class.php     
Wed May  2 17:44:58 2012        (r11599)
+++ branches/2.0/apps/qubit/modules/term/actions/browseTermAction.class.php     
Wed May  2 17:45:46 2012        (r11600)
@@ -77,6 +77,11 @@
     $query->setLimit($request->limit);
     $query->setQuery($queryBool);
 
+    if (!empty($request->page))
+    {
+      $query->setFrom(($request->page - 1) * $request->limit);
+    }
+
     $facet = new Elastica_Facet_Terms('digitalObject.mediaTypeId');
     $facet->setField('digitalObject.mediaTypeId');
     $facet->setSize(50);

-- 
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.com/group/qubit-commits?hl=en.

Reply via email to