OpenSearch allows easily adding a search provider to Firefox 2+ and IE7+. This unobtrusive patch adds support for easily adding the ability to search your PGV site from your browser's search field. More information can be seen at
http://en.wikipedia.org/wiki/Opensearch
Simply add the attached opensearch.php to your PGV root install and the following line to your theme's header.php for auto discovery:
<link rel="search" type="application/opensearchdescription+xml" title="<?php print $SERVER_URL . $GEDCOMS[$GEDCOM]["title"] ?>" href="opensearch.php" />
As far as I can tell from the spec, absolute URLs are supposed to be used, and that is how I implemented it.
Comments welcome. If there are no complaints, I will add it to SVN.
The header link line should be corrected to
<link rel="search" type="application/opensearchdescription+xml" title="<?php print $GEDCOMS[$GEDCOM]["title"]; ?>" href="<?php print $SERVER_URL . "opensearch.php"; ?>" />
This was added to SVN, but so far only activated for the Ocean theme.
Updated versions are available in SVN the following. This adds auto complete. Please note that testing among developers pointed to some unknown issue that may cause your PGV install to freeze, and the auto discovery link may be removed before we release the next version.
http://phpgedview.svn.sourceforge.net/viewvc/phpgedview/trunk/phpGedView/opensearch.php?sortby=date&view=log
and
http://phpgedview.svn.sourceforge.net/viewvc/phpgedview/trunk/phpGedView/autocomplete.php?sortby=date&view=log