/[drupal]/contributions/modules/apachesolr/apachesolr_search.module
ViewVC logotype

Diff of /contributions/modules/apachesolr/apachesolr_search.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.6.2.118 by robertDouglass, Fri Nov 20 10:25:43 2009 UTC revision 1.1.2.6.2.119 by robertDouglass, Fri Nov 20 17:19:05 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: apachesolr_search.module,v 1.1.2.6.2.117 2009/11/06 10:58:54 robertDouglass Exp $  // $Id: apachesolr_search.module,v 1.1.2.6.2.118 2009/11/20 10:25:43 robertDouglass Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 603  function apachesolr_search_block($op = ' Line 603  function apachesolr_search_block($op = '
603                  $link = theme('apachesolr_facet_link', $term->name, $new_query->get_path(), $options, $count, $active, $response->response->numFound);                  $link = theme('apachesolr_facet_link', $term->name, $new_query->get_path(), $options, $count, $active, $response->response->numFound);
604                }                }
605                $countsort = $count == 0 ? '' : 1 / $count;                $countsort = $count == 0 ? '' : 1 / $count;
606                  $countsort += .000001;
607                  $countsort = number_format($countsort, 6);
608    
609                // if numdocs == 1 and !active, don't add.                // if numdocs == 1 and !active, don't add.
610                if ($response->response->numFound > 1 || $active) {                if ($response->response->numFound > 1 || $active) {
611                  $terms[$term->vid][$active ? $countsort . $term->name : 1 + $countsort . $term->name] = $link;                  $terms[$term->vid][$active ? $countsort . $term->name : 1 + $countsort . $term->name] = $link;

Legend:
Removed from v.1.1.2.6.2.118  
changed lines
  Added in v.1.1.2.6.2.119

  ViewVC Help
Powered by ViewVC 1.1.3