Changeset 10514


Ignore:
Timestamp:
2005-08-16T12:14:23+12:00 (19 years ago)
Author:
kjdon
Message:

added in description_tags option, as it wasn't valid cos no longer inherit from HTMLPlug.

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

Legend:

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

    r10452 r10514  
    8686      { 'name' => "use_sections",
    8787    'desc' => "{PDFPlug.use_sections}",
    88     'type' => "flag" } ];
     88    'type' => "flag" },
     89       { 'name' => "description_tags",
     90     'desc' => "{HTMLPlug.description_tags}",
     91     'type' => "flag" }
     92];
    8993
    9094my $options = { 'name'     => "PDFPlug",
     
    149153    push(@$html_options,"-metadata_fields","Title,GENERATOR,date,author<Creator>");
    150154   
    151     if ($self->{'use_sections'}) {
     155    if ($self->{'use_sections'} || $self->{'description_tags'}) {
    152156    $self->{'description_tags'} = 1;
    153157    push(@$html_options,"-description_tags");
  • trunk/gsdl/perllib/plugins/RTFPlug.pm

    r10425 r10514  
    4242    'type' => "regexp",
    4343    'deft' => &get_default_process_exp(),
    44     'reqd' => "no" } ];
     44    'reqd' => "no" },
     45      { 'name' => "description_tags",
     46    'desc' => "{HTMLPlug.description_tags}",
     47    'type' => "flag" }
     48];
    4549
    4650my $options = { 'name'     => "RTFPlug",
     
    7478    push(@$text_options, "-input_encoding", "utf8");
    7579    push(@$text_options,"-extract_language");
     80    if ($self->{'description_tags'} == 1) {
     81    push(@$html_options, "-description_tags");
     82    }
    7683   
    7784
  • trunk/gsdl/perllib/plugins/WordPlug.pm

    r10496 r10514  
    4040    'type' => "regexp",
    4141    'deft' => &get_default_process_exp(),
    42     'reqd' => "no" }
     42    'reqd' => "no" },
     43      { 'name' => "description_tags",
     44    'desc' => "{HTMLPlug.description_tags}",
     45    'type' => "flag" }
    4346      ];
    4447
     
    152155    push(@$html_options,"-extract_language");
    153156    }
    154 
     157    if ($self->{'description_tags'} == 1) {
     158    push(@$html_options, "-description_tags");
     159    }
    155160    # Instruct HTMLPlug (when eventually accessed through read_into_doc_obj)
    156161    # to extract these metadata fields from the HEAD META fields
Note: See TracChangeset for help on using the changeset viewer.