Firefox Toolbar Search - anyone game?

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

Post by TriciaG »

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.
Serial novel: The Wandering Jew
Medieval England meets Civil War Americans: Centuries Apart
Humor: My Lady Nicotine
Anonyme
Posts: 12
Joined: October 17th, 2019, 11:23 am

Post by Anonyme »

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: 60512
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG »

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

I'll see if we can add this to our pages. :)
Serial novel: The Wandering Jew
Medieval England meets Civil War Americans: Centuries Apart
Humor: My Lady Nicotine
notartom
Posts: 382
Joined: September 14th, 2012, 4:34 pm

Post by notartom »

Post Reply