Re: [greenstone-devel] Auto increment metadata field

From papadimi@ceid.upatras.gr
DateFri, 27 Jan 2006 14:14:08 +0200
Subject Re: [greenstone-devel] Auto increment metadata field
In-Reply-To (43D99C58-3090507-cs-waikato-ac-nz)
Thanks a lot Katherine. I have thought of doing it this way: every time a
document is added (or deleted) in the collection i recursively open all
metadata.xml files (using dom) and reassign to the correct element the
incremental id. I have only some doubts if this will be efficient when the
collection becomes very large (with about 2500 entries).

Anyway thanks again.


Αρχικό μήνυμα από Katherine Don <kjdon&#64;cs.waikato.ac.nz>:

> Hi
>
> 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.
>
> Regards,
> Katherine
>
>
> papadimi@ceid.upatras.gr 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 http://my.ceid.upatras.gr
> >
> >
> >
> > _______________________________________________
> > greenstone-devel mailing list
> > greenstone-devel@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
> >
> >
>


----------------------------------------------------
This mail was sent through http://my.ceid.upatras.gr