Project

General

Profile

« Previous | Next » 

Revision a15edbb0

Added by Andreas Kohlbecker over 5 years ago

temp. solution to avoid problem with dot characters in freetext search

View differences:

modules/cdm_dataportal/cdm_dataportal.search.php
550 550
  // ----------- further processing that must not be store in the session --------- //
551 551

  
552 552
  if($search_endpoint == CDM_WS_PORTAL_TAXON_SEARCH){
553
    // HACK to allow using dot characters
554
    $form_params['query'] = str_replace('.', '*', $form_params['query']);
553 555
    // lucene based taxon search always as phrase search if the query string contains a whitespace --> enclose it in "
554 556
    if(preg_match("/\s+/", $form_params['query'])){
555 557
      if(!str_beginsWith($form_params['query'], '"')){

Also available in: Unified diff