#530 Open Search Provider for Your PGV Site

open
nobody
None
5
2009-04-23
2009-04-23
KosherJava
No

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.

Discussion

  • KosherJava
    KosherJava
    2009-04-23

     
    Attachments
  • KosherJava
    KosherJava
    2009-04-24

    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.