FORMATTED SEARCH TESTS
TEST1:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(deadline), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="10" }%
TEST2:
%CALC{$SET(weekold, $TIMEADD($TIME(), -7, day))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(weekold), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="100" }%
TEST3:
%SEARCH{ "\.*" scope="topic" web="CMS" type="regex" date="P10h/$now" nosearch="on" nototal="on" order="modified" reverse="on" format="| [[$topic]] | $wikiusername | $createwikiusername | $date | $rev |" limit="all" }%
TEST4:
* if the page is more recent than 10-hour:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(deadline), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="10" }%
TEST5:
* if the pages is older than 10-hour:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{ "." scope="topic" web="CMS" type="regex" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) > $GET(deadline), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="10" }%
TEST6:
%SEARCH{"META:TOPICINFO.*?date" web="Sandbox" type="regex" header="| *Topic* | *Last Modified * | *Modified By* | *Created By* | *Updated* | *Revised* |" format="$percntCALC{$IF($TIME(01 Jan 2009) > $TIME($date), | Sandbox.$topic | $date | $wikiname | $wikiusername | $date | $rev |,)}$percnt" nonoise="on" order="modified" limit="5" }%
TEST7:
%CALC{$SET(deadline, $TIMEADD($TIME(), -10, hour))}%
%SEARCH{"META:TOPICINFO.*?date" web="CMS" type="regex" header="| *Topic* | *Last Modified * | *Modified By* | *Created By* | *Updated* | *Revised* |" format="$percntCALC{$IF($GET(deadline) > $TIME($date), | Sandbox.$topic | $date | $wikiname | $wikiusername | $date | $rev |,)}$percnt" nonoise="on" order="modified" limit="5" }%
TWikiUsers
%RESPONSIBLE% AreshVedaee
--
AreshVedaee - 12 Jun 2009