Re: [greenstone-users] A-Z Compact List Sorting

From Michael Dewsnip
DateTue, 16 Dec 2003 15:32:59 +1300
Subject Re: [greenstone-users] A-Z Compact List Sorting
In-Reply-To (AFAC9B2BF1A8BF4886F5C0FDE428E90E0A4DAE6C-edumail2-education-tas-gov-au)
Hi Ben,

Unfortunately, AZCompactList doesn't actually have a "-sort" argument,
although I'm about to add one. You can see what options are available by
running "perl -S classinfo.pl AZCompactList" (pluginfo.pl for plugins).

AZCompactList is currently hard-wired to sort on Date metadata. If you
want a quick and ugly solution, you can change line 413 of
perllib/classify/AZCompactList.pm from 'push @args, ("-sort", "Date")' to
'push @args, ("-sort", "Title")' and re-build your collection (you don't
need to re-import it).

All the best,

Michael

"Dwyer, Benjamin J" wrote:

> Thanks for the suggestion Laura,
> I tried that but still no change.
> >From my config file:
>
> classify AZCompactList -metadata dc.Creator -buttonname Creator
> -mingroup 0 -sort Title
>
> The collection is at http://greenstone.statelibrary.tas.gov.au/
>
> -----Original Message-----
> From: LAURA SHEBLE [mailto:aj0151@wayne.edu]
> Sent: Tuesday, 9 December 2003 10:58 PM
> To: Dwyer, Benjamin J
> Cc: greenstone-users@list.scms.waikato.ac.nz
> Subject: Re: [greenstone-users] A-Z Compact List Sorting
>
> Hi,
>
> I can help with your first question: In order to sort at the
> second level, it is necessary to specify the metadata element
> to sort by. Below is an example from my collect.cfg file.
> the -sort Title portion specifies this sort order, the result
> is an alphabetical title sort.
>
> classify AZCompactList -mingroup 2 -mincompact 12 -
> maxcompact 20 -sort Title -metadata DC.Creator -buttonname
> Composer
>
> Best,
>
> Laura Sheble
>
> ---- Original message ----
> >Date: Tue, 9 Dec 2003 15:37:26 +1100
> >From: "Dwyer, Benjamin J"
> <benjamin.dwyer@education.tas.gov.au>
> >Subject: [greenstone-users] A-Z Compact List Sorting
> >To: <greenstone-users@list.scms.waikato.ac.nz>
> >
> >Hi,
> >
> >Is there a way to sort A-Z classify lists at the next level
> down?
> >
> >Example: I have a A-Z compact list of composers (which is
> sorted
> >alphabetically), when you click on one of them, the music
> titles are
> >displayed for that composer (however the list of titles is
> not
> >alphabetical).
> >
> >1) How do I sort this second list alphabetically?
> >
> >Also with search results if there are more than 20, a link
> to the next
> >20 "Matches 21 - 40 >" appears at the bottom of the page.
> >
> >2) Is it possible to have this link at the top of the page
> also?
> >
> >Regards
> >
> >Ben Dwyer
> >
> >_______________________________________________
> >greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz
> >https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-
> users
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users