Changeset 1687
- Timestamp:
- Oct 5, 2010, 7:47:53 PM (11 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php
r1678 r1687 205 205 $res = $this->results['docs'][$i]; 206 206 $obj = $res['object']; 207 $objclass = get_class($obj); 207 208 $this->results['docs'][$i]['link'] = $obj->getLink(); 208 if ( get_class($obj)=== 'Commentaire')209 if ($objclass === 'Commentaire') 209 210 $this->results['docs'][$i]['link'] .= "#commentaire_".$obj->id; 210 211 $this->results['docs'][$i]['photo'] = $this->getPhoto($obj); 211 212 $this->results['docs'][$i]['titre'] = $obj->getTitre(); 212 switch(get_class($obj)) { 213 case 'Section': 214 $this->results['docs'][$i]['titre'] = "Dossier : ".$this->results['docs'][$i]['titre']; 215 case 'Commentaire': 216 $this->results['docs'][$i]['titre'] = "Commentaire ".preg_replace('/^./', strtolower($this->results['docs'][$i]['titre']{0}), $this->results['docs'][$i]['titre']); 217 } 213 if ($objclass === 'Section') 214 $this->results['docs'][$i]['titre'] = "Dossier : ".$this->results['docs'][$i]['titre']; 215 else if ($objclass === 'Commentaire') 216 $this->results['docs'][$i]['titre'] = "Commentaire ".preg_replace('/^./', strtolower($this->results['docs'][$i]['titre']{0}), $this->results['docs'][$i]['titre']); 218 217 $this->results['docs'][$i]['personne'] = $obj->getPersonne(); 219 218 if (isset($results['highlighting'][$res['id']]['text'])) { -
cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php
r1683 r1687 119 119 return lien; 120 120 } 121 121 <?php if ($vue != "jour") : ?> 122 122 $(document).ready(function() { 123 123 $(".date li").each(function() { … … 170 170 }); 171 171 }); 172 <?php endif; ?> 172 173 //--> 173 174 </script> … … 216 217 </div> 217 218 <?php } 218 endif;219 219 ///////////////////// FIN SANS AJAX ///////////////////// 220 220 ?> … … 235 235 <td><a href="<?php $newargs_rss = $selected; $newargs_rss['format']['rss'] = 'rss'; if (isset($newargs_rss['date'])) unset($newargs_rss['date']); if (isset($newargs_rss['sort'])) unset($newargs_rss['sort']); echo url_for(url_search($query, $newargs_rss)); ?>"><?php echo image_tag('xneth/rss_obliq.png', 'alt="Flux rss"'); ?></a><br/><a href="<?php echo url_for(url_search($query, $newargs_rss)); ?>">par RSS</a></td> 236 236 </tr></table></div></div> 237 <?php 237 <?php endif; 238 238 global $facetName2HumanName; 239 239 $facetName2HumanName = array( -
cpc/trunk/project/web/css/xneth/style.css
r1685 r1687 39 39 border-bottom: 1px solid #E0E0DD; 40 40 width: 650px; 41 max-height: 200px;42 min-height: 80px;41 max-height: 80px; 42 min-height: 70px; 43 43 margin: 0; 44 44 padding: 0;
Note: See TracChangeset
for help on using the changeset viewer.