https://rt-wiki.bestpractical.com/index.php?title=OpenSearchPluginForRT&feed=atom&action=historyOpenSearchPluginForRT - Revision history2024-03-28T15:10:29ZRevision history for this page on the wikiMediaWiki 1.37.2https://rt-wiki.bestpractical.com/index.php?title=OpenSearchPluginForRT&diff=2484&oldid=prevAdmin: 3 revisions imported2016-04-06T20:15:51Z<p>3 revisions imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:15, 6 April 2016</td>
</tr>
<!-- diff cache key bestpractical_mediawiki1459887241:diff::1.12:old-2483:rev-2484 -->
</table>Adminhttps://rt-wiki.bestpractical.com/index.php?title=OpenSearchPluginForRT&diff=2483&oldid=prev193.62.202.241 at 15:18, 11 August 20112011-08-11T15:18:55Z<p></p>
<p><b>New page</b></p><div>Firefox 2 supports the [http://www.opensearch.org/Specifications/OpenSearch/1.1/Draft_3 OpenSearch] architecture for search plugins (this is also reportedly supported by IE7).<br />
<br />
Here is an example plugin that works with Firefox. It hooks into RT's Simple search:<br />
<br />
'''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.'''<br />
<br />
'''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.'''<br />
<br />
'''RT will look for anything else you enter in ticket subjects.'''<br />
<br />
Save this text to an XML file (e.g. rt.xml) and copy it to your Firefox search plugins directory and restart Firefox. Be sure and change "some.rt-server.com" to your server's name and add in any site prefix. Likewise, change "[mailto:my.name@some.rt-server.com my.name@some.rt-server.com]" to your email address and "My Name" to your name. Finally, if you use a different favicon than the default one, you may want to change it in the &lt;Image&gt; line.<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"<br />
xmlns:moz="http://www.mozilla.org/2006/browser/search/"&gt;<br />
&lt;ShortName&gt;RT Search&lt;/ShortName&gt;<br />
&lt;Description&gt;Search Request Tracker from Firefox&lt;/Description&gt;<br />
&lt;Url type="text/html" method="get" template="http://some.rt-server.com/Search/Simple.html?q={searchTerms}"/&gt;<br />
&lt;Contact&gt;my.name@some.rt-server.com&lt;/Contact&gt;<br />
&lt;Image width="16" height="16"&gt;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAB3RJTUUH1wkFCwsO8TgPWQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAMVJREFUeNrtkWsRwyAQhIkTJOAgJwEJddA6AAl1kDqIhJNQCUhAwvWWPKZNmCb0d3fCkMzw7e0SY36Q9z6IMfKIUZph51zP1kpSA+9caDZgfTD9QsTNMCDAT++/RoezbJdmFcBJ41tr+x1FRAGXg8NbMXMB0bsKQ4Ml0dESdeWcVxjvgEvvKU1dV71Rng8CyONYDO43J2+9j38bEqS5LxNNOww1ySkDHELnJc2gO76h0wZL91FrpJTW+6gZdDWDgwGd+etDL7I6qxdht2L3AAAAAElFTkSuQmCC&lt;/Image&gt;<br />
&lt;Developer&gt;My Name&lt;/Developer&gt;<br />
&lt;InputEncoding&gt;UTF-8&lt;/InputEncoding&gt;<br />
&lt;moz:SearchForm&gt;http://som.rt-server.com/Search/Build.html&lt;/moz:SearchForm&gt;<br />
&lt;/OpenSearchDescription&gt;<br />
<br />
Tested with RT 3.6.3 and Firefox 2.0.0.6 -- [[JoeCasadonte]]<br />
<br />
'''Autodiscovery'''<br />
<br />
Chrome and recent Firefox/IE can do search autodiscovery by having the above code served from the web server, and adding a link tag to the page header.<br />
<br />
Save the above XML file as (say) ..../local/html/NoAuth/OpenSearch.xml<br />
<br />
Create ..../local/html/Elements/Header as a copy of ..../share/html/Elements/Header and add this fragment near the other "link rel" definitions:<br />
<br />
<br />
<br />
<link rel="search" type="application/opensearchdescription+xml" <br />
href="https://some.rt-server.com/NoAuth/OpenSearch.xml"<br />
title="RT" /><br />
<br />
<br />
<br />
Restart Apache to get the Mason cache refreshed.</div>193.62.202.241