[greenstone-devel] changing the prefix for incremental identifiers

From Stephen De Gabrielle
DateTue, 16 Jan 2007 15:41:46 +0930
Subject [greenstone-devel] changing the prefix for incremental identifiers
Hi,

I worked out the quick and dirty way of changing the prefix when doing an incremental OID

Note: This seems to work...use at own risk.

the file that needs to be changed
greenstone/perllib/doc.pm

Just look for the "D" and replace it with whatever you want.
In my case this was in greenstone/perllib/doc.pm (about a third of the way down)
    } elsif ($self->{'OIDtype'} eq "incremental") {
        $OID = "QUILT" . $OIDcount;
        $OIDcount ++;
(sorry no line numbers)

The dreaded "D" also appears in greentone/bin/scripts/import.pl - but it is commented out.

Please let me know if this doesn't work, breaks your collection, greenstone, your computer or sets fire to your house.

Cheers,

Stephen

--
Stephen De Gabrielle