Author: sevein
Date: Tue Apr 17 16:52:24 2012
New Revision: 11461

Log:
Pass Elastica_Result object

Modified:
   branches/2.0/apps/qubit/modules/search/templates/autocompleteSuccess.php

Modified: 
branches/2.0/apps/qubit/modules/search/templates/autocompleteSuccess.php
==============================================================================
--- branches/2.0/apps/qubit/modules/search/templates/autocompleteSuccess.php    
Tue Apr 17 16:47:25 2012        (r11460)
+++ branches/2.0/apps/qubit/modules/search/templates/autocompleteSuccess.php    
Tue Apr 17 16:52:24 2012        (r11461)
@@ -7,7 +7,7 @@
       <ul>
 
         <?php foreach ($descriptions->getResults() as $hit): ?>
-          <?php $doc = build_i18n_doc($hit->getData()) ?>
+          <?php $doc = build_i18n_doc($hit) ?>
           <li><?php echo link_to(($doc[$sf_user->getCulture()]['title'] ?: 
$doc[$doc['sourceCulture']]['title']), array('module' => 'informationobject', 
'slug' => $doc['slug'])) ?></li>
           <!-- TODO: include description level logic; performance impact? -->
         <?php endforeach; ?>
@@ -28,7 +28,7 @@
       <ul>
 
         <?php foreach ($subjects->getResults() as $hit): ?>
-          <?php $doc = build_i18n_doc($hit->getData()) ?>
+          <?php $doc = build_i18n_doc($hit) ?>
           <li><?php echo link_to(($doc[$sf_user->getCulture()]['name'] ?: 
$doc[$doc['sourceCulture']]['name']), array('module' => 'search', 'action' => 
'index', 'subjects_id' => $hit->getId())) ?></li>
         <?php endforeach; ?>
 
@@ -48,7 +48,7 @@
       <ul>
 
         <?php foreach ($repositories->getResults() as $hit): ?>
-          <?php $doc = build_i18n_doc($hit->getData()) ?>
+          <?php $doc = build_i18n_doc($hit) ?>
           <li><?php echo 
link_to(($doc[$sf_user->getCulture()]['authorizedFormOfName'] ?: 
$doc[$doc['sourceCulture']]['authorizedFormOfName']), array('module' => 
'repository', 'slug' => $doc['slug'])) ?></li>
         <?php endforeach; ?>
 
@@ -68,7 +68,7 @@
       <ul>
 
         <?php foreach ($actors->getResults() as $hit): ?>
-          <?php $doc = build_i18n_doc($hit->getData()) ?>
+          <?php $doc = build_i18n_doc($hit) ?>
           <li><?php echo 
link_to(($doc[$sf_user->getCulture()]['authorizedFormOfName'] ?: 
$doc[$doc['sourceCulture']]['authorizedFormOfName']), array('module' => 
'search', 'action' => 'index', 'names_id' => $hit->getId())) ?></li>
         <?php endforeach; ?>
 

-- 
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