Changeset 1389
- Timestamp:
- Sep 19, 2010, 1:35:09 PM (10 years ago)
- Location:
- cpc/trunk/project/apps/frontend/modules/solr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php
r1330 r1389 94 94 $this->results['docs'][$i]['titre'] = $obj->getTitre(); 95 95 $this->results['docs'][$i]['personne'] = $obj->getPersonne(); 96 $this->results['docs'][$i]['highlighting'] = preg_replace('/^'. $this->results['docs'][$i]['personne'].'/', '', implode('...', $results['highlighting'][$res['id']]['text']));96 $this->results['docs'][$i]['highlighting'] = preg_replace('/^'."$this->results['docs'][$i]['personne']".'/', '', implode('...', $results['highlighting'][$res['id']]['text'])); 97 97 98 98 } -
cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php
r1385 r1389 78 78 <div class="item"> 79 79 <h4><a href="<?php echo $record['link']; ?>"><?php echo $record['titre']; ?></a></h4> 80 < p class="photo"><a href="<?php echo $record['link']; ?>" rel="nofollow"><img height=67 width=53 src="<?php echo $record['photo']; ?>"/></a></p>80 <?php if ($record['photo']) { ?><p class="photo"><a href="<?php echo $record['link']; ?>" rel="nofollow"><img width="53" src="<?php echo $record['photo']; ?>"/></a></p><?php } ?> 81 81 <p class="intervenant"><a href="<?php echo $record['link']; ?>" rel="nofollow"><?php echo $record['personne']; ?></a></p> 82 82 <p class="content"><?php echo $record['highlighting']; ?></p>
Note: See TracChangeset
for help on using the changeset viewer.