Ignore:
Timestamp:
2018-10-25T21:17:02+13:00 (6 years ago)
Author:
ak19
Message:

Instead of the docoid being stored in the docsql-<OID>.xml filename, all filenames produced are back to being docsql.xml, but the root element Archive now contains the doc oid as attribute: <Archive docoid="oid">

File:
1 edited

Legend:

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

    r32536 r32542  
    190190    # only output the header if we have started a new doc
    191191    if (!$self->is_group() || $self->{'new_doc_dir'}) {
    192     $self->output_xml_header($outhandler);
     192    $self->output_xml_header($outhandler, $doc_obj->get_OID());
    193193    }
    194194 
     
    238238sub output_xml_header {
    239239    my $self = shift (@_);
    240     my ($outhandle) = @_;
     240    my ($outhandle, $doc_oid) = @_;
    241241
    242242    print $outhandle '<?xml version="1.0" encoding="utf-8" standalone="no"?>' . "\n";
Note: See TracChangeset for help on using the changeset viewer.