[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] gold/src/hyper/search.pamphlet

From: Waldek Hebisch
Subject: Re: [Axiom-developer] gold/src/hyper/search.pamphlet
Date: Tue, 28 Nov 2006 03:58:11 +0100 (CET)

> in gold/src/hyper/search.pamphlet
> {
>       a[n] = $0;
>       n=n+1;
>         j=split($0,b,"{");
>         m=m+substr(b[j],1,length(b[j])-1);
> }
> but in sandbox it reads: 
> {
>       a[n] = $0;
>       n=n+1;
>         j=split($0,b,"{");
>         if (j >= 2)
>           m=m+substr(b[2],1,length(b[2])-1);
> }
> i don't understand this change. 
> can someone explain it?

Gold code is wrong.  This is part of 'presea' which is is run on output
of 'hthits'.  'hthits' outputs looks like:

\newsearchresultentry{1}{Asp24 Example Code}{Asp24ExampleCode}
\newsearchresultentry{1}{Asp27 Example Code}{Asp27ExampleCode}

after splitting on "{" the first field is '\newsearchresultentry' and
the second is number of occurences of search term in the page.  The
test for 'j >= 2' is just to tolerate garbage.  'presea' is supposed
to count the number of matches and put it in the header for search
results.  Gold version reported no matches in the header.

You may need other fixes to actually see search results (and notice
the problem).

                              Waldek Hebisch

reply via email to

[Prev in Thread] Current Thread [Next in Thread]