mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #668 change integrated search default target to title_content
This commit is contained in:
parent
1015ca1e30
commit
2535dcec6b
3 changed files with 5 additions and 5 deletions
|
|
@ -109,7 +109,7 @@ class integration_searchView extends integration_search
|
|||
{
|
||||
case 'document' :
|
||||
$search_target = Context::get('search_target');
|
||||
if(!in_array($search_target, array('title','content','title_content','tag'))) $search_target = 'title';
|
||||
if(!in_array($search_target, array('title','content','title_content','tag'))) $search_target = 'title_content';
|
||||
Context::set('search_target', $search_target);
|
||||
|
||||
$output = $oIS->getDocuments($target, $module_srl_list, $search_target, $is_keyword, $page, 10);
|
||||
|
|
@ -141,13 +141,13 @@ class integration_searchView extends integration_search
|
|||
$this->setTemplateFile("file", $page);
|
||||
break;
|
||||
default :
|
||||
$output['document'] = $oIS->getDocuments($target, $module_srl_list, 'title', $is_keyword, $page, 5);
|
||||
$output['document'] = $oIS->getDocuments($target, $module_srl_list, 'title_content', $is_keyword, $page, 5);
|
||||
$output['comment'] = $oIS->getComments($target, $module_srl_list, $is_keyword, $page, 5);
|
||||
$output['trackback'] = $oIS->getTrackbacks($target, $module_srl_list, 'title', $is_keyword, $page, 5);
|
||||
$output['multimedia'] = $oIS->getImages($target, $module_srl_list, $is_keyword, $page, 5);
|
||||
$output['file'] = $oIS->getFiles($target, $module_srl_list, $is_keyword, $page, 5);
|
||||
Context::set('search_result', $output);
|
||||
Context::set('search_target', 'title');
|
||||
Context::set('search_target', 'title_content');
|
||||
$this->setTemplateFile("index", $page);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<!--@end-->
|
||||
|
||||
<div id="spot">
|
||||
<form action="{getUrl()}" method="post" class="search" id="fo_is" no-error-return-url="true" >
|
||||
<form action="{getUrl()}" method="get" class="search" id="fo_is" no-error-return-url="true" >
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="IS" />
|
||||
<input type="hidden" name="where" value="{$where}" />
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
{@ $_misolSearch = 1905; }
|
||||
|
||||
<div class="searchBox">
|
||||
<form action="{getUrl()}" method="post" class="search" id="misolSearchForm" no-error-return-url="true" >
|
||||
<form action="{getUrl()}" method="get" class="search" id="misolSearchForm" no-error-return-url="true" >
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="IS" />
|
||||
<input type="hidden" name="where" value="{$where}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue