Ignore:
Timestamp:
2022-08-16T19:45:27+12:00 (20 months ago)
Author:
kjdon
Message:

now I have removed commented out code from last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/LOMPlugin.pm

    r36372 r36373  
    3232package LOMPlugin;
    3333
    34 use extrametautil;
    3534use ReadTextFile;
    3635use MetadataPass;
     
    177176    }
    178177    $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
    198179    return 1;
    199180}
Note: See TracChangeset for help on using the changeset viewer.