Changeset 22232

Show
Ignore:
Timestamp:
04.06.2010 11:36:07 (9 years ago)
Author:
mdewsnip
Message:

New OAIMetadataXMLPlugin.pm for extracting information from OAI servers where metadata.xml files specify what to download from the OAI server. Done for Koha integration, but may be useful for other OAI servers. By Jeffrey Ke at DL Consulting Ltd.

Location:
main/trunk/greenstone2/perllib
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm

    r21584 r22232  
    564564   my $doc_dir = ""; 
    565565   my $doc_dir_rest = $OID; 
     566 
    566567   # remove any \ and / from the OID 
    567568   $doc_dir_rest =~ s/[\\\/]//g; 
     569 
     570   # Remove ":" if we are on Windows OS, as otherwise they get confused with the drive letters 
     571   $doc_dir_rest =~ s/\://g if ($ENV{'GSDLOS'} =~ /^windows$/i); 
     572 
    568573   my $doc_dir_num = 0; 
    569574 
  • main/trunk/greenstone2/perllib/strings.properties

    r22216 r22232  
    10651065OAIPlugin.metadata_set.dc: Use the dc prefix. Will map qualified dc elements into their Greenstone form, eg spatial becomes dc.Coverage^spatial. 
    10661066 
     1067OAIMetadataXMLPlugin.oai_server_http_path: HTTP Path to the OAI server - e.g. http://test.com/oai_server/oai.pl 
     1068 
     1069OAIMetadataXMLPlugin.metadata_prefix: OAI metadata prefix - default oai_dc 
     1070 
     1071OAIMetadataXMLPlugin.koha_mode: If specified, the plugin will try to generate the oaiextracted.koharecordlink metadata. This metadata contains the link back to Koha document. 
     1072 
    10671073OggVorbisPlugin.add_technical_metadata:Add technical (eg. bitrate) metadata. 
    10681074