| 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 |
| 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; |