View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd/searches
In directory sc8-pr-cvs1:/tmp/cvs-serv4027/searches

Modified Files:
        gg.xml 
Log Message:
- Added /froogle, /glossary, and /keys
- Fixed google search with 'mode' qualifers and no search string to go the home page 
for that mode (news, groups, etc.)

Index: gg.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/gg.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** gg.xml      8 Sep 2002 21:42:37 -0000       1.21
--- gg.xml      12 Dec 2002 22:21:48 -0000      1.22
***************
*** 10,14 ****
        <tr><td>/directory</td><td> - </td><td>Search Google's copy of the DMOZ open 
directory.</td></tr>
        <tr><td>/images</td><td> - </td><td>Search for images.</td></tr>
!       <tr><td>/news</td><td> - </td><td>Search for news (<i>warning : google news 
still in beta, .com only, english only mode</i>).</td></tr>
        <tr><td>/since:days</td><td> - </td><td>Search pages based on when they were 
indexed.  Use either a number to specify when, or 
          <div style="padding: 0 0 0 20px">
--- 10,17 ----
        <tr><td>/directory</td><td> - </td><td>Search Google's copy of the DMOZ open 
directory.</td></tr>
        <tr><td>/images</td><td> - </td><td>Search for images.</td></tr>
!       <tr><td>/news</td><td> - </td><td>Search for news (<i>warning : still in beta, 
.com/english only</i>).</td></tr>
!       <tr><td>/froogle</td><td> - </td><td>Find products for sale online(<i>warning 
: still in beta, .com/english only</i>).</td></tr>
!       <tr><td>/glossary</td><td> - </td><td>Find definitions for words, phrases and 
acronyms(<i>warning : still in beta, .com/english only</i>).</td></tr>
!       <tr><td>/keys</td><td> - </td><td>Navigate search results without using your 
mouse (<i>warning : still in beta, .com/english only</i>).</td></tr>
        <tr><td>/since:days</td><td> - </td><td>Search pages based on when they were 
indexed.  Use either a number to specify when, or 
          <div style="padding: 0 0 0 20px">
***************
*** 45,48 ****
--- 48,53 ----
        <tr><td>gg dqsd /images</td></tr>
        <tr><td>gg tony blair /uk /directory</td></tr>
+       <tr><td>gg /froogle cd clock radio</td></tr>
+       <tr><td>gg /glossary wrt</td></tr>
      </table>
    </description>
***************
*** 105,132 ****
    </form>
  
  
!   <script><![CDATA[
! 
! 
!     function julian(Y,M,D) {
!     //inspired from http://pacific.commerce.ubc.ca/xr/julian.html
!     //(did not check it toroughly, but seems to work)
!        with (Math) {
!          jd=367*Y-floor(7*(Y+floor((M+9)/12))/4)
!            -floor(3*(floor((Y+(M-9)/7)/100)+1)/4)
!            +floor(275*M/9)+D+1721028;
!        }
!        return jd;
!     }
  
  
      function gg(q)
      //by MLL: warning : news service is still in beta stage, so URLs below may change
      {
!       var args = parseArgs(q, "ifl, advanced, groups, directory, images, news, 
since, cache, related, link, local, canada, deutschland, france, italia, uk, 
language");
        var mode, local, local_meta = "", local_tld = "com", msglang = "";
        
!       if( nullArgs( "gg", args.q ) ) return false;
!       
        // Establish the locale and mode the search will run in.
        if( args.switches.length > 0 )
--- 110,140 ----
    </form>
  
+   <form name="ggf_froogle"
+         method="get"
+         action="http://froogle.google.com/froogle";>
+     <input type="hidden" name="q" value="" />
+   </form>
  
!   <form name="ggf_glossary"
!         method="get"
!         action="http://labs.google.com/glossary";>
!     <input type="hidden" name="q" value="" />
!   </form>
  
+   <form name="ggf_keys"
+         method="get"
+         action="http://labs.google.com/cgi-bin/keys";>
+     <input type="hidden" name="q" value="" />
+   </form>
  
+   <script><![CDATA[
      function gg(q)
      //by MLL: warning : news service is still in beta stage, so URLs below may change
      {
!       var args = parseArgs(q, "ifl, advanced, groups, directory, images, news, 
since, cache, related, link, froogle, glossary, keys, local, canada, deutschland, 
france, italia, uk, language");
        var mode, local, local_meta = "", local_tld = "com", msglang = "";
        
!       if( nullArgs( "gg", q ) ) return false;
! 
        // Establish the locale and mode the search will run in.
        if( args.switches.length > 0 )
***************
*** 148,152 ****
              
              default:
!               if(mode) 
                { 
                  nullArgs("gg","?"); 
--- 156,160 ----
              
              default:
!               if(mode) // multiple 'modes' have been specified
                { 
                  nullArgs("gg","?"); 
***************
*** 175,189 ****
        // No parameters, so go to the appropriate web page.
        if( args.q == "" )
          switch( mode )
          {
!           case "ifl": openSearchWindow("http://www.google."; + local_tld + 
"/help/features.html#lucky"); return;
!           case "advanced": openSearchWindow("http://www.google."; + local_tld + 
"/advanced_search"); return;
!           case "images": openSearchWindow("http://images.google."; + local_tld); 
return;
!           case "directory": openSearchWindow("http://images.google."; + local_tld + 
"/dirhp"); return;
!           case "groups": openSearchWindow("http://www.google."; + local_tld + 
"/grphp"); return;
!           case "news": openSearchWindow("http://www.google."; + local_tld + "/news"); 
return;
!           default: openSearchWindow("http://www.google."; + local_tld); return;
          }
!       
        else
        {
--- 183,204 ----
        // No parameters, so go to the appropriate web page.
        if( args.q == "" )
+       {
+         var googleURL = "http://www.google."; + local_tld;
          switch( mode )
          {
!           case "ifl":       googleURL = "http://www.google."; + local_tld + 
"/help/features.html#lucky"; break;
!           case "advanced":  googleURL = "http://www.google."; + local_tld + 
"/advanced_search"; break;
!           case "images":    googleURL = "http://images.google."; + local_tld; break;
!           case "directory": googleURL = "http://images.google."; + local_tld + 
"/dirhp"; break;
!           case "groups":    googleURL = "http://www.google."; + local_tld + "/grphp"; 
break;
!           case "news":      googleURL = "http://www.google."; + local_tld + "/news"; 
break;
!           case "froogle":   googleURL = "http://froogle.google.com/froogle";; break;
!           case "glossary":  googleURL = "http://labs.google.com/glossary";; break;
!           case "keys":      googleURL = "http://labs.google.com/keys";; break;
!           default: 
          }
!         openSearchWindow( googleURL ); 
!         return;
!       }
        else
        {
***************
*** 276,279 ****
--- 291,306 ----
                submitForm(ggf_news);
                break;
+             case "froogle":
+               document.ggf_froogle.q.value = args.q;
+               submitForm(ggf_froogle);
+               break;
+             case "glossary":
+               document.ggf_glossary.q.value = args.q;
+               submitForm(ggf_glossary);
+               break;
+             case "keys":
+               document.ggf_keys.q.value = args.q;
+               submitForm(ggf_keys);
+               break;
            }
          }
***************
*** 287,296 ****
        }
      }
    ]]></script>
  
    <copyright>
!       Copyright (c) 2002 David Bau
!       Distributed under the terms of the
!       GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
    </copyright>
  </search>
--- 314,334 ----
        }
      }
+ 
+     function julian(Y,M,D) {
+     //inspired from http://pacific.commerce.ubc.ca/xr/julian.html
+     //(did not check it toroughly, but seems to work)
+        with (Math) {
+          jd=367*Y-floor(7*(Y+floor((M+9)/12))/4)
+            -floor(3*(floor((Y+(M-9)/7)/100)+1)/4)
+            +floor(275*M/9)+D+1721028;
+        }
+        return jd;
+     }
    ]]></script>
  
    <copyright>
!   Copyright (c) 2002 David Bau
!   Distributed under the terms of the
!   GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
    </copyright>
  </search>




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to