Firefox Toolbar Search - anyone game?

Non-reading activities need your help too!
Post Reply
TriciaG
LibriVox Admin Team
Posts: 43222
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.
The Panama Canal Zone during construction: Zone Policeman 88
Report of the President's Commission on Immigration and Naturalization (1953)
Christmas Lore: LINK
Proofs The Earth Isn't a Globe! LINK

Anonyme
Posts: 59
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">
https://khanacademy.org/profile/An0n3m0us | https://github.com/An0n3m0us

"Le monde est un livre dont chaque pas nous ouvre une page."
- Alphonse de Lamartine

TriciaG
LibriVox Admin Team
Posts: 43222
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. :)
The Panama Canal Zone during construction: Zone Policeman 88
Report of the President's Commission on Immigration and Naturalization (1953)
Christmas Lore: LINK
Proofs The Earth Isn't a Globe! LINK

Post Reply