Changeset 8678


Ignore:
Timestamp:
2004-11-26T09:30:59+13:00 (19 years ago)
Author:
kjdon
Message:

cover images are now turned on by default, and the option is changed to -no_cover_image

File:
1 edited

Legend:

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

    r8510 r8678  
    123123    'type' => "flag",
    124124    'reqd' => "no"},
    125       { 'name' => "cover_image",
    126     'desc' => "{BasPlug.cover_image}",
     125      { 'name' => "no_cover_image",
     126    'desc' => "{BasPlug.no_cover_image}",
    127127    'type' => "flag",
    128128    'reqd' => "no" } ];
     
    295295    $self->{'num_blocked'} = 0;
    296296    $self->{'num_archives'} = 0;
    297    
     297    $self->{'cover_image'} = 1; # cover image is on by default
     298
    298299    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    299300    $self->{'option_list'} = [ $options ];
    300301   
     302    my $no_cover_image = 0;
    301303    # general options available to all plugins
    302304    if (!parsargv::parse(\@_,
     
    317319             q^no_bibliography^, \$self->{'no_biblio'},
    318320             qq^maximum_century/-?\\d{1,2}( ?B\\.C\\.E\\.)?/-1^, \$self->{'max_century'},
    319              q^cover_image^, \$self->{'cover_image'},
     321             q^no_cover_image^, \$no_cover_image,
    320322             q^separate_cjk^, \$self->{'separate_cjk'},
    321323             q^smart_block^, \$self->{'smart_block'},
     
    328330    $self->{'file_blocks'} = {};
    329331
     332    $self->{'cover_image'} = 0 if ($no_cover_image);
     333   
    330334    return bless $self, $class;
    331335}
Note: See TracChangeset for help on using the changeset viewer.