Re: [greenstone-users] AZ compact list metadata ordering

From Katherine Don
DateThu, 01 Apr 2004 14:39:48 +1200
Subject Re: [greenstone-users] AZ compact list metadata ordering
In-Reply-To (NFBBINHLOLBEPDOBGOFGIEPKEDAA-duncan-streamuk-com)
Hi Duncan

The -sort option os only for sorting child nodes, so doesn't apply to
the top level list.
What version of Greenstone are you using? I think that version 2.41 has
ordering of Creator metadata by surname.
If you are using 2.41, and your metadata is called Creator, then I don't
know why its not working.
If your metadata is called eg dc.Creator, Author etc, something that is
not exactly 'Creator', then you can edit the
gsdl/perllib/classify/AZCompactList.pm file to make it work with your
metadata

There are two places where the following is called:

if ($self->{'metaname'} =~ m/^Creator(:.*)?$/){
&sorttools::format_string_name_english($formatted_node);
}

You need to make the regular expression match your metadata name, eg
m/^(w+.)?Creator(:.*)?$/
for namespaced metadata. or replace Creator with Author if that is what
you have used.

If this suggestion doesn't apply to you (your metadata is called
Creator), the next release of Greenstone should be out in a week or so,
and hopefully will work.

Cheers,
Katherine Don

Duncan Burbidge wrote:
> Dear all
>
> I have a metadata file with the names of my 'Creators'... When they appear
> in an AZCompact list, I'd like the order to be by surname, rather than
> firstname.
>
> Am I missing something obvious? I have not been able to find an answer in
> the help. I've tried '-sort Creator', but that is the same as default, I
> think, and again uses firstnames.
>
> Regards
>
> Duncan
>
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users