Changeset 14558
- Timestamp:
- 2007-09-22T16:18:03+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/cfgread4gs3.pm
r14244 r14558 78 78 "index" => "indexes", 79 79 "plugin" => "plugin", 80 "plugout" => "plugout", 80 81 "indexOption" => "indexoptions", 81 82 "searchType" => "searchtype", … … 99 100 my $arrayexp = q/^(index|level|indexSubcollection|indexLanguage)$/; 100 101 my $arrayarrayexp= q/^(plugin|classifier)$/; 101 102 102 my $defaults = q/^(defaultIndex|defaultLevel|defaultIndexLanguage|languageMetadata)$/; 103 103 … … 147 147 $data->{$key} = []; 148 148 } 149 150 149 push (@{$data->{$key}},$name); 151 150 } … … 162 161 push (@{$data->{$key}},$name); 163 162 } 164 163 #@ plugout options 164 elsif ($element eq "plugout") { 165 $currentLevel = "plugout"; 166 my $key = $nameMap->{$currentLevel}; 167 if (!defined $data->{$key}) { 168 $data->{$key} = []; 169 } 170 if(defined $name and $name ne ""){ 171 push (@{$data->{$key}},$name); 172 } 173 else{ 174 push (@{$data->{$key}},"GAPlugout"); 175 } 176 } 177 if ($currentLevel eq "plugout" and $element eq "option") { 178 my $key = $nameMap->{$currentLevel}; 179 if (defined $name and $name ne ""){ 180 push (@{$data->{$key}},$name); 181 } 182 if (defined $value and $value ne ""){ 183 push (@{$data->{$key}},$value); 184 } 185 } 165 186 #@ use hash of hash of strings: hashexp 166 187 elsif ($element eq "subcollection") {
Note:
See TracChangeset
for help on using the changeset viewer.