RE: [greenstone-devel] A-Z listing help

From Gregory S. Williamson
DateFri, 2 Apr 2004 15:39:13 -0800
Subject RE: [greenstone-devel] A-Z listing help
I have used the following lines in the config file for a collection to get a series of tabs, usually one or two letters per tab (the web site is not yet up so I can't give you a pointer).

indexes document:text document:Title document:Source document:Subject document:Author document:Period
...
plugin HTMLPlug -metadata_fields Subject,Title,Author,Period,BannerImage

...
classify AZList -metadata Title
classify AZList -metadata Source
classify AZCompactList -metadata Subject -mingroup 1
classify AZCompactList -metadata Author -mingroup 1 -buttonname "Contributors"
classify AZCompactList -metadata Period -mingroup 1

====

The Authors get into the compact list structure; the "mingroup 1" makes it so even items with a single entry get treated by the first letter rather than having an entry of their own. Period data includes strings (e.g. "1840", "1852" etc.) and the list compactor treats them as strings -- which is what I would expect offhand as everything is a string in perl, until you need to do a math operation on it. This does mean that your list sorts alphabetically and not in a straightforward numerical order ... e.g. all strings starting with "1" will sort before the strings starting with a "2" even though the numerical value is differnt ("123" will sort before "20", I think).

Greg

-----Original Message-----
From:Chris Vasquez [mailto:chris@huntsvilletx.gov]
Sent:Fri 4/2/2004 2:56 PM
To:greenstone-devel@list.scms.waikato.ac.nz
Cc:
Subject:[greenstone-devel] A-Z listing help
I'm using Greenston version 2.41 on Linux with Apache 2.0. I have a
collection of approx. 800 surnames and 176 main pages. Under the
surnames link at
http://www.walkercountytreasures.com/cgi-bin/library?e=d-000-00---0bible
--00-0-0-0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utf
Zz-8-00&a=d&cl=CL2
is there a way to keep the same formatting but add an A-Z list so that
it's better organized. I would also like to add a Page 1-176 list that
breaks out exactly like the A-Z list but with numbers instead of letters
at
http://www.walkercountytreasures.com/cgi-bin/library?e=p-000-00---0bible
--00-0-0-0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utf
Zz-8-00&a=d&cl=CL3


Thank you,
Chris Vasquez <http://www.huntsvilletx.gov/>

Network Administrator City of Huntsville
1212 Avenue M
Huntsville, Texas 77340
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=1212+Avenue+M&csz=Huntsv
ille,+Texas+77340&country=us>
chris@huntsvilletx.gov
www.huntsvilletx.gov <http://www.huntsvilletx.gov/> tel:
fax:
mobile: 936-291-5429
936-291-5450
936-577-2032

Powered by Plaxo <http://www.plaxo.com/signature/> Want a
signature like this? <http://www.plaxo.com/signature/>


<<attachment>>
Type: image/gif
Filename: chris.gif

download