Changeset 8895


Ignore:
Timestamp:
2005-01-12T16:11:00+13:00 (19 years ago)
Author:
chi
Message:

Modification of the validated METS format in the docmets.xml.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/docsave.pm

    r8854 r8895  
    184184    my $doc_mets_file
    185185        = &util::filename_cat ($self->{'archive_dir'},$doc_dir, "docmets.xml");
    186    
     186
    187187    if ($save_as eq "GA") {
    188188        $short_doc_file = util::filename_cat ($doc_dir, "doc.xml");
     
    226226        $self->output_mets_xml_header('docsave::OUTDOC_METS', $OID);
    227227        $doc_obj->output_mets_section('docsave::OUTDOC_METS',
    228                       $doc_obj->get_top_section(),
    229                       $import_working_dir);
     228                      $doc_obj->get_top_section());
    230229        $self->output_mets_xml_footer('docsave::OUTDOC_METS');
    231230       
     
    585584
    586585    print $handle '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . "\n";
    587     print $handle '<!DOCTYPE Archive SYSTEM "http://greenstone.org/dtd/Archive/1.0/Archive.dtd">' . "\n";
    588     print $handle '<mets:mets OBJID="'. $OID. ':2">' . "\n";
     586    print $handle '<mets:mets xmlns:mets="http://www.loc.gov/METS/"' . "\n";
     587    print $handle '           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' . "\n";
     588    print $handle '           xmlns:gsdl3="http://www.greenstone.org/namespace/gsdlmetadata/1.0/"' . "\n";
     589    print $handle '           xmlns:xlink="http://www.w3.org/TR/xlink"' ."\n";
     590    print $handle '           xsi:schemaLocation="http://www.loc.gov/METS/' . "\n";
     591    print $handle '           http://www.loc.gov/standards/mets/mets.xsd' . "\n";
     592    print $handle '           http://www.greenstone.org/namespace/gsdlmetadata/1.0/' . "\n";
     593    print $handle '           http://www.greenstone.org/namespace/gsdlmetadata/1.0/gsdl_metadata.xsd"' . "\n";
     594    print $handle '           OBJID="'. $OID. ':2">' . "\n";
    589595}
    590596
     
    600606
    601607    print $handle '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . "\n";
    602 #    print $handle '<!DOCTYPE Archive SYSTEM "http://greenstone.org/dtd/Archive/1.0/Archive.dtd">' . "\n";
     608#    print $handle '<!DOCTYPE Archive SYSTEM "http://greenstone.org/dtd/Archive/1.0/Archive.dtd">'."\n";
    603609    print $handle '<dublin_core>' . "\n";
    604610}
Note: See TracChangeset for help on using the changeset viewer.