Changeset 5617


Ignore:
Timestamp:
2003-10-14T10:39:54+13:00 (21 years ago)
Author:
kjdon
Message:

fixed a bug in the subcollection building stuff - it was getting the field list wrong

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgppbuilder.pm

    r5077 r5617  
    429429    }
    430430    }
     431
     432    #define the final field lists
     433    $self->make_final_field_list();
     434
    431435}
    432436
     
    724728    system ("mgpp_stem_idx$exe -b 4096 -s2 -f \"$fullindexprefix\" $osextra");
    725729    system ("mgpp_stem_idx$exe -b 4096 -s3 -f \"$fullindexprefix\" $osextra");
    726 
    727     #define the final field lists
    728     $self->make_final_field_list();
    729730   
    730731    # remove unwanted files
     
    935936    # go through the index definition and add each thing to a map, so we can easily check if it is already specified - when doing the metadata, we print out all the individual fields, but some may already be specified in the index definition, so we dont want to add those again.
    936937    foreach $field (@{$self->{'collect_cfg'}->{'indexes'}}) {
    937     my @fs = split(',', $field);
     938    # remove subcoll stuff
     939    my $parts = $field;
     940    $parts =~ s/:.*$//;
     941    my @fs = split(',', $parts);
    938942    foreach $f(@fs) {
    939         $specifiedfields->{$f}=1;
    940         push (@specifiedfieldorder, "$f");
     943        if (!defined $specifiedfields->{$f}) {
     944        $specifiedfields->{$f}=1;
     945        push (@specifiedfieldorder, "$f");
     946        }
    941947    }
    942948    }
Note: See TracChangeset for help on using the changeset viewer.