Ignore:
Timestamp:
2011-03-28T10:41:58+13:00 (13 years ago)
Author:
sjm84
Message:

Phase one of commiting the files changed to extend the DSpace exporting capabilities to include more than just dublin core metadata

File:
1 edited

Legend:

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

    r23387 r23824  
    368368    my ($handle,$docroot,$nondoctype) = @_;
    369369   
    370     print $handle '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . "\n";
     370   
     371    #print $handle '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . "\n";
     372   
     373    #For Dspace must be UTF in lower case
     374    print $handle '<?xml version="1.0" encoding="utf-8" standalone="no"?>' . "\n";
    371375   
    372376    if (!defined $nondoctype){
     
    386390    print $handle "</$docroot>\n" if defined $docroot;
    387391}
     392
     393
     394sub output_general_xml_header
     395{
     396    my $self = shift (@_);
     397    my ($handle,$docroot,$opt_attributes,$opt_dtd, $opt_doctype) = @_;
     398   
     399    print $handle '<?xml version="1.0" encoding="utf-8" standalone="no"?>' . "\n";
     400   
     401    if (defined $opt_dtd) {
     402        my $doctype = (defined $opt_doctype) ? $opt_doctype : $docroot;
     403    print $handle "<!DOCTYPE $doctype SYSTEM \"$opt_dtd\">\n";
     404    }
     405
     406    if (defined $docroot) {
     407        my $full_docroot = $docroot;
     408        if (defined $opt_attributes) {
     409          $full_docroot .= " $opt_attributes";
     410        }
     411
     412        print $handle "<$full_docroot>\n"
     413      }
     414}
     415
     416sub output_general_xml_footer
     417{
     418    output_xml_footer(@_);
     419}
     420
    388421
    389422sub process {
Note: See TracChangeset for help on using the changeset viewer.