Changeset 11916 for trunk/cic-hcap


Ignore:
Timestamp:
2006-06-09T16:10:56+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added a check to ensure that PDFs aren't used as institution best images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/perllib/plugins/CICPlug.pm

    r11915 r11916  
    289289        }
    290290
     291        # PDFs are not allowed for institution best place images
     292        if ($institution_best_place_image_location =~ /.pdf$/i) {
     293        print STDERR "<ProcessingError n='Institution $institution_id' p='CICPlug' r='PDF not allowed for best image'>\n" if ($self->{'gli'});
     294        print STDERR "Error: Institution $institution_id -- PDF not allowed for best image.\n";
     295        print $fail_log_handle "Error: Institution $institution_id -- PDF not allowed for best image.\n";
     296        $self->{'num_not_processed'}++;
     297        next;
     298        }
     299
    291300        $self->generate_place_image_variant($institution_doc_obj, $institution_best_place_image_location, "medium");
    292301        $self->generate_place_image_variant($institution_doc_obj, $institution_best_place_image_location, "large");
Note: See TracChangeset for help on using the changeset viewer.