Changeset 28215


Ignore:
Timestamp:
2013-09-05T11:18:17+12:00 (11 years ago)
Author:
kjdon
Message:

assume that no indexoptions line in config file actually means no index options. otherwise we unset them all in GLI, and magically they are all still there.

Location:
main/trunk/greenstone2/perllib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/mgbuilder.pm

    r28121 r28215  
    9999    $self->{'accentfold'} = 0; #not yet implemented for mg
    100100   
    101     if (!defined($self->{'collect_cfg'}->{'indexoptions'})) {
    102     # just use default options
    103     $self->{'casefold'} = 1;
    104     $self->{'stem'} = 1;
    105    
    106     } else {
     101    if (defined($self->{'collect_cfg'}->{'indexoptions'})) {
    107102    foreach my $option (@{$self->{'collect_cfg'}->{'indexoptions'}}) {
    108103        if ($option =~ /stem/) {
  • main/trunk/greenstone2/perllib/mgppbuilder.pm

    r28121 r28215  
    124124    $self->{'accentfold'} = 0;
    125125   
    126     if (!defined($self->{'collect_cfg'}->{'indexoptions'})) {
    127     # just use default options
    128     $self->{'casefold'} = 1;
    129     $self->{'stem'} = 1;
    130     $self->{'accentfold'} = 1;
    131     } else {
     126    if (defined($self->{'collect_cfg'}->{'indexoptions'})) {
    132127    foreach my $option (@{$self->{'collect_cfg'}->{'indexoptions'}}) {
    133128        if ($option =~ /stem/) {
Note: See TracChangeset for help on using the changeset viewer.