NAME

ldif2spt.pl - Munge a collection of LDIF records into SPT format


SYNOPSIS

  ldif2spt.pl <ldif.txt >spt.txt


DESCRIPTION

The ldif2spt.pl program accepts one or more LDIF records in the Dublin Core schema (included in the support subdirectory of this distribution), and uses them as the basis for new records created in the Scout Portal Toolkit (SPT) bulk import/export format for merging into an SPT database. This provides a potential migration path from LDAP based subject gateways to the SPT software, and an easy way to offer service using both packages in parallel.


OPTIONS

-d
Turn on debugging output


EXAMPLE

  $ cat foo.ldif
  dn: cn=0001,dc=martinh,dc=net
  objectclass: dublincoreobject
  cn: 0001
  dcType: Book
  dcTitle: Cities of the Red Night
  dcreator: William S. Burroughs
  dcDescription: Burroughs is an awe-inspiring poetic magician.  I 
   believe Cities of the Red Night is his masterpiece - Christopher 
   Isherwood
  dcPublisher: Picador
  dcDate: 1981
  dcIdentifier: http://www.hyperreal.com/wsb/
  dcIdentifier: urn:ddc:813
  dcPublisher: First published in Great Britain by John Calder 
   (Publishers) Ltd.  This edition 1982.
  $ ldif2spt.pl <foo.ldif
  Cities of the Red Night         Burroughs is an awe-inspiring
  poetic magician.  I believe Cities of the Red Night is his
  masterpiece - Christopher Isherwood
  http://www.hyperreal.com/wsb/  1981    1981    1981    1981    0

(SPT records use the tab character as a delimiter - but the above has been word wrapped for readability)


SEE ALSO

spt2ldif.pl


COPYRIGHT

Copyright (c) 2002, Martin Hamilton <imeshtk-utils@martinh.net> All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

It was developed at the Department of Computer Science at Loughborough University, as part of the joint JISC/NSF IMesh Toolkit project.


AUTHOR

Martin Hamilton <imeshtk-utils@martinh.net>