Changeset 20787


Ignore:
Timestamp:
2009-10-07T13:57:17+13:00 (12 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.

File:
1 edited

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        }
Note: See TracChangeset for help on using the changeset viewer.