Changeset 2630


Ignore:
Timestamp:
Feb 2, 2012, 2:23:47 AM (8 years ago)
Author:
goya
Message:

fix index api solr

Location:
cpc/trunk/project/apps/frontend/modules/solr/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/templates/csvSuccess.php

    r1467 r2630  
    11<?php if (!$tags) :?>
    2 type document;document id;url vers document;resultats <?php echo $results['start'] + 1; ?> à <?php echo $results['end'] - 1; ?> sur <?php echo $results['numFound']; ?>
     2type document;document id;url vers document;resultats <?php echo $results['start'] + 1; ?> à <?php if ($results['numFound'] == $results['end'] - 1) echo $results['end'] - 1; else echo $results['end']; ?> sur <?php echo $results['numFound']; ?>
    33
    44<?php
  • cpc/trunk/project/apps/frontend/modules/solr/templates/jsonSuccess.php

    r2618 r2630  
    2222
    2323if (!$tags) : ?>
    24 { "start": <?php echo $results['start'] + 1; ?>, "end" : <?php echo $results['end'] - 1; ?>, "last_result" : <?php echo $results['numFound'];  ?>, "results" : {<?php
     24{ "start": <?php echo $results['start'] + 1; ?>, "end" : <?php if ($results['numFound'] == $results['end'] - 1) echo $results['end'] - 1; else echo $results['end']; ?>, "last_result" : <?php echo $results['numFound'];  ?>, "results" : {<?php
    2525            $nb = 0;
    2626foreach ($results['docs'] as $record)
  • cpc/trunk/project/apps/frontend/modules/solr/templates/xmlSuccess.php

    r1467 r2630  
    22<search>
    33<start><?php echo $results['start'] + 1; ?></start>
    4 <end><?php echo $results['end'] - 1; ?></end>
     4<end><?php if ($results['numFound'] == $results['end'] - 1) echo $results['end'] - 1; else echo $results['end']; ?></end>
    55<last_result><?php echo $results['numFound']; ?></last_result>
    66<results>
Note: See TracChangeset for help on using the changeset viewer.