Skip to content
Permalink
Browse files

added search sorting options date_created and date_hidden; fixes #476

  • Loading branch information...
following5 committed Aug 18, 2017
1 parent 0b71064 commit 35ac1c2180ce74c809368ecd15a7c634426e67b2
Showing with 4 additions and 1 deletion.
  1. +2 −0 okapi/services/caches/search/SearchAssistant.php
  2. +2 −1 okapi/services/caches/search/all/docs.xml
@@ -669,6 +669,8 @@ public function prepare_common_search_params()
case 'rcmds%':
$cl = "$X_TOPRATINGS / if($X_FOUNDS = 0, 1, $X_FOUNDS)";
break;
case 'date_created': $cl = "caches.date_created"; break;
case 'date_hidden': $cl = "caches.date_hidden"; break;
default:
throw new InvalidParam('order_by', "Unsupported field '$field'");
}
@@ -256,7 +256,8 @@
a '-' sign to indicate a descending order.</p>

<p>Currently, fields which you can order by include: <b>code</b>, <b>name</b>,
<b>founds</b>, <b>rcmds</b>, <b>rcmds%</b> (tell us if you want more).</p>
<b>founds</b>, <b>rcmds</b>, <b>rcmds%</b>, <b>date_created</b>, <b>date_hidden</b>
(tell us if you want more).</p>

<p><b>Examples:</b></p>
<ul>

0 comments on commit 35ac1c2

Please sign in to comment.
You can’t perform that action at this time.