Changeset 1686


Ignore:
Timestamp:
2000-11-22T10:33:26+13:00 (23 years ago)
Author:
jrm21
Message:

HTMLPlug no longer blocks .pdf files. (also updated reference to this in
BasPlug)

Location:
trunk/gsdl/perllib/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r1605 r1686  
    6464    print STDERR "                     about input files you don't care about. Each plugin may or may\n";
    6565    print STDERR "                     not have a default block_exp. e.g. by default HTMLPlug blocks\n";
    66     print STDERR "                     any files with .gif, .jpg, .jpeg, .png, .pdf, .rtf or .css\n";
     66    print STDERR "                     any files with .gif, .jpg, .jpeg, .png, .rtf or .css\n";
    6767    print STDERR "                     file extensions.\n";
    6868    print STDERR "   -extract_acronyms Extract acronyms from within text and set as metadata\n\n";
  • trunk/gsdl/perllib/plugins/HTMLPlug.pm

    r1653 r1686  
    6565    print STDERR "   -w3mir                 Set if w3mir was used to generate input file structure.\n";
    6666    print STDERR "   -assoc_files           Perl regular expression of file extensions to associate with\n";
    67     print STDERR "                          html documents. Defaults to '(?i)\.(jpe?g|gif|png|css|pdf)\$'\n";
     67    print STDERR "                          html documents. Defaults to '(?i)\.(jpe?g|gif|png|css)\$'\n";
    6868    print STDERR "   -rename_assoc_files    Renames files associated with documents (e.g. images). Also\n";
    6969    print STDERR "                          creates much shallower directory structure (useful when creating\n";
     
    8585             q^hunt_creator_metadata^, \$self->{'hunt_creator_metadata'},
    8686             q^w3mir^, \$self->{'w3mir'},
    87              q^assoc_files/.*/(?i)\.(jpe?g|gif|png|css|pdf)$^, \$self->{'assoc_files'},
     87             q^assoc_files/.*/(?i)\.(jpe?g|gif|png|css)$^, \$self->{'assoc_files'},
    8888             q^rename_assoc_files^, \$self->{'rename_assoc_files'},
    8989             q^title_sub/.*/^, \$self->{'title_sub'},
     
    106106    my $self = shift (@_);
    107107
    108     return q^(?i)\.(gif|jpe?g|png|pdf|rtf|css)$^;
     108    return q^(?i)\.(gif|jpe?g|png|rtf|css)$^;
    109109}
    110110
     
    217217   
    218218    } else {
    219     # link is to some other type of file (image, pdf etc.) so we'll
     219    # link is to some other type of file (eg image) so we'll
    220220    # need to associate that file
    221221    return $front . $self->add_file ($href, $rl, $hash_part, $base_dir, $doc_obj, $section) . $back;
Note: See TracChangeset for help on using the changeset viewer.