Re: Question re: select fields
"Kyle Dallaire" <[email protected]> Mon, 17 Sep 2007 06:41:22 -0500
| Newsgroups | gmane.comp.web.htdig.general |
|---|---|
| Message-ID | <2D6F253C8E4F1748B1957895C7D5D41B02D4B3D1@stlmail1.corp.amdocs.com> |
Andreas, thanks so much for your response; it seemed promising! but I can't see the ^M when I view either my conf or my search.html file. Though I do create both files on a Windows machine, I use vi for the conf file, and I checked both files through vi on the Linux box where I am running the search. Possibly the one you are seeing is an artifact of the copy/paste I did for the e-mail? Any additional suggestions on how to see that ^M or other fixes for this problem? Hi Kyle, On Fri, Sep 14, 2007 at 03:32:17PM -0500, Kyle Dallaire wrote: > > version_names: "Version6_0|Version7_0|Version7_1|Version7_2" "Version > 7.5" \^M ^^ > "Version6_0|Version7_0|Version7_1|Version7_5" "Version > 7.2" \ > "Version6_0|Version7_0|Version7_2|Version7_5" "Version > 7.1" \ > "Version6_0|Version7_1|Version7_2|Version7_5" "Version 7" > \ > "Version7_0|Version7_1|Version7_2|Version7_5" "Version 6" Try it without the ^M after the \ in the first line :) Regards, Andreas -- ! Andreas Jobs Network Operating Center ! ! Ruhr-Universitaet Bochum ! ! The only way to clean a compromised system is to flatten and rebuild. ! > _____________________________________________ > From: Kyle Dallaire > Sent: Friday, September 14, 2007 4:32 PM > To: [email protected] > Subject: Question re: select fields > > I have a very stable htDig 3.1.6 setup I have been using for three or > four > years that is suddenly giving me fits. > > I use the search for a software documentation website which includes > documentation for multiple versions of the software; each version of > the software includes several different books. > > My search.html form has two custom select fields: one which allows > users > to select which version of the documents to search, and one which > allows > them to choose to search among all documents of that version, or a > specific document. > > Here are the definitions from my search.html file: > > Version: <select name="exclude"> > <option value="Version6_0|Version7_0|Version7_1|Version7_2">Version > 7.5 > <option value="Version6_0|Version7_0|Version7_1|Version7_5">Version > 7.2 > <option value="Version6_0|Version7_0|Version7_2|Version7_5">Version > 7.1 > <option value="Version6_0|Version7_1|Version7_2|Version7_5">Version 7 > <option value="Version7_0|Version7_1|Version7_2|Version7_5">Version 6 > </select> > > Book: <select name="restrict"> > <option value="">All > <option value="DevGuide">Developers' Guide > <option value="APM_IDE">The APM Development Environment > <option value="ACE">Application Configuration > <option value="BPM">Business Process Design and Implementation > <option value="CRM">Business Process Design and Impl for CRM > <option value="CLIENT">Business Process Design and Impl for CRM Client > Procs > <option value="DATA">Data Management > <option value="DMT">Using the Data Mapping Tool > <option value="Proxy">Proxies > <option value="API">API Javadoc > </select> > > I've also defined the 'exclude' and 'restrict' attributes in my conf > file: > > build_select_lists: EXCLUDE,select exclude version_names 2 1 2 exclude > "" \ > RESTRICT,select restrict book_names 2 1 2 restrict > "" \ > > version_names: "Version6_0|Version7_0|Version7_1|Version7_2" "Version > 7.5" \ > "Version6_0|Version7_0|Version7_1|Version7_5" "Version > 7.2" \ > "Version6_0|Version7_0|Version7_2|Version7_5" "Version > 7.1" \ > "Version6_0|Version7_1|Version7_2|Version7_5" "Version > 7" \ > "Version7_0|Version7_1|Version7_2|Version7_5" "Version > 6" > > book_names: "" "All" \ > "DevGuide" "Developers' Guide" \ > "APM_IDE" "The APM Development Environment" \ > "ACE" "Application Configuration" \ > "BPM" "Business Process Design and Implementation" \ > "CRM" "Business Process Design and Impl for CRM" \ > "CLIENT" "Business Process Design and Impl for CRM Client > Procs" \ > "DATA" "Data Management" \ > "DMT" "Using the Data Mapping Tool" \ > "Proxy" "Proxies" \ > "API" "API Javadoc" \ > > This has worked just fine until today, when tried to add another > release > version to the site. This means an additional Version field option: > > <option value="Version6_0|Version7_0|Version7_1|Version7_2">Version > 7.5 > > an additional exclude value for each existing option (so each now has > four > patterns to exclude instead of three), > > and a new document: > > <option value="CLIENT">Business Process Design and Impl for CRM Client > Procs > > Everything displays and appears to function just fine in the > search.html file, but > the Version field does not display properly in the search results > pages. Mostly, > instead of a select field, just the *definition* of the last-selected > version is > displayed, as text: > > Version: Version6_0|Version7_0|Version7_1|Version7_2 > > If I continue on from there, the definition disappears and the field > name remains, > but no selection box. The initial search seems to return the correct > set of urls, > but searches from the mangled results pages seem to include all > versions instead > of just one. > > If I run a search on all documents, this happens every time. If a run > a search on > a single document, sometimes the first results page displays a select > field with > the appropriate (last-selected) value shown, but there's only one > additional option, > and it consists of garbage characters. > > My first thought -- since these restrict and exclude lists have been > growing steadily > -- is that I have reached some kind of string length limitation, but I > am not a > programmer so this is just a wild guess. BTW, the book selection field > is just fine; it's > just the Version one that is messed up. > > I know this list is pretty quiet these days, but if anyone can point > me in the right > direction, I'd be very grateful! > > Kyle Dallaire > > > > This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ ht://Dig general mailing list: <[email protected]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general