[greenstone-devel] patch -OIDtype assigned

From Stephen.DeGabrielle@nt.gov.au
DateFri, 10 Dec 2004 17:52:46 +0930
Subject [greenstone-devel] patch -OIDtype assigned
Hi here is my simple patch for assigning the OID used by Greenstone.

It works like this:

you put an identifier in the dc.Identifier metadata
use import.pl -OIDtype assigned
and you get documents with identifiers with a D in front (It doesn't like
numeric only identifiers - I must try fix this)

Note - this is not recommended for a production system:
- no collision detection
- only tested with simple alphanumeric id's. Spa ces slas/hes or per.iods
are likely to give entertaining results of dubious utility.

Reasons for doing this:
- Unique identifiers are created all other the place (ISBNs , URL's ,
Barcodes)
- Greenstone URLS persist only as long as the document is unchanging, or
until the next build, and I can't control the shedule which OAI clients
harvest.
- I want something bookmarkable with a long life.
I can now have other apps construct URL's to retrieve specific
documents like http://localhost:1026/gsdl?a=d&c=database&d=D7522
Examples of other apps include javascript favlets/Bookmarklets for my
browser and my ILMS OPAC/Portal software(ISBN's).

HELP:
>> I can't work out how to activate it through the GLI import options
section. <<
>> can someone give me a hint? <<


Here are the files for anyone wanting to have a go.


Have a good weekend,

Stephen

----------
Stephen De Gabrielle
NT Library


<<attachment>>
Type: application/octet-stream
Filename: import.pl

download


<<attachment>>
Type: application/octet-stream
Filename: import.xml

download


<<attachment>>
Type: application/octet-stream
Filename: strings_en.rb

download


<<attachment>>
Type: application/octet-stream
Filename: doc.pm

download


<<attachment>>
Type: application/octet-stream
Filename: docproc.pm

download


<<attachment>>
Type: application/octet-stream
Filename: strings.rb

download