X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fhtml%2FSearch%2FSimple.html;h=c531bd1e8d39c8451445031773719599df771807;hb=fc6209f398899f0211cfcedeb81a3cd65e04a941;hp=cdffc4c46bf2e5a286ed2d142bd60a0a9bacf04f;hpb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;p=freeside.git diff --git a/rt/html/Search/Simple.html b/rt/html/Search/Simple.html index cdffc4c46..c531bd1e8 100644 --- a/rt/html/Search/Simple.html +++ b/rt/html/Search/Simple.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -24,7 +24,7 @@ %# along with this program; if not, write to the Free Software %# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA %# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -51,10 +51,12 @@ Title => $title &> +<& /Elements/Callback, _CallbackName => 'PreForm', %ARGS &> +
-

<&|/l&>Search for tickets. Enter id numbers, queues by name, Owners by username and Requestors by email address. RT will look for anything else you enter in ticket bodies and attachments.

+

<&|/l&>Search for tickets. Enter id numbers, queues by name, Owners by username and Requestors by email address.

<&|/l&>Searching the full text of every ticket can take a long time, but if you need to do it, you can search for any word in full ticket history for any word by typing fulltext:word.

<&|/l&>RT will look for anything else you enter in ticket subjects.

@@ -64,6 +66,11 @@
+ +
+ +<& /Elements/Callback, _CallbackName => 'PostForm', %ARGS &> +
<%INIT> @@ -78,8 +85,15 @@ if ($q) { if ($q =~ /^(\d+)$/) { RT::Interface::Web::Redirect($RT::WebURL."/Ticket/Display.html?id=".$q); } - my $search = RT::Search::Googleish->new(Argument => $q, - TicketsObj => $tickets); + + my %args = ( + Argument => $q, + TicketsObj => $tickets, + ); + + $m->comp('/Elements/Callback', %ARGS, _CallbackName => 'SearchArgs', args => \%args); + + my $search = RT::Search::Googleish->new(%args); $m->comp( "Results.html", Query => $search->QueryToSQL() ); $m->comp( "/Elements/Footer" );