Changeset 29101

Show
Ignore:
Timestamp:
19.06.2014 10:40:17 (5 years ago)
Author:
kjdon
Message:

added -use_realistic_book option. htis makes user you are converting to HTML, then just passes the option to HTMLPlugin secondary plugin

Files:
1 modified

Legend:

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

    r24476 r29101  
    100100     { 'name' => "description_tags", 
    101101       'desc' => "{HTMLPlugin.description_tags}", 
    102        'type' => "flag" } 
     102       'type' => "flag" }, 
     103      { 'name' => "use_realistic_book", 
     104        'desc' => "{HTMLPlugin.tidy_html}", 
     105    'type' => "flag"} 
    103106     ]; 
    104107 
     
    149152    # choose html ?? is this the best option 
    150153    $self->{'convert_to'} = "html"; 
     154    } 
     155    if ($self->{'use_realistic_book'}) { 
     156    if ($self->{'convert_to'} ne "html") { 
     157        print STDERR "PDFs will be converted to HTML for realistic book functionality\n"; 
     158        $self->{'convert_to'} = "html"; 
     159    } 
    151160    } 
    152161    # set convert_to_plugin and convert_to_ext 
     
    189198        $self->{'description_tags'} = 1; 
    190199        push(@$specific_options, "-description_tags"); 
     200    } 
     201    if ($self->{'use_realistic_book'}) { 
     202        push(@$specific_options, "-use_realistic_book"); 
    191203    } 
    192204    }