>>>>> "DA" == Derek Atkins <[EMAIL PROTECTED]> writes:

DA> I've been playing with Namazu on the gnucash listserver to provide
DA> improved searching of the mailing list archives.  I've got a
DA> preliminary service up and running on the server at:

DA>    https://lists.gnucash.org/cgi-bin/namazu.cgi

It looks pretty good to me.  I've used swish-e as a search engine for
mailman based searches, and its not nearly as fully featured as the
search interface for namazu.  Did it take long to set up?  Was there
more customization beyond
http://svn.gnucash.org/repo/mail-search/nmz/?

When I first browsed the namazu docs it looked like the default was to
search all the subindicies if none were selected, but that does not
appear to be the case.  If you don't select a list the search fails
(no hits) and the diagnostic message in that case "ain't great":

    References: [ (can't open the index) ]

    No document matching your query.

Perhaps it would be advisable to group the "non language" mailing
lists first, and default them to being checked.  Here is a patch that
does that, and also includes some javascript to "[un]select all".  

*** NMZ.head	2006-03-04 14:34:35.000000000 -0600
--- NMZ.head.new	2006-03-04 14:52:47.000000000 -0600
***************
*** 21,30 ****
                     font-family: monospace; 
  		   font-weight: bold; }
  --></style>
  </head>
  <body lang="en">
  <h1>Search the GnuCash Mailing lists</h1>
! <form method="get" action="{cgi}">
  <p>
  <strong>Query:</strong> 
  <input type="text" name="query" size="40">
--- 21,61 ----
                     font-family: monospace; 
  		   font-weight: bold; }
  --></style>
+ 
+ <SCRIPT LANGUAGE="JavaScript">
+ <!-- 	
+ // From http://www.shiningstar.net/articles/articles/javascript/checkboxes.asp?ID=AW
+ // by Nannette Thacker
+ // http://www.shiningstar.net
+ // This script checks and unchecks boxes on a form
+ // Checks and unchecks unlimited number in the group...
+ // Pass the Checkbox group name...
+ // call buttons as so:
+ // <input type=button name="CheckAll"   value="Check All"
+ 	//onClick="checkAll(document.myform.list)">
+ // <input type=button name="UnCheckAll" value="Uncheck All"
+ 	//onClick="uncheckAll(document.myform.list)">
+ // -->
+ 
+ <!-- Begin
+ function checkAll(field)
+ {
+   
+ for (i = 0; i < field.length; i++)
+ 	field[i].checked = true ;
+ }
+ 
+ function uncheckAll(field)
+ {
+ for (i = 0; i < field.length; i++)
+ 	field[i].checked = false ;
+ }
+ //  End -->
+ </script>
  </head>
  <body lang="en">
  <h1>Search the GnuCash Mailing lists</h1>
! <form method="get" action="{cgi}" name=listsToSearch>
  <p>
  <strong>Query:</strong> 
  <input type="text" name="query" size="40">
***************
*** 65,79 ****
  <p>
  <strong>Lists to Search:</strong>
  <ul>
! <input type="checkbox" name="idxname" value="gnucash-announce">gnucash-announce
  <input type="checkbox" name="idxname" value="gnucash-br">gnucash-br
  <input type="checkbox" name="idxname" value="gnucash-de">gnucash-de
- <input type="checkbox" name="idxname" value="gnucash-devel">gnucash-devel
  <input type="checkbox" name="idxname" value="gnucash-es">gnucash-es
  <input type="checkbox" name="idxname" value="gnucash-fr">gnucash-fr
  <input type="checkbox" name="idxname" value="gnucash-it">gnucash-it
- <input type="checkbox" name="idxname" value="gnucash-user">gnucash-user
  </ul>
  </p>
  </form>
  <hr>
--- 96,116 ----
  <p>
  <strong>Lists to Search:</strong>
  <ul>
! <input type="checkbox" name="idxname" value="gnucash-announce" CHECKED>gnucash-announce
! <input type="checkbox" name="idxname" value="gnucash-devel" CHECKED>gnucash-devel
! <input type="checkbox" name="idxname" value="gnucash-user" CHECKED>gnucash-user
! <br>
  <input type="checkbox" name="idxname" value="gnucash-br">gnucash-br
  <input type="checkbox" name="idxname" value="gnucash-de">gnucash-de
  <input type="checkbox" name="idxname" value="gnucash-es">gnucash-es
  <input type="checkbox" name="idxname" value="gnucash-fr">gnucash-fr
  <input type="checkbox" name="idxname" value="gnucash-it">gnucash-it
  </ul>
  </p>
+ <input type="button" name="CheckAll" value="Check All"
+ onClick="checkAll(document.listsToSearch)">
+ <input type="button" name="UnCheckAll" value="Uncheck All"
+ onClick="uncheckAll(document.listsToSearch)">
+ <br>
  </form>
  <hr>

I'm neither a javascript nor web wizard, so buyer beware.  I have
tested it with IE6, firefox 1.5, and konqueror 3.5, and it "works for
me".
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to