Everybody, I tested my Search. One flaw was fixed: the results were not shown by the default page2xhtml.xsl. The instructions are updated. The section was reformatted. There is an Easy Download for newbies or lazy people (which should include all developers.) The URL is still: http://solprovider.com/lenya/search
On 6/22/05, Victoria Vitaver <[EMAIL PROTECTED]> wrote: > > [REMOVED: How to test search-and-result.xsp] > Thank you :) > It works a charm! Glad you like. It really helps to be able to see the results of a pipeline at various points in the process. I used several pipelines when I was developing the search functionality. I wish Cocoon had a tag for "BREAK! Return now with these results." > I need to customise search to look for multiple fields at a time. Also, > I will only ever be dealing with the one publication & language so I > tried to cut out stuff which dealt with that. > > There is a part in the file that do not understand the function of. > (the whole try block around the occurance of Analyzer ll_analyzer) > Seems to be rather redundant to me... or am I missing something ? > > I have also tried 'tidying up' the file given - renaming variables, > simplifying logic and all that jazz. I made all changes expecting the "patches" to be instructions for changing the files so others could apply them without losing their own customizations. I changed so much in search-and-result.xsp that the instructions would have been longer than the file. Try to avoid "tidying". I changed the name of the "querystring" variable; it was confusing since "querystring" is a defined word for web development. I also moved the <logic> tags to the start of each line, because they change the mode, as opposed to being part of the programming. I tried to keep everything else as close to the original as possible. If you must "tidy" the code, back up the file, rename one variable, and test before touching anything else. That is true for any maintenance. Backup, delete (or comment) that hopefully unneeded code, test, and discover you broke it before losing the ability to recover. > Now to figuring out why I get no hits ;). I tried your file. Search errored because: mSearchFields was not passed to search(), and it is not a global variable. solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
