Hey guys, I added the functionality to pull searches from a 'localsearches' directory. Any testing would be appreciated.
Thanks, Glenn > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Tuesday, September 24, 2002 5:23 PM > To: [EMAIL PROTECTED] > Subject: [DQSD-CVS] dqsd ChangeLog.txt,1.118,1.119 loader.js,1.49,1.50 > > > View the DQSD CVS repository here: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/ > > Update of /cvsroot/dqsd/dqsd > In directory usw-pr-cvs1:/tmp/cvs-serv19172 > > Modified Files: > ChangeLog.txt loader.js > Log Message: > Added ability to put searches in a localsearches subdirectory. > > Index: ChangeLog.txt > =================================================================== > RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v > retrieving revision 1.118 > retrieving revision 1.119 > diff -C2 -d -r1.118 -r1.119 > *** ChangeLog.txt 24 Sep 2002 21:04:23 -0000 1.118 > --- ChangeLog.txt 24 Sep 2002 22:22:40 -0000 1.119 > *************** > *** 27,30 **** > --- 27,31 ---- > page that sets up the browser window the way you want it for > your results. > * Fixed some descriptions in various searches; moved some > searches to more appropriate categories > + * User-defined searches can be added to a 'localsearches' > subdirectory. These will not be overwritten on upgrading. > > Bug Fixes > > Index: loader.js > =================================================================== > RCS file: /cvsroot/dqsd/dqsd/loader.js,v > retrieving revision 1.49 > retrieving revision 1.50 > diff -C2 -d -r1.49 -r1.50 > *** loader.js 22 Aug 2002 20:22:32 -0000 1.49 > --- loader.js 24 Sep 2002 22:22:40 -0000 1.50 > *************** > *** 191,199 **** > > // Load searches from search directory > ! loadSearches(); > > // Load optional add-ons from addons directory > loadAddons(); > > // 2. eval all the scripts and doc.write all the forms > > --- 191,202 ---- > > // Load searches from search directory > ! loadSearchesFromDir( "searches" ); > > // Load optional add-ons from addons directory > loadAddons(); > > + // Load local searches > + loadSearchesFromDir( "localsearches" ); > + > // 2. eval all the scripts and doc.write all the forms > > *************** > *** 318,322 **** > > > ! function loadSearches() > { > > --- 321,325 ---- > > > ! function loadSearchesFromDir( directory ) > { > > *************** > *** 324,328 **** > { > // Get searches in the 'searches' subdirectory > ! var fileSearches = getFiles( "searches\\*.xml" ).split('\n'); > > for ( var i = 0; i < fileSearches.length; i++ ) > --- 327,331 ---- > { > // Get searches in the 'searches' subdirectory > ! var fileSearches = getFiles( directory + "\\*.xml" ).split('\n'); > > for ( var i = 0; i < fileSearches.length; i++ ) > *************** > *** 333,337 **** > continue; > > ! loadSearchFile( "searches\\" + fileSearches[i] ); > > } > --- 336,340 ---- > continue; > > ! loadSearchFile( directory + "\\" + fileSearches[i] ); > > } > > > > > ------------------------------------------------------- > 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/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ DQSD-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dqsd-devel
