Changeset 38 for trunk/gsdl/perllib/mgbuildproc.pm
- Timestamp:
- 1998-11-30T15:09:06+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/mgbuildproc.pm
r35 r38 101 101 ($saved_classifications->{$key}->{'parent'} eq ""); 102 102 $self->write_to_gdbm ($handle, $key, $saved_classifications->{$key}->{'title'}, 103 undef, undef, 103 undef, undef, undef, undef, 104 104 $saved_classifications->{$key}->{'contains'}, undef, 105 $saved_classifications->{$key}->{'parent'}, undef );105 $saved_classifications->{$key}->{'parent'}, undef, undef); 106 106 } 107 107 return; … … 129 129 my $title = $doc_obj->get_metadata_element($section, "Title"); 130 130 my $source = $doc_obj->get_metadata_element($section, "Source"); 131 my $date = $doc_obj->get_metadata_element($section, "Date"); 131 132 my $jobnumber = $doc_obj->get_source_filename(); 132 133 … … 182 183 } 183 184 } 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); 186 187 } 187 188 } else { … … 209 210 $contains .= ":" if $contains ne ""; 210 211 $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); 214 215 215 216 if ($doc_obj->get_text_length($section) > 0) { … … 217 218 $self->map_section($doctype, "$section.0"); 218 219 $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); 221 222 } 222 223 } … … 242 243 sub write_to_gdbm { 243 244 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) = @_; 246 247 247 248 print $handle "[$section]\n"; … … 249 250 print $handle "<a>$creator\n" if defined $creator; 250 251 print $handle "<s>$source\n" if defined $source; 252 print $handle "<i>$date\n" if defined $date; 251 253 print $handle "<j>$jobnumber\n" if defined $jobnumber; 252 254 print $handle "<c>$contains\n" if defined $contains;
Note:
See TracChangeset
for help on using the changeset viewer.