$ordering = $this->getState('ordering');
$match = $this->getState('match');
- if ($ordering == 'relevancy') {
- } else if ($ordering == 'newest') {
- } else if ($ordering == 'older') {
- } else if ($ordering == 'title') {
- }
-
if ($match == 'all') {
udm_set_agent_param ($this->_agent, UDM_PARAM_SEARCH_MODE, UDM_MODE_ALL);
} else if ($match == 'any') {
$npage = $limitstart / $limit;
udm_set_agent_param ($this->_agent, UDM_PARAM_PAGE_NUM, $npage);
+ if ($ordering == 'relevancy') {
+ udm_set_agent_param_ex ($this->_agent, 's', 'RDS');
+ } else if ($ordering == 'newest') {
+ udm_set_agent_param_ex ($this->_agent, 's', 'DRS');
+ } else if ($ordering == 'older') {
+ udm_set_agent_param_ex ($this->_agent, 's', 'dRS');
+ } else if ($ordering == 'title') {
+ udm_set_agent_param_ex ($this->_agent, 's', 'SRD');
+ udm_set_agent_param_ex ($this->_agent, 'su', 'title');
+ }
+
$mResult = udm_find ($this->_agent, $keyword);
$this->_total = udm_get_res_param ($mResult, UDM_PARAM_FOUND);