Firefox Toolbar Search - anyone game?

Non-reading activities need your help too!
Post Reply
TriciaG
LibriVox Admin Team
Posts: 49760
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG » August 4th, 2014, 8:58 am

In the previous iteration of the LibriVox site, there was an add-on to the Firefox search bar for LibriVox. Are there any programmers out there who are willing to take on the development of one for the new (current) site? I would think that the basic search (searching titles, authors, and readers for the search terms) would be sufficient.
We're MARCHing to the finish line! Join our project cleanup month initiative. Details HERE

Anonyme
Posts: 15
Joined: October 17th, 2019, 11:23 am
Location: Somewhere in the Milky Way

Post by Anonyme » October 17th, 2019, 1:28 pm

OpenSearch seems to be a popular pick. It's really simple too.

Here's the guide I followed:
https://developer.mozilla.org/en-US/docs/Web/OpenSearch

And here's the XML file which will be hosted on the LibriVox website:

Code: Select all

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>LibriVox</ShortName>
  <Description>LibriVox Search</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image width="16" height="16" type="image/x-icon">https://librivox.org/favicon.ico</Image>
  <Url type="text/html" template="https://librivox.org/search?q={searchTerms}&amp;search_form=advanced"/>
</OpenSearchDescription>
It works if one was to search for an author, book or reader.

For Firefox to detect the search plugin, place this code within the <head> tag on any page (like the main page and/or the search page):

Code: Select all

<link rel="search" type="application/opensearchdescription+xml"
      title="LibriVox" href="https://librivox.org/LINK TO FILE.xml">
"Le monde est un livre dont chaque pas nous ouvre une page."
- Alphonse de Lamartine

https://github.com/An0n3m0us

TriciaG
LibriVox Admin Team
Posts: 49760
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG » October 17th, 2019, 2:38 pm

Wow - pulled up a 5 year old request! Thanks!

I'll see if we can add this to our pages. :)
We're MARCHing to the finish line! Join our project cleanup month initiative. Details HERE

notartom
Posts: 358
Joined: September 14th, 2012, 4:34 pm

Post by notartom » July 11th, 2020, 6:54 am


Post Reply