Changeset 36373 for main/trunk/greenstone2/perllib/plugins/LOMPlugin.pm
- Timestamp:
- 2022-08-16T19:45:27+12:00 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/LOMPlugin.pm
r36372 r36373 32 32 package LOMPlugin; 33 33 34 use extrametautil;35 34 use ReadTextFile; 36 35 use MetadataPass; … … 177 176 } 178 177 $self->{'lom_srcdoc'} = undef; # reset for next file to be processed 179 # Indexing into the extrameta data structures requires the filename's style of slashes to be in URL format 180 # Then need to convert the filename to a regex, no longer to protect windows directory chars \, but for 181 # protecting special characters like brackets in the filepath such as "C:\Program Files (x86)\Greenstone". 182 if (0) { 183 $file_re = &util::filepath_to_url_format($file_re); 184 $file_re = &util::filename_to_regex($file_re); 185 $self->{'lom_srcdoc'} = undef; # reset for next file to be processed 186 187 &extrametautil::addmetakey($extrametakeys, $file_re); 188 &extrametautil::setmetadata($extrametadata, $file_re, $self->{'saved_metadata'}); 189 if (defined $lom_srcdoc) { 190 # copied from oaiplugin 191 if (!defined &extrametautil::getmetafile($extrametafile, $file_re)) { 192 &extrametautil::setmetafile($extrametafile, $file_re, {}); 193 } 194 #maps the file to full path 195 &extrametautil::setmetafile_for_named_file($extrametafile, $file_re, $file, $filename_full_path); 196 } 197 } 178 198 179 return 1; 199 180 }
Note:
See TracChangeset
for help on using the changeset viewer.