Revision 67a5cafa
Added by Andreas Kohlbecker about 7 years ago
modules/cdm_dataportal/cdm_dataportal.search.php | ||
---|---|---|
522 | 522 |
|
523 | 523 |
$form_params['query'] = trim($_REQUEST['query']); |
524 | 524 |
|
525 |
if($search_endpoint == CDM_WS_PORTAL_TAXON_SEARCH){ |
|
526 |
// lucene based taxon search always as phrase search: enclose it in " |
|
527 |
if(!str_beginsWith($form_params['query'], '"')){ |
|
528 |
$form_params['query'] = '"' . $form_params['query']; |
|
529 |
} |
|
530 |
if(!str_endsWith($form_params['query'], '"')){ |
|
531 |
$form_params['query'] = $form_params['query'] . '"' ; |
|
532 |
} |
|
533 |
} |
|
534 | 525 |
|
535 | 526 |
// --- handle geographic range |
536 | 527 |
// Split of geographic range. |
... | ... | |
569 | 560 |
|
570 | 561 |
// ----------- further processing that must not be store in the session --------- // |
571 | 562 |
|
563 |
if($search_endpoint == CDM_WS_PORTAL_TAXON_SEARCH){ |
|
564 |
// lucene based taxon search always as phrase search: enclose it in " |
|
565 |
if(!str_beginsWith($form_params['query'], '"')){ |
|
566 |
$form_params['query'] = '"' . $form_params['query']; |
|
567 |
} |
|
568 |
if(!str_endsWith($form_params['query'], '"')){ |
|
569 |
$form_params['query'] = $form_params['query'] . '"' ; |
|
570 |
} |
|
571 |
} |
|
572 |
|
|
572 | 573 |
// If the 'NONE' classification has been chosen (advanced search) |
573 | 574 |
// delete the tree information to avoid unknown uuid exceptions in the |
574 | 575 |
// cdm service. |
Also available in: Unified diff
ref #4223 dynamically added phrase search parentheses must not be stored in the SESSION