Re: Fwd: Re: [greenstone-devel] sort problem

From Katherine Don
DateWed, 21 Jul 2004 09:31:11 +1200
Subject Re: Fwd: Re: [greenstone-devel] sort problem
In-Reply-To (40FD4A4E-3010006-umontana-edu)
Hi Hiro

The A,B,C across the top of the page is the HList (horizontal list) and
the document list down the page is a VList (vertical list). You want to
modify the VList format, not the HList.
Change your format statement to be CL1VList and you should get the
horizontal A-Z index back (hopefully).

Do you have more than one document with the same name? If so, you will
get nodes in the list, and may want to use a format statement like the
following

format CL1VList
"<td>[link][icon][/link]</td><td>{If}{[numleafdocs],[Title],[Name]}</td>"

BTW, I just tried a small example, using AZList with Name metadata, and
I used values ABBEY, ABBOT, AVERY and ADAMS and it sorted fine. If each
document has a different name, AZList is what you should use. I would
like to know why it doesn't work for you. What version of Greenstone are
you using?
Have you modified the classifiers at all?
Were you using VList in your format statement for AZList?

Cheers,
Katherine

Hiro Mizutani wrote:
> Hi,
>
> Sorry for this late reply. I was out of town.
>
> ABBEY, ADAMS etc are "Name" metadata and I have only one Name metadata
> element per document.
>
> I tried using AZCompactList and sorted fine. But now, it shows only a
> list of name starting with "A". Is there a way to have A-Z Index on the
> top of the page?
>
> on my collect.cfg I have:
>
> classify AZCompactList -metadata Name -sort Name
>
> format CL1HList "[link][icon][/link] [Name]<br>"
>
> thanks.
> -hiro
>
>>
>> Subject: Re: [greenstone-devel] sort problem
>> Date: Thursday 08 July 2004 08:27 pm
>> From: Katherine Don <kjdon@cs.waikato.ac.nz>
>> To: Hiro Mizutani <hiro.mizutani@umontana.edu>
>> Cc: greenstone-devel@list.scms.waikato.ac.nz
>>
>> Hi
>>
>> Is ABBEY, ADAMS etc exactly what the metadata consists of? Or do you
>> have initials - these can cause funny ordering sometimes.
>>
>> I assume you have changed the format statement to display Name instead
>> of Title? If you are not displaying the same metadata element as you are
>> sorting on, then the display can look unordered.
>>
>> Do you have more than one Name metadata element per document? With
>> AZCompactList sometimes you can sort on one metadata value but be
>> displaying a different one. However, I don't think this is a problem for
>> AZList. But I thought I'd mention it anyway.
>>
>> Do you get the same ordering if you use AZCompactList?
>>
>> Other than that, I don't know what else to suggest.
>>
>> We don't do wildcard searches. The closest thing would be to search with
>> stemming on, but that doesn't guarantee any particular search results -
>> it depends on what each name stems to, if anything.
>>
>> Regards,
>> Katherine
>>
>> Hiro Mizutani wrote:
>>
>>> Hi,
>>>
>>> I have a lot of documents and each document contains a line like this:
>>> <Metadata name="Name">person's name here</Metadata>
>>>
>>> and a collect.cfg has a line:
>>> classify AZList -metadata Name -sort Name
>>>
>>> But it doesn't sort correctly. It gives me:
>>> ABBEY
>>> ADAMS
>>> AVERY
>>> ABBOT
>>>
>>> somehow ABBOT is after AVERY.
>>>
>>> Also, is there a way to search by word that is truncated with a
>>> wildcard?
>>> On the search field, I'd like to be able to type AB* and the result show
>>> ABBEY and ABBOT.
>>>
>>> Any suggestions would be appreciated.
>>> -hiro
>>
>>
>>
>> -------------------------------------------------------
>>
>
>