Ignore:
Timestamp:
1998-11-30T15:09:06+13:00 (25 years ago)
Author:
sjboddie
Message:

Allowed for adding date to infodb

File:
1 edited

Legend:

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

    r35 r38  
    101101            ($saved_classifications->{$key}->{'parent'} eq "");
    102102        $self->write_to_gdbm ($handle, $key, $saved_classifications->{$key}->{'title'},
    103                   undef, undef,
     103                  undef, undef, undef, undef,
    104104                  $saved_classifications->{$key}->{'contains'}, undef,
    105                   $saved_classifications->{$key}->{'parent'}, undef);
     105                  $saved_classifications->{$key}->{'parent'}, undef, undef);
    106106    }
    107107    return;
     
    129129    my $title = $doc_obj->get_metadata_element($section, "Title");
    130130    my $source = $doc_obj->get_metadata_element($section, "Source");
     131    my $date = $doc_obj->get_metadata_element($section, "Date");
    131132    my $jobnumber = $doc_obj->get_source_filename();
    132133
     
    182183        }
    183184        } else {
    184         $self->write_to_gdbm($handle, $mapped_section, $title, $creator, $jobnumber, undef,
    185                      $self->{'num_sections'}, $parent, $classification, $OID, $source);
     185        $self->write_to_gdbm($handle, $mapped_section, $title, $creator, $source, $date, $jobnumber, undef,
     186                     $self->{'num_sections'}, $parent, $classification, $OID);
    186187        }
    187188    } else {
     
    209210        $contains .= ":" if $contains ne "";
    210211        $contains .= join ":", @children;
    211         $self->write_to_gdbm ($handle, $mapped_section, $title, $creator,
    212                       $jobnumber, $contains, $self->{'num_sections'},
    213                       $parent, $classification, $OID, $source);
     212        $self->write_to_gdbm ($handle, $mapped_section, $title, $creator, $source,
     213                      $date, $jobnumber, $contains, $self->{'num_sections'},
     214                      $parent, $classification, $OID);
    214215
    215216        if ($doc_obj->get_text_length($section) > 0) {
     
    217218            $self->map_section($doctype, "$section.0");
    218219            $self->write_to_gdbm ($handle, $intromapsection, "<i>(introductory text)</i>", $creator,
    219                       $jobnumber, undef, $self->{'num_sections'},
    220                       $mapped_section, undef, $OID, $source);
     220                      $source, $date, $jobnumber, undef, $self->{'num_sections'},
     221                      $mapped_section, undef, $OID);
    221222        }
    222223        }
     
    242243sub write_to_gdbm {
    243244    my $self = shift (@_);
    244     my ($handle, $section, $title, $creator, $jobnumber, $contains,
    245     $docnum, $parent, $classification, $OID) = @_;
     245    my ($handle, $section, $title, $creator, $source, $date,
     246    $jobnumber, $contains, $docnum, $parent, $classification, $OID) = @_;
    246247
    247248    print $handle "[$section]\n";
     
    249250    print $handle "<a>$creator\n" if defined $creator;
    250251    print $handle "<s>$source\n" if defined $source;
     252    print $handle "<i>$date\n" if defined $date;
    251253    print $handle "<j>$jobnumber\n" if defined $jobnumber;
    252254    print $handle "<c>$contains\n" if defined $contains;
Note: See TracChangeset for help on using the changeset viewer.