Re: [greenstone-devel] changing the prefix for incremental identifiers

From Michael Dewsnip
DateThu, 18 Jan 2007 13:38:56 +1300
Subject Re: [greenstone-devel] changing the prefix for incremental identifiers
In-Reply-To (595b9ab20701152211y677dbd9ao8efc8a225a8d30f2-mail-gmail-com)
Hi Stephen,

Your change should be fine.

Just in case you're curious, the reason that the OIDs can't be purely
numerical is that they might conflict with the indexer document numbers.
Kinda dumb I know, but there you go.

All the best,

Michael

Stephen De Gabrielle wrote:

> 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
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-devel mailing list
>greenstone-devel@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>