Re: [greenstone-users] Build error with GenericList classifier

From Chaitra Rao
DateFri, 10 Mar 2006 11:38:45 +0530 (IST)
Subject Re: [greenstone-users] Build error with GenericList classifier
In-Reply-To (4410AC8F-9050108-cs-waikato-ac-nz)
Thanks Michael! It works fine now.

Regards,
Chaitra

On Fri, 10 Mar 2006, Michael Dewsnip wrote:

> Hi,
>
> The "-leafnodesort" option has changed to "-sort_leaf_nodes_using". If
> the GLI doesn't have the correct list of options for GenericList, close
> the GLI, delete the classifiers.dat file in C:Documents and
> Settings<Username>Application DataGreenstoneGLI and then restart the
> GLI.
>
> You may have to edit the collect.cfg file manually and change
> "-leafnodesort" to "-sort_leaf_nodes_using".
>
> Regards,
>
> Michael
>
>
>
> Chaitra Rao wrote:
>
> >Hi Katherine,
> >Thanks for the response! The generic list plugin works fine with
> >gs v2.6. But since we've moved to gs 2.62, we've been facing problems with
> >this plugin.The options that I've set for Generic list looks something
> >like this:
> >
> >classify GenericList -metadata aaqua.CommodityName -leafnodesort
> >aaqua.ThreadTitle -alwaysgrouplastelement True -buttonname Commodity
> >
> >The GenericList.pm file bundled along with the installation shows the foll
> >lines under my $arguments
> >
> > # The interesting options
> > { 'name' => "always_bookshelf_last_level",
> >'desc' => "{GenericList.always_bookshelf_last_level}",
> >'type' => "flag" },
> > { 'name' => "classify_sections",
> >'desc' => "{GenericList.classify_sections}",
> >'type' => "flag" },
> > { 'name' => "partition_type_within_level",
> >'desc' => "{GenericList.partition_type_within_level}",
> >'type' => "string",
> >'deft' => "none" },
> > { 'name' => "partition_size_within_level",
> >'desc' => "{GenericList.partition_size_within_level}",
> >'type' => "string" },
> > { 'name' => "sort_leaf_nodes_using",
> >'desc' => "{GenericList.sort_leaf_nodes_using}",
> >'type' => "metadata",
> >'deft' => "Title" },
> > { 'name' => "use_hlist_for",
> >'desc' => "{GenericList.use_hlist_for}",
> >'type' => "string" } ];
> >
> >
> >This somehow is not the text that's shown on the GLI (which I presume
> >comes from this file).
> >
> >I get the following error when I build my collection:
> >
> >Error: occur in parse2.pm::parse()
> >
> >buildcol.pl> Extra Arguments: leafnodesort
> >
> >buildcol.pl> The GenericList classifier uses an incorrect general option
> >(general options are those available to all classifiers). Check your
> >collect.cfg configuration file.
> >
> >buildcol.pl> A general and flexible list classifier with most of the
> >abilities of AZCompactList, but with better Unicode, metadata and sorting
> >capabilities.
> >
> >buildcol.pl> Usage: classify GenericList [options]
> >
> >buildcol.pl> specific options:
> >
> >buildcol.pl> -metadata <metadata> (REQUIRED) Metadata fields used for
> >
> >buildcol.pl> classification. Use '/' to separate the
> >
> >buildcol.pl> levels in the hierarchy and ';' to
> >
> >buildcol.pl> separate metadata fields within each
> >
> >buildcol.pl> level.
> >
> >buildcol.pl> -buttonname <string> The label for the classifier screen and
> >
> >buildcol.pl> button in navigation bar. The default
> >
> >buildcol.pl> is the metadata element specified with
> >
> >buildcol.pl> -metadata.
> >
> >buildcol.pl> -always_bookshelf_last_level Create a bookshelf icon even if
> >there
> >
> >buildcol.pl> is only one item in each group at the
> >
> >buildcol.pl> leaf nodes.
> >
> >buildcol.pl> -classify_sections Classify sections instead of documents.
> >
> >buildcol.pl> -partition_type_within_level <string> The type of
> >partitioning done: either
> >
> >buildcol.pl> 'per_letter', 'constant_size', or
> >
> >buildcol.pl> 'none'.
> >
> >buildcol.pl> Default: none
> >
> >buildcol.pl> -partition_size_within_level <string> The number of items in
> >each partition
> >
> >buildcol.pl> (only applies when
> >
> >buildcol.pl> partition_type_within_level is set to
> >
> >buildcol.pl> 'constant_size').
> >
> >buildcol.pl> -sort_leaf_nodes_using <metadata> Metadata fields used for
> >sorting the
> >
> >buildcol.pl> leaf nodes. Use '|' to separate the
> >
> >buildcol.pl> metadata groups to stable sort and ';'
> >
> >buildcol.pl> to separate metadata fields within each buildcol.pl> group.
> >
> >buildcol.pl> Default: Title
> >
> >buildcol.pl> -use_hlist_for <string> Metadata fields to use a hlist rather
> >
> >buildcol.pl> than a vlist. Use ',' to separate the
> >
> >buildcol.pl> metadata groups and ';' to separate the
> >
> >buildcol.pl> metadata fields within each group.
> >
> >buildcol.pl> general options (for BasClas):
> >
> >buildcol.pl> -no_metadata_formatting Don't do any automatic metadata
> >
> >buildcol.pl> formatting (for sorting.)
> >
> >buildcol.pl> -builddir <string> Where to put the built indexes.
> >
> >buildcol.pl> Default:
> >
> >buildcol.pl> -outhandle <string> The file handle to write output to.
> >
> >buildcol.pl> Default: STDERR
> >
> >buildcol.pl> -verbosity <int> Controls the quantity of output.
> >
> >buildcol.pl> 0=none, 3=lots.
> >
> >buildcol.pl> Default: 2
> >
> >buildcol.pl> Command failed.
> >
> >I tried using the src for building the gli as well as the source code. I
> >get the same error with both of them. Please help asap! We use a lot of
> >unicode files in our collections.
> >
> >Thanks in advance.
> >
> >Regards,
> >Chaitra
> >
> >On Tue, 28 Feb 2006, Katherine Don wrote:
> >
> >
> >
> >>Hi Chaitra
> >>
> >>I have just tried using GenericList in version 2.63 and 2.62, and it
> >>seems to work fine for me. (classify GenericList -metadata dls.Title)
> >>
> >>What options are you trying to pass to it?
> >>
> >>Regards,
> >>Katherine
> >>
> >>Chaitra Rao wrote:
> >>
> >>
> >>>Hi,
> >>> I'm unable to use GenericList classifier bundled with the greenstone
> >>>installation (v2.62).
> >>>
> >>>I get the foll error while building:
> >>>Command: E:Program Filesgs2.62binwindowsperlbinPerl.exe -S
> >>>E:Program Filesgs2.62binscriptbuildcol.pl -gli -language en
> >>>-collectdir E:Program Filesgs2.62collect -removeold aaqua
> >>>buildcol.pl> Can't coerce array into hash at E:Program
> >>>Filesgs2.62/perllib/classify/BasClas.pm line 234.
> >>>buildcol.pl> Command failed.
> >>>
> >>>The line no. 234 on BasPlug.pm corresponds to the foll line:
> >>>if(defined $arguments){
> >>>push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
> >>>
> >>>Please help!
> >>>Thanks in advance
> >>>
> >>>Regards,
> >>>Chaitra
> >>>
> >>>
> >>>_______________________________________________
> >>>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
> >
> >
> >
> >
>