Ignore:
Timestamp:
2011-07-22T20:24:23+12:00 (10 years ago)
Author:
ak19
Message:

More changes to do with the ex. prefixed to embedded metadata (that may have an additional metadata set as namespace qualifier). The C code now removes the ex. prefix only if there are no other metadataset qualifiers in the metadata name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/DSpacePlugin.pm

    r24219 r24306  
    286286    }
    287287
    288     my $mimetype_list = $self->{'saved_metadata'}->{'dc.Format^mimetype'};
     288    my $mimetype_list = $self->{'saved_metadata'}->{'ex.dc.Format^mimetype'};
    289289    my ($doc_file_mimes, $assoc_file_mimes) = $self->read_content($dir, $only_first_doc, $first_inorder_ext,
    290290                                  $first_inorder_mime, $mimetype_list);
     
    300300    push(@$extrametakeys,$file_re);
    301301
    302     if (defined $self->{'saved_metadata'}->{'dc.Format^extent'}) {
    303     delete $self->{'saved_metadata'}->{'dc.Format^extent'};
     302    if (defined $self->{'saved_metadata'}->{'ex.dc.Format^extent'}) {
     303    delete $self->{'saved_metadata'}->{'ex.dc.Format^extent'};
    304304    }
    305305
    306306    if (defined $mimetype_list) {
    307     delete $self->{'saved_metadata'}->{'dc.Format^mimetype'};
     307    delete $self->{'saved_metadata'}->{'ex.dc.Format^mimetype'};
    308308
    309309    # Temporarily store associate file info in metadata table
     
    369369    if ($metaname ne "description" || $qualifier ne "provenance") {
    370370        $metaname .= "^$qualifier" if ($qualifier ne "none" && $qualifier ne "");
    371         $self->{'metaname'} = "dc.\u$metaname";
     371        $self->{'metaname'} = "ex.dc.\u$metaname";
    372372    }
    373373    }
Note: See TracChangeset for help on using the changeset viewer.