Changeset 20787

Show
Ignore:
Timestamp:
07.10.2009 13:57:17 (10 years ago)
Author:
kjdon
Message:

don't overwrite namespace for gi metadata - eg we get gi.Sourcedoc which is the document that this metadata belongs to. don't want to change that to dc.Sourcedoc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/OAIPlugin.pm

    r20451 r20787  
    492492        # specified namespace 
    493493        if ($self->{'metadata_set'} ne "auto") { 
    494         $metaname =~ s/^([^\.]*)\./$self->{'metadata_set'}\./; 
    495         if ($self->{'metadata_set'} eq "dc") { 
    496             # convert qualified dc terms to gs version, e.g. 
    497             # spatial becomes coverage^spatial 
    498             $metaname = $self->remap_dc_metadata($metaname); 
     494        if ($metaname !~ /^gi\./) { # hack to not overwrite gi metadata 
     495            $metaname =~ s/^([^\.]*)\./$self->{'metadata_set'}\./; 
     496            if ($self->{'metadata_set'} eq "dc") { 
     497            # convert qualified dc terms to gs version, e.g. 
     498            # spatial becomes coverage^spatial 
     499            $metaname = $self->remap_dc_metadata($metaname); 
     500            } 
    499501        } 
    500502        }