Author: jablko
Date: Thu Aug 27 14:11:10 2009
New Revision: 3100

Log:
Cosmetic changes

Modified:
   trunk/apps/qubit/modules/search/actions/searchAction.class.php
   trunk/apps/qubit/modules/search/templates/searchSuccess.php

Modified: trunk/apps/qubit/modules/search/actions/searchAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/searchAction.class.php      Thu Aug 
27 14:05:38 2009        (r3099)
+++ trunk/apps/qubit/modules/search/actions/searchAction.class.php      Thu Aug 
27 14:11:10 2009        (r3100)
@@ -24,7 +24,7 @@
     $culture = $this->getUser()->getCulture();
     setlocale(LC_CTYPE, $culture.'.utf-8', $culture.'@utf-8');
 
-    $this->getResponse()->setTitle('Search for \''.$request->query.'\'', true);
+    $this->getResponse()->setTitle('Search for "'.$request->query.'"', true);
 
     xfLuceneZendManager::load();
     
Zend_Search_Lucene_Analysis_Analyzer::setDefault(SearchIndex::getIndexAnalyzer());

Modified: trunk/apps/qubit/modules/search/templates/searchSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/searchSuccess.php Thu Aug 27 
14:05:38 2009        (r3099)
+++ trunk/apps/qubit/modules/search/templates/searchSuccess.php Thu Aug 27 
14:11:10 2009        (r3100)
@@ -1,6 +1,7 @@
 <?php use_helper('Text') ?>
+
 <?php if ($sf_request->query): ?>
-  <h1 class="search"><?php echo __("Search for '%1%' returned %2% results", 
array('%1%' => $sf_request->query, '%2%' => count($pager->allHits))); ?></h1>
+  <h1 class="search"><?php echo __('Search for "%1%" returned %2% results', 
array('%1%' => $sf_request->query, '%2%' => count($pager->allHits))) ?></h1>
 <?php endif; ?>
 
 <?php foreach ($informationObjects as $informationObject): ?>
@@ -9,21 +10,23 @@
     <h3><?php echo link_to(render_title($informationObject), array('module' => 
'informationobject', 'action' => 'show', 'id' => $informationObject->id)) 
?></h3>
 
     <div class="CRUD_summary">
-      <div>
-      <?php echo 
highlight_text(truncate_text($informationObject->scopeAndContent, 250), 
$sf_request->query) ?>
-      </div>
 
-    <?php if ($informationObject->getCollectionRoot()->id != 
$informationObject->id): ?>
       <div>
-      <?php echo __('Part of').': 
'.link_to(render_title($informationObject->getCollectionRoot()), array('module' 
=> 'informationobject', 'action' => 'show', 'id' => 
$informationObject->getCollectionRoot()->id)) ?>
+        <?php echo 
highlight_text(truncate_text($informationObject->scopeAndContent, 250), 
$sf_request->query) ?>
       </div>
-    <?php endif; ?>
 
-    <?php if (sfConfig::get('app_multi_repository') && 
isset($informationObject->repository)): ?>
-      <div>
-      <?php echo __('Repository').': '.link_to(render_title($repository), 
array('module' => 'repository', 'action' => 'show', 'id' => $repository->id)) ?>
-      </div>
-    <?php endif; ?>
+      <?php if ($informationObject->getCollectionRoot()->id != 
$informationObject->id): ?>
+        <div>
+          <?php echo __('Part of') ?>: <?php echo 
link_to(render_title($informationObject->getCollectionRoot()), array('module' 
=> 'informationobject', 'action' => 'show', 'id' => 
$informationObject->getCollectionRoot()->id)) ?>
+        </div>
+      <?php endif; ?>
+
+      <?php if (sfConfig::get('app_multi_repository') && 
isset($informationObject->repository)): ?>
+        <div>
+          <?php echo __('Repository') ?>: <?php echo 
link_to(render_title($repository), array('module' => 'repository', 'action' => 
'show', 'id' => $repository->id)) ?>
+        </div>
+      <?php endif; ?>
+
     </div>
 
   </div>

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

Reply via email to