Project

General

Profile

« Previous | Next » 

Revision 61b6ee11

Added by Andreas Kohlbecker about 11 years ago

searching on all classifications now possible and fixing some bugs related to #2896

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.page.theme
472 472
    }
473 473
  }
474 474
  $out .= '<form name="pageoptions"><input id="showThumbnails" type="checkbox" name="showThumbnails" ' . (do_showThumbnails() == 1 ? 'checked="checked"' : '') . '> ' . t('Show Thumbnails') . '</form>';
475
  $out .= '</div>';
475
  $out .= '</div>';
476
  $out .= '<div id="search-summary">' . t('results for') . ' ';
477
  $classification = cdm_dataportal_searched_in_classification();
478
  if ($classification != NULL) {
479
    $out .=  $classification->titleCache ;
480
  } else {
481
   $out .= t('any classification');
482
  }
483
  $out .= ':</div>';
476 484

  
477 485
  // List results.
478 486
  if (isset($pager->records) && count($pager->records) > 0) {
479 487
    $out .= '<div id="search_results">';
480
    $out .= theme('cdm_list_of_taxa', array('records' => $pager->records, 'freetextSearchResults' => $freetextSearchResults));
488
    $out .= theme('cdm_list_of_taxa',
489
        array(
490
          'records' => $pager->records,
491
          'freetextSearchResults' => $freetextSearchResults,
492
          'show_classification' => $classification === NULL
493
        )
494
      );
481 495
    $out .= '</div>';
482 496
    $out .= theme('cdm_pager', array(
483 497
        'pager' => $pager,

Also available in: Unified diff