Changeset 1446
- Timestamp:
- Sep 26, 2010, 11:52:11 PM (10 years ago)
- Location:
- cpc/trunk/project/apps/frontend/modules/solr
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php
r1444 r1446 73 73 $date = $request->getParameter('date'); 74 74 $from = $request->getParameter('from'); 75 $ rss = $request->getParameter('rss');75 $type = $request->getParameter('type'); 76 76 77 if ($rss) { 77 if ($type) { 78 sfConfig::set('sf_web_debug', false); 79 } 80 81 if ($type == 'rss') { 78 82 $this->setTemplate('rss'); 79 83 $this->feed = new sfRssFeed(); … … 82 86 $date = null; 83 87 $from = null; 88 } 89 90 if ($type == 'json') { 91 $this->getResponse()->setContentType('text/plain; charset=utf-8'); 92 $this->setTemplate('json'); 93 $this->setLayout(false); 94 } 95 96 if ($type == 'xml') { 97 $this->getResponse()->setContentType('text/xml; charset=utf-8'); 98 $this->setTemplate('xml'); 99 $this->setLayout(false); 100 } 101 102 if ($type == 'csv') { 103 $this->getResponse()->setContentType('application/csv; charset=utf-8'); 104 $this->setTemplate('csv'); 105 $this->setLayout(false); 84 106 } 85 107 -
cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php
r1437 r1446 38 38 </div> 39 39 <div class="nb_results"> 40 <p>Résultats <?php echo $results['start']+1; ?> à <?php echo $results['end']; ?> sur <?php echo $results['numFound'] ; ?> triés par <?php echo $sort_type; ?></p>40 <p>Résultats <?php echo $results['start']+1; ?> à <?php echo $results['end']; ?> sur <?php echo $results['numFound'] - 1; ?> triés par <?php echo $sort_type; ?></p> 41 41 </div> 42 42 <div class="facets">
Note: See TracChangeset
for help on using the changeset viewer.