Changeset 24464 for main/trunk/greenstone2/perllib/collConfigxml.pm
- Timestamp:
- 2011-08-24T16:21:08+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/collConfigxml.pm
r24055 r24464 57 57 "languageMetadata" => "languagemetadata", 58 58 "buildType" => "buildtype", 59 "buildOption" => "buildOption" 59 "orthogonalBuildTypes" => "orthogonalbuildtypes", 60 "buildOption" => "buildOption" 60 61 }; 61 62 # A hash structure which is returned by sub read_cfg_file. … … 79 80 # ("plugin", "option") 80 81 my $currentIndex = 0; 81 my $arrayexp = q/^(index|level|indexSubcollection|indexLanguage )$/;82 my $arrayexp = q/^(index|level|indexSubcollection|indexLanguage|orthogonalBuildTypes)$/; 82 83 my $arrayarrayexp= q/^(plugin|classifier)$/; #|buildOption)$/; 83 84 my $hashexp = q/^(subcollection)$/; # add other element names that should be represented by hash expressions here … … 129 130 my $value = $_{'value'}; 130 131 my $type = $_{'type'}; 132 my $orthogonal = $_{'orthogonal'}; 131 133 132 134 # for subcollections … … 169 171 170 172 #@ Handling indexer: mgpp/mg/lucene; stringexp 173 #@ Handling orthogonal indexers: audioDB; arrayexp 171 174 elsif ($element eq "search") { 172 $data->{'buildtype'} = $type; 175 if ((defined $orthogonal) && ($orthogonal =~ m/^(true|on|1)$/i)) { 176 push(@{$data->{'orthogonalbuildtypes'}},$type); 177 } 178 else { 179 $data->{'buildtype'} = $type; 180 } 173 181 } 174 182 175 176 177 178 179 183 elsif ($element eq "store_metadata_coverage") 184 { 185 ## print STDERR "*&*&*&*&*& HERE &*&*&*&*&*&*"; 186 $data->{'store_metadata_coverage'} = $value; 187 } 180 188 181 189 #@ Handling searchtype: plain,form; arrayexp … … 363 371 print STDERR "*** default level: ".$data->{"defaultlevel"}."\n" if (defined $data->{"defaultlevel"}); 364 372 print STDERR "*** build type: ".$data->{"buildtype"}."\n" if (defined $data->{"buildtype"}); 373 print STDERR "*** orthogonal build types: ".join(",",$data->{"orthogonalbuildtypes"})."\n" if (defined $data->{"orthogonalbuildtypes"}); 365 374 print STDERR "*** search types: \n"; 366 375 print STDERR join(",",@{$data->{"searchtype"}})."\n" if (defined $data->{"searchtype"});
Note:
See TracChangeset
for help on using the changeset viewer.