[Rt-commit] r2724 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: .
html/Elements html/Search lib/RT/Search lib/t/regression
jesse at bestpractical.com
jesse at bestpractical.com
Sat Apr 16 04:19:23 EDT 2005
Author: jesse
Date: Sat Apr 16 04:19:22 2005
New Revision: 2724
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/Tabs
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Simple.html
rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Search/Googleish.pm
rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/19quicksearch.t
Log:
r13113 at hualien: jesse | 2005-04-16 03:12:37 -0400
r13012 at hualien: jesse | 2005-04-16 02:27:27 -0400
r12759 at hualien: jesse | 2005-04-12 20:23:10 -0400
* Googleish simple search fixes
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/Tabs
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/Tabs (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/Tabs Sat Apr 16 04:19:22 2005
@@ -65,6 +65,9 @@
my $basetabs = { A => { title => loc('Homepage'),
path => '',
},
+ Ab => { title => loc('Simple Search'),
+ path => 'Search/Simple.html'
+ },
B => { title => loc('Tickets'),
path => 'Search/Build.html'
},
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Simple.html
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Simple.html (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Simple.html Sat Apr 16 04:19:22 2005
@@ -51,17 +51,24 @@
<DIV align="center">
<FORM ACTION="Simple.html" METHOD="GET">
- <input name="q" size="60"><input type="submit" Value="<&|/l&>Search</&>">
+<p>Search for tickets. Enter <b>id</b> numbers,<b>queues</b> by name, Owners by <b>username</b> and Requestors by <b>email address</b>.</p>
+<p>RT will look for anything else you enter in ticket bodies and attachments.</p>
+
+<br>
+<br>
+<div align="center">
+<input name="q" size="60"><input type="submit" Value="<&|/l&>Search</&>">
+</div>
</FORM>
</&>
<%INIT>
my $title = loc("Search for tickets");
-use RT::Search::Googlish;
+use RT::Search::Googleish;
if ( $ARGS{"q"}) {
my $tickets = new RT::Tickets( $session{'CurrentUser'} );
- my $search = RT::Search::Googlish->new(Argument => $ARGS{"q"},
+ my $search = RT::Search::Googleish->new(Argument => $ARGS{"q"},
TicketsObj => $tickets);
$m->comp( "Results.html", Query => $search->QueryToSQL());
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Search/Googleish.pm
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Search/Googleish.pm (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Search/Googleish.pm Sat Apr 16 04:19:22 2005
@@ -66,7 +66,7 @@
=cut
-package RT::Search::Googlish;
+package RT::Search::Googleish;
use strict;
use base qw(RT::Search::Generic);
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/19quicksearch.t
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/19quicksearch.t (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/19quicksearch.t Sat Apr 16 04:19:22 2005
@@ -22,13 +22,13 @@
);
ok( $id, $msg );
-use_ok("RT::Search::Quick");
+use_ok("RT::Search::Googleish");
my $tickets = RT::Tickets->new($RT::SystemUser);
-my $quick = RT::Search::Quick->new(Argument => "",
+my $quick = RT::Search::Googleish->new(Argument => "",
TicketsObj => $tickets);
my @tests = (
$queue => "Queue = '$queue'",
- "root $queue" => "Owner = 'root' AND Queue = '$queue'",
+ "root $queue" => "Queue = '$queue' AND Owner = 'root'",
"notauser $queue" => "Content LIKE 'notauser' AND Queue = '$queue'",
"notauser $queue root" => "Content LIKE 'notauser' AND Queue = '$queue'".
" AND Owner = 'root'"
More information about the Rt-commit
mailing list