View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/searches
In directory usw-pr-cvs1:/tmp/cvs-serv30268/searches
Added Files:
pg.xml
Log Message:
Project Gutenberg search from Thad Kerosky
--- NEW FILE: pg.xml ---
<search function="pg">
<name>Project Gutenberg</name>
<description>
Search the Project Gutenberg Public Domain online book collection.<br/>
<div class="helpboxDescLabels">Usage:</div>
<table class="helpboxDescTable">
<tr><td>pg <<i>book title</i>> [/author] [{/reader |
/dmoz}]</td></tr>
</table>
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td>/author</td><td> - </td><td>Search for an Author instead of a
Title</td></tr>
<tr><td>/reader</td><td> - </td><td>Search for Public Domain books on
the more friendly but less complete <a
href="http://www.pgreader.org">pgreader.org</a>.<br />
HTML formatted version of some books are also offered
here.</td></tr>
<tr><td>/dmoz</td><td> - </td><td>Search through the Project Gutenberg
book titles and authors on the Open Directory Project. The author switch is ignored.
It seems to be faster and more accurate than the official search sometimes.</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>pg Alice In Wonderland</td></tr>
<tr><td>pg Dostoevsky /author</td></tr>
<tr><td>pg Sun Tzu /author /reader</td></tr>
<tr><td>pg Man in the Iron Mask /reader</td></tr>
<tr><td>pg Time Machine /dmoz</td></tr>
</table>
</description>
<category>Other</category>
<link>http://www.gutenberg.net/</link>
<contributor>Thad Kerosky</contributor>
<form name="pgsearch" method="get" action="http://promo.net/cgi-promo/pg/t9.cgi">
<input type="hidden" name="ftpsite"
value="ftp://ibiblio.org/pub/docs/books/gutenberg/" />
<input type="hidden" name="title" value=""/>
<input type="hidden" name="author" value=""/>
</form>
<form name="readersearch" method="get"
action="http://www.pgreader.com/apps/proc_query.asp">
<input type="hidden" name="title_txt" value=""/>
<input type="hidden" name="author_txt" value=""/>
</form>
<form name="dmozsearch" method="get" action="http://search.dmoz.org/cgi-bin/search">
<input type="hidden" name="cat"
value="Arts/Literature/Electronic_Text_Archives/Project_Gutenberg"/>
<input type="hidden" name="search" value=""/>
<input type="hidden" name="all" value="no"/>
</form>
<script><![CDATA[
function pg(q)
{
var searchID = 0;
var AuthorQuery = false;
if( nullArgs("pg",q) )
return false;
else
{
var args = parseArgs(q, "reader, dmoz, author");
if( args.switches.length > 0 )
for( var j=0; j<args.switches.length; j++ )
switch( args.switches[j].name )
{
case "reader":
searchID = 1;
break;
case 'dmoz':
document.dmozsearch.search.value = args.q;
searchID = 2;
break;
case "author":
AuthorQuery = true;
break;
}
}
if (!AuthorQuery) {
document.pgsearch.title.value = args.q;
document.readersearch.title_txt.value = args.q;
}
else
{
document.pgsearch.author.value = args.q;
document.readersearch.author_txt.value = args.q;
}
switch (searchID) {
case 1:
submitForm(readersearch);
break;
case 2:
submitForm(dmozsearch);
break;
default:
submitForm(pgsearch);
break;
}
//for some reason if I don't clear these they show in the next query of a
different type.
//document.pgsearch.author.value = "";
//document.readersearch.author_txt.value = "";
//document.pgsearch.title.value = "";
//document.readersearch.title_txt.value = "";
}
]]></script>
</search>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/