Changeset 8220 for trunk/gsdl/perllib/doc.pm
- Timestamp:
- 2004-10-06T05:36:52+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/doc.pm
r7929 r8220 37 37 use util; 38 38 use ghtml; 39 use File::stat; 39 40 ##use hashdoc; 40 41 … … 55 56 'text'=>"", 56 57 'OIDtype'=>"hash"}, $class; 58 59 #GRB: Added code to set lastmodified for OAI purposes 60 if ((defined $doc_type) && (defined $source_filename) && (-e $source_filename)) { 61 my $file_stat = stat($source_filename); 62 my $mtime = $file_stat->mtime; 63 $self->add_utf8_metadata($self->get_top_section(), "lastmodified", $file_stat->mtime); 64 } 65 #GRB: end inserted code 57 66 58 67 if (defined $source_filename) { … … 1051 1060 1052 1061 # add_metadata assumes the text is in (extended) ascii form. For 1053 # text which has h been alreadyconverted to the UTF-8 format use1062 # text which has already been converted to the UTF-8 format use 1054 1063 # add_utf8_metadata. 1055 1064 sub add_metadata {
Note:
See TracChangeset
for help on using the changeset viewer.