Re: [greenstone-devel] librarian 2.0 and mode=accumulate in created metadata.xml files

From mdewsnip@cs.waikato.ac.nz
DateThu, 10 Jul 2003 15:15:05 +1200 (NZST)
Subject Re: [greenstone-devel] librarian 2.0 and mode=accumulate in created metadata.xml files
In-Reply-To (OFB6E22FCD-C2579D92-ON69256D5F-000C7584-69256D5F-000C75BE-ntu-edu-au)
Hi Stephen,

As far as I know, the 'mode' attribute (override or accumulate) only needs
to be specified if more than one value is being assigned to one metadata
element. I don't have version 2.39 of the Developer's Guide, but I'm
looking at version 2.38, and this seems to be the general idea.

If a file has only one value assigned to a metadata element, then
everything is simple. However, if a file has more than one value assigned
to a metadata element (it has inherited metadata, for example), then you
sometimes need a bit more control. Using 'accumulate' means that the value
will be added to the list of values for the metadata element, while
'override' effectively clears everything off the list, then adds the
value.

Hope this helps.

Thanks for your input,

Michael

> Hi I am trying out the librarian (2.0 as distributed with greenstone
> 2.40) and have noticed that it is not including the 'mode=accumulate'
> attribute for every occurance of a metadata element. The Developers
> Guide (2.39 page 36) states that 'mode=accumulate must be specified in
> every occurance.[of a metadata element].
> Is this a problem? I could not find any mention of this behaviour in
> the
> greenstone gatherer web pages.
>
> Thanks,
>
> Stephen
>
> -sample Librarinan output-
>
>
> <FileSet>
> <FileName>framework.pdf</FileName>
> <Description>
> <Metadata name="dc.Title">PLT Framework: GUI Application
> Framework</Metadata>
> <Metadata name="dc.Creator">Robert Bruce Findler
> (robby&#64;plt-scheme.org)</Metadata>
> <Metadata mode="accumulate" name="dc.Creator">Matthew Flatt
> (mflatt@plt-scheme.org)</Metadata>
> <Metadata name="dc.Publisher">PLT
> (scheme@plt-scheme.org)</Metadata>
> </Description>
> </FileSet>
> <FileSet>
> <FileName>misclib.pdf</FileName>
> <Description>
> <Metadata name="dc.Title">PLT Miscellaneous Libraries:
> Reference Manual</Metadata>
> <Metadata name="dc.Publisher">PLT
> (scheme@plt-scheme.org)</Metadata>
> </Description>
> </FileSet>
> <FileSet>
> <FileName>mred.pdf</FileName>
> <Description>
> <Metadata name="dc.Title">PLT MrEd: Graphical Toolbox
> Manual</Metadata>
> <Metadata name="dc.Creator">Matthew Flatt
> (mflatt@plt-scheme.org)</Metadata>
> <Metadata mode="accumulate" name="dc.Creator">Robert Bruce
> Findler (robby@plt-scheme.org)</Metadata>
> <Metadata mode="accumulate" name="dc.Creator">John Clements
> (clements@plt-scheme.org)</Metadata>
> <Metadata name="dc.Publisher">PLT
> (scheme@plt-scheme.org)</Metadata>
> </Description>
> </FileSet>
>
>
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel