Ignore:
Timestamp:
1998-11-26T15:32:13+13:00 (25 years ago)
Author:
sjboddie
Message:

Allowed for adding the 'Source' attribute to the infodb

File:
1 edited

Legend:

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

    r17 r35  
    128128
    129129    my $title = $doc_obj->get_metadata_element($section, "Title");
     130    my $source = $doc_obj->get_metadata_element($section, "Source");
    130131    my $jobnumber = $doc_obj->get_source_filename();
    131132
     
    182183        } else {
    183184        $self->write_to_gdbm($handle, $mapped_section, $title, $creator, $jobnumber, undef,
    184                      $self->{'num_sections'}, $parent, $classification, $OID);
     185                     $self->{'num_sections'}, $parent, $classification, $OID, $source);
    185186        }
    186187    } else {
     
    210211        $self->write_to_gdbm ($handle, $mapped_section, $title, $creator,
    211212                      $jobnumber, $contains, $self->{'num_sections'},
    212                       $parent, $classification, $OID);
     213                      $parent, $classification, $OID, $source);
    213214
    214215        if ($doc_obj->get_text_length($section) > 0) {
     
    217218            $self->write_to_gdbm ($handle, $intromapsection, "<i>(introductory text)</i>", $creator,
    218219                      $jobnumber, undef, $self->{'num_sections'},
    219                       $mapped_section, undef, $OID);
     220                      $mapped_section, undef, $OID, $source);
    220221        }
    221222        }
     
    247248    print $handle "<t>$title\n" if defined $title;
    248249    print $handle "<a>$creator\n" if defined $creator;
     250    print $handle "<s>$source\n" if defined $source;
    249251    print $handle "<j>$jobnumber\n" if defined $jobnumber;
    250252    print $handle "<c>$contains\n" if defined $contains;
Note: See TracChangeset for help on using the changeset viewer.