Oh dear. I left some debugging alerts. Attached id the correct ggd.
Sorry for the disturbance.
MLL a écrit :
Hello guys, before the release, as I still have no CVS access, can
someone upload these for me please? Here's the changelog:
* ggd: now with most of the advanced search switches
* mb: Search the online user-contributed MusicBrainz music database
TIA :)
MLL
------------------------------------------------------------------------
<search function="ggd">
<name>Google Desktop Search</name>
<category>Search the Web</category>
<contributor>Shawn K. Hall - V2 by MLL</contributor>
<email>[EMAIL PROTECTED]</email>
<link>http://desktop.google.com/</link>
<description>
Search Google Desktop Search from DQSD<br /><br />
Since this search requires access to a 'google desktop key' that is unique to your
installation, you must first set a variable within your localprefs.js file as so:<br
/><br />
<b>ggd_GoogleKey = "123456789";</b><br />
If you do not have this variable setup in your localprefs.js file it will direct you to
a page on my site that will help you determine what your Google Desktop Key is. Please
remember to reload DQSD (!) after changing variables or settings in localprefs.js!<br
/><br />
As with any other search that relies upon other services or applications, you <b>must</b> have the
related application/service installed. Please ensure you actually have <i>Google Desktop Search</i>
installed and running before requesting assistance.<br /><br />
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr>
<td> [term] </td>
<td colspan="2"> Search Google Desktop on [term]. Hints: may
include:<ul>
<li>-[avoid_this_term]</li>
<li>from:[mail_sender] <i>(/email implied)</i></li>
<li>to:[mail_recipient] <i>(/email implied)</i></li>
<li>under:"[path_to_search]" <i>(/files implied)</i></li></ul>
</td>
</tr>
<tr><td>/emails</td><td> - </td><td>Search in MS Outlook emails.</td></tr>
<tr><td>/files</td><td> - </td><td>Search in files. See the /type switch
below.</td></tr>
<tr><td>/type:[ext1]|[ext2]|...</td><td> - </td><td>Search files with the extension [ext1] or
[ext2] or... <i>(/files implied)</i></td></tr>
<tr><td>/web_history</td><td> - </td><td>Search in web history.</td></tr>
<tr><td>/chats</td><td> - </td><td>Search in Chats.</td></tr>
<tr><td colspan="3">Search in <b>MS Outlook items</b>:</td></tr>
<tr><td>/appointments</td><td> - </td><td>Search in MS Outlook
appointments.</td></tr>
<tr><td>/contacts</td><td> - </td><td>Search in MS Outlook
contacts.</td></tr>
<tr><td>/journal</td><td> - </td><td>Search in MS Outlook
journal.</td></tr>
<tr><td>/notes</td><td> - </td><td>Search in MS Outlook notes.</td></tr>
<tr><td>/tasks</td><td> - </td><td>Search in MS Outlook tasks.</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td> ggd dqsd search </td></tr>
<tr><td> ggd asp design </td></tr>
<tr><td> ggd john doe /contacts</td></tr>
</table>
</description>
<comment>
This is pretty spiffy, eh?
<mll>A lot ;)</mll>
</comment>
<form name="ggdf" method="GET"
action="">
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="adv" value="1" />
<input type="hidden" name="type" value="cat_all" />
<input type="hidden" name="ot" value="" />
<input type="hidden" name="file" value="" />
<input type="hidden" name="has" value="" />
</form>
<script><![CDATA[
function ggd(q){
var args = parseArgs(q, "emails, files, web_history, chats, appointments,
contacts, journal, notes, tasks, type");
if( nullArgs( "ggd", args.q ) ){ return false; }
if(typeof ggd_googleKey == "undefined"){
openSearchWindow("http://reliableanswers.com/x/dqsd/ggd-discover.asp");
}else{
document.ggdf.action = "http://127.0.0.1:4664/search&s=" +
ggd_googleKey;
document.ggdf.has.value = args.q;
alert(args.switch_val["type"]);
alert(document.ggdf.file.value);
if( args.switches.length > 0 )
{
for( var j=0; j<args.switches.length; j++ )
{
switch( args.switches[j].name )
{
case "emails":
document.ggdf.type.value = "email";
break;
case "files":
document.ggdf.type.value = "cat_files";
break;
case "type":
document.ggdf.type.value = "cat_files";
document.ggdf.file.value = args.switch_val["type"];
break;
case "web_history":
document.ggdf.type.value = "web";
break;
case "chats":
document.ggdf.type.value = "im";
break;
//MS OL items
case "contacts":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "contacts";
break;
case "appointments":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "calendar";
break;
case "tasks":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "tasks";
break;
case "notes":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "note";
break;
case "journal":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "journal";
break;
default:
nullArgs("ggd","?");
return false;
break;
}
}
}
submitForm(ggdf);
//reset the file field
document.ggdf.file.value = "";
}
}
]]></script>
</search>
------------------------------------------------------------------------
<search function="mb">
<name>MusicBrainz.org</name>
<category>Entertainment</category>
<contributor>MLL</contributor>
<link>http://musicbrainz.org/newsearch.html?search=dutr&table=Artist</link>
<description>
Search the online user-contributed MusicBrainz music database
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr style="font-weight:bolder;"><td>/artist</td><td> - </td><td>search for an artist
name (default)</td></tr>
<tr><td>/album</td><td> - </td><td>search for an album name</td></tr>
<tr><td>/track</td><td> - </td><td>search for a track name</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>mb bach</td></tr>
<tr><td>mb ting /album</td></tr>
<tr><td>mb jennifer she said /track</td></tr>
</table>
</description>
<form name="mbf"
method="get"
action="http://musicbrainz.org/search/textsearch.html">
<input type="hidden" name="limit" value="25" />
<input type="hidden" name="type" value="" />
<input type="hidden" name="query" value="" />
</form>
<script><![CDATA[
function mb(q)
{
document.mbf.type.value = "artist";
var args = parseArgs(q, "artist, album, track");
if( nullArgs("mb", args.q) ) return;
//eliminate cases where you got more than 1 switch
if( args.switches.length > 1 )
{
nullArgs( "mb", "?" );
return false;
}
if ( args.switches.length == 1 )
{
//albums correction due to new search filed name "release"
if ( args.switches[0].name=="album" ) {args.switches[0].name =
"release"; }
document.mbf.type.value = args.switches[0].name;
}
// Force UTF-8 encoding
args.q = utf8(args.q);
document.mbf.query.value = args.q;
submitForm(mbf);
}
]]></script>
<copyright>
The following applies if this file is included and distributed with Dave's
Quick Search Deskbar:
Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public
License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
<created_by>
This search file was initially created on 12/04/04 at 18:12:35
by Dave's Quick Search Deskbar Search Wizard version 1.3,
Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU
General Public License, Version 2
</created_by>
</search>
<search function="ggd">
<name>Google Desktop Search</name>
<category>Search the Web</category>
<contributor>Shawn K. Hall - V2 by MLL</contributor>
<email>[EMAIL PROTECTED]</email>
<link>http://desktop.google.com/</link>
<description>
Search Google Desktop Search from DQSD<br /><br />
Since this search requires access to a 'google desktop key' that is unique to your installation, you must first set a variable within your localprefs.js file as so:<br /><br />
<b>ggd_GoogleKey = "123456789";</b><br />
If you do not have this variable setup in your localprefs.js file it will direct you to a page on my site that will help you determine what your Google Desktop Key is. Please remember to reload DQSD (!) after changing variables or settings in localprefs.js!<br /><br />
As with any other search that relies upon other services or applications, you <b>must</b> have the related application/service installed. Please ensure you actually have <i>Google Desktop Search</i> installed and running before requesting assistance.<br /><br />
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr>
<td> [term] </td>
<td colspan="2"> Search Google Desktop on [term]. Hints: may include:<ul>
<li>-[avoid_this_term]</li>
<li>from:[mail_sender] <i>(/email implied)</i></li>
<li>to:[mail_recipient] <i>(/email implied)</i></li>
<li>under:"[path_to_search]" <i>(/files implied)</i></li></ul>
</td>
</tr>
<tr><td>/emails</td><td> - </td><td>Search in MS Outlook emails.</td></tr>
<tr><td>/files</td><td> - </td><td>Search in files. See the /type switch below.</td></tr>
<tr><td>/type:[ext1]|[ext2]|...</td><td> - </td><td>Search files with the extension [ext1] or [ext2] or... <i>(/files implied)</i></td></tr>
<tr><td>/web_history</td><td> - </td><td>Search in web history.</td></tr>
<tr><td>/chats</td><td> - </td><td>Search in Chats.</td></tr>
<tr><td colspan="3">Search in <b>MS Outlook items</b>:</td></tr>
<tr><td>/appointments</td><td> - </td><td>Search in MS Outlook appointments.</td></tr>
<tr><td>/contacts</td><td> - </td><td>Search in MS Outlook contacts.</td></tr>
<tr><td>/journal</td><td> - </td><td>Search in MS Outlook journal.</td></tr>
<tr><td>/notes</td><td> - </td><td>Search in MS Outlook notes.</td></tr>
<tr><td>/tasks</td><td> - </td><td>Search in MS Outlook tasks.</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td> ggd dqsd search </td></tr>
<tr><td> ggd asp design </td></tr>
<tr><td> ggd john doe /contacts</td></tr>
</table>
</description>
<comment>
This is pretty spiffy, eh?
<mll>A lot ;)</mll>
</comment>
<form name="ggdf" method="GET"
action="">
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="adv" value="1" />
<input type="hidden" name="type" value="cat_all" />
<input type="hidden" name="ot" value="" />
<input type="hidden" name="file" value="" />
<input type="hidden" name="has" value="" />
</form>
<script><![CDATA[
function ggd(q){
var args = parseArgs(q, "emails, files, web_history, chats, appointments, contacts, journal, notes, tasks, type");
if( nullArgs( "ggd", args.q ) ){ return false; }
if(typeof ggd_googleKey == "undefined"){
openSearchWindow("http://reliableanswers.com/x/dqsd/ggd-discover.asp");
}else{
document.ggdf.action = "http://127.0.0.1:4664/search&s=" + ggd_googleKey;
document.ggdf.has.value = args.q;
if( args.switches.length > 0 )
{
for( var j=0; j<args.switches.length; j++ )
{
switch( args.switches[j].name )
{
case "emails":
document.ggdf.type.value = "email";
break;
case "files":
document.ggdf.type.value = "cat_files";
break;
case "type":
document.ggdf.type.value = "cat_files";
document.ggdf.file.value = args.switch_val["type"];
break;
case "web_history":
document.ggdf.type.value = "web";
break;
case "chats":
document.ggdf.type.value = "im";
break;
//MS OL items
case "contacts":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "contacts";
break;
case "appointments":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "calendar";
break;
case "tasks":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "tasks";
break;
case "notes":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "note";
break;
case "journal":
document.ggdf.type.value = "cat_other";
document.ggdf.ot.value = "journal";
break;
default:
nullArgs("ggd","?");
return false;
break;
}
}
}
submitForm(ggdf);
//reset the file field
document.ggdf.file.value = "";
}
}
]]></script>
</search>