[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] gold/src/hyper/search.pamphlet
From: |
root |
Subject: |
Re: [Axiom-developer] gold/src/hyper/search.pamphlet |
Date: |
Mon, 27 Nov 2006 22:02:50 -0500 |
> > 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).
ah. perhaps it might be worthwhile adding this bit of wisdom to the
documentation for the change.
quite curious that this code never worked and nobody noticed.
t