Changeset 11860


Ignore:
Timestamp:
2006-05-26T09:48:47+12:00 (18 years ago)
Author:
mdewsnip
Message:

Removed the "-michael_mode" option from the plugin, since it is no longer needed now I have an updated version of the images.

Location:
trunk/cic-hcap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/etc/collect.cfg

    r11857 r11860  
    99
    1010plugin      GAPlug
    11 plugin      CICPlug -cache_directory C:\\mdewsnip\\CIC\\Cache -images_directory C:\\mdewsnip\\CIC\\Images -michael_mode
     11plugin      CICPlug -cache_directory C:\\mdewsnip\\CIC\\Cache -images_directory C:\\mdewsnip\\CIC\\Images
    1212plugin      ArcPlug
    1313plugin      RecPlug -use_metadata_files
  • trunk/cic-hcap/perllib/plugins/CICPlug.pm

    r11852 r11860  
    3939my $arguments =
    4040  [
    41     { 'name' => "michael_mode",
    42       'type' => "flag",
    43       'reqd' => "no" },
    4441    { 'name' => "images_directory",
    4542      'type' => "string",
     
    730727    $place_image_file_path =~ s/^[A-Z]:/$self->{'images_directory'}/;
    731728
    732     # A fudge for me because I don't have the updated images...
    733     if ($self->{'michael_mode'}) {
    734     my $place_image_directory = $place_image_location;
    735     $place_image_directory =~ s/^.*images REVISED\\//;
    736     $place_image_directory =~ s/\s*\(.*?\)//g;
    737     $place_image_directory =~ s/\....$//;
    738     $place_image_file_path =~ s/images REVISED\\(.*?)$/images REVISED\\$place_image_directory\\$1/;
    739     }
    740 
    741729    # Create a new section for each image of the place
    742730    my $place_image_section = $doc_obj->insert_section($doc_obj->get_end_child($doc_obj->get_top_section()));
     
    745733
    746734    if (!-f $place_image_file_path) {
    747     unless ($self->{'michael_mode'}) {
    748         print STDERR "<ProcessingError n='$place_image_file_path' p='CICPlug' r='Does not exist'>\n" if ($self->{'gli'});
    749         print STDERR "Error: Image $place_image_file_path does not exist.\n";
    750     }
     735    print STDERR "<ProcessingError n='$place_image_file_path' p='CICPlug' r='Does not exist'>\n" if ($self->{'gli'});
     736    print STDERR "Error: Image $place_image_file_path does not exist.\n";
    751737    return;
    752738    }
Note: See TracChangeset for help on using the changeset viewer.