Re: [greenstone-devel] Auto increment metadata field

From Katherine Don
DateFri, 27 Jan 2006 17:06:48 +1300
Subject Re: [greenstone-devel] Auto increment metadata field
In-Reply-To (1138189113-43d76339c00e4-my-ceid-upatras-gr)

No there isn't any way to do this at the moment.
You could use -OIDtype incremental, and the greenstone ids will be
incremental, but this won't necessarily give documents the same id each
time the collection is built, and you can't import new documents into
existing archives.
If you are using the GLI, and you have an incremented metadata value,
you could use the value tree to see which id you are up to each time you
add a document , and just assign it manually.

Katherine wrote:
> Hi all. I want to assign an auto increment identifier element to my
> collection's metadata set (the same way it works with a database). For example
> if i have the element dc.identifier i want it to be assigned incremental
> integer values automatically (each time i drop a file in my collection). I know
> i can use the -OID type during the build process with param dc.identifier but
> is there any idea on how to automatically create this auto-increment element.
> Many Thanks in advance
> ----------------------------------------------------
> This mail was sent through
> _______________________________________________
> greenstone-devel mailing list