Open Search

The actual approach is using OpenSearch. Plugins that use the OpenSearch description syntax are compatible with IE 7 and Firefox2!

Therefore you basically have to create a xml file with a link to your wiki. It should contain the following content:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>MoinMoin Wiki Searchplugin</ShortName>
<Description>Full Search </Description>
<Tags>wiki</Tags>
<Url type="text/html" method="GET" template="http://url_to_moinmoinwiki?action=fullsearch&amp;context=180&amp;value={searchTerms}&amp;fullsearch=Text">
</Url>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://url_to_moinmoinwiki</moz:SearchForm>
<AdultContent>false</AdultContent>
</OpenSearchDescription>

Then create a html file with the folling line in the header:

<link rel="search" type="application/opensearchdescription+xml" title="MoinMoin Wiki Search (full)" href="http://url_to_opensearch.xml">

Finally visit the html file with Firefox (at least version 2.0) and click on the searchbar (where you can toggle the search engines). You will see a new point, that add's your wiki search. That's it - enjoy your search plugin. :)


old way

It is quite easy to make a special MoinMoin search plugin for Mozilla browser (see also MozillaSearchPlugin). For known plugins see http://mycroft.mozdev.org/download.html.

A simple example for a full text search for this wiki looks like this:

<search
 version="0.1"
 name="MoinMoin"
 description="MoinMoinWiki - http://moinmoin.wikiwikiweb.de"
 action="http://moinmoin.wikiwikiweb.de"
 searchForm="http://moinmoin.wikiwikiweb.de/FindPage"
 method="GET"
 queryEncoding="utf-8"
 queryCharset="utf-8"
>
<input name="sourceid" value="Mozilla-search">

<input name="value" user>
<input name="action" value="fullsearch">
<input name="context" value="160">

Put this in a textfile called moin.src, put it in the searchplugins directory (Linux: ~/.mozilla/searchplugins, Windows: C:\Programme\Mozilla Firefox\searchplugins) and restart your browser.

and add the icon moin.png in the same path as the src file.

Linux firefox path: ~/.mozilla/firefox/default/searchplugins

The documentation can be found here: http://mycroft.mozdev.org/deepdocs/quickstart.html

There should be an interpret-section like this

<interpret 
 resultListStart="<!-- RESULT LIST START -->"
 resultListEnd="<!-- RESULT LIST END -->"
 resultItemStart="<!-- RESULT ITEM START -->"
 resultItemEnd="<!-- RESULT ITEM END -->"
>

Question: Why?

There should be another section like this

<browser
 update="http://mycroft.mozdev.org/plugins/myplugin.src" 
 updateIcon="http://mycroft.mozdev.org/plugins/myplugin.png" 
 updateCheckDays="3" 
>


other approaches

There are some other (non Moin) wikis with search plugin, see http://mycroft.mozdev.org/download.html?name=wiki&submitform=Find+search+plugins


see also MozillaSideBarPanel

MoinMoin: MozillaSearchPlugin (last edited 2011-06-25 12:38:03 by ReimarBauer)