Ejemplo n.º 1
0
<?php

foreach ($results->response->docs as $doc) {
    ?>

  <!-- Document. -->
  <div class="result">

    <!-- Header. -->
    <div class="result-header">

      <!-- Record URL. -->
      <?php 
    $url = SolrSearch_Helpers_View::getDocumentUrl($doc);
    ?>

      <!-- Title. -->
      <H4 style="margin-bottom:5px">
      <a href="<?php 
    echo $url;
    ?>
" class="result-title"><?php 
    $title = is_array($doc->title) ? $doc->title[0] : $doc->title;
    if (empty($title)) {
        $title = '<i>' . __('Untitled') . '</i>';
    }
    echo $title;
    ?>
</a>
      </H4>
    </div>
Ejemplo n.º 2
0
    		  </li>
    		<?php 
}
?>
    	</ul>
	
    	<?php 
if ($count == 0) {
    echo '<span>Geen filters geselecteerd</span>';
}
?>
    </div>

    <?php 
echo SolrSearch_Helpers_View::visualize_results_functions($_REQUEST);
?>
</div>

<!-- Facets. -->
<?php 
$applied_freesearch = SolrSearch_Helpers_Facet::parseFreeSearch();
$applied_facets = SolrSearch_Helpers_Facet::parseFacets();
$applied_searches = array_merge($applied_freesearch, $applied_facets);
//reordering facets to pre fill the form based on URL arguments
$ordered_applied_facets = array();
foreach ($applied_searches as $applied_facet) {
    // change into free text search instead of facet string search
    $af = str_replace("_t", "", $applied_facet[0]);
    $af_t = preg_replace('/_s_admin$/i', '_t_admin', $af);
    $af_t = preg_replace('/_s$/i', '_t', $af_t);
Ejemplo n.º 3
0
<?php

foreach ($results->response->docs as $doc) {
    ?>

  <!-- Document. -->
  <div class="result">

    <!-- Header. -->
    <div class="result-header">

      <!-- Record URL. -->
      <?php 
    $url = SolrSearch_Helpers_View::getDocumentUrl($doc, "admin");
    ?>

      <!-- Title. -->
      <H4 style="margin-bottom:5px">
      <a href="<?php 
    echo $url;
    ?>
" class="result-title"><?php 
    $title = is_array($doc->title) ? $doc->title[0] : $doc->title;
    if (empty($title)) {
        $title = '<i>' . __('Untitled') . '</i>';
    }
    echo $title;
    ?>
</a>
      </H4>
    </div>