Changeset 1044


Ignore:
Timestamp:
2000-03-22T13:59:40+12:00 (24 years ago)
Author:
nzdl
Message:

don't output doctype field to gdbm if document already has metadata called
doctype

File:
1 edited

Legend:

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

    r900 r1044  
    239239    else { print $handle "[$doc_OID.$section]\n"; }
    240240
    241     # output the fact that this document is a document
    242     print $handle "<doctype>doc\n";
     241    # output the fact that this document is a document (unless doctype
     242    # has been set to something else from within a plugin
     243    my $dtype = $doc_obj->get_metadata_element ($section, "doctype");
     244    if (!defined $dtype || $dtype !~ /\w/) {
     245        print $handle "<doctype>doc\n";
     246    }
    243247
    244248    # output whether this node contains text
Note: See TracChangeset for help on using the changeset viewer.