Changeset 30380 for main/trunk/greenstone2/perllib/buildConfigxml.pm
- Timestamp:
- 2016-02-24T04:32:11+13:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/buildConfigxml.pm
r29540 r30380 754 754 } 755 755 my $content = ''; #use buttonname first, then metadata 756 my $hfilename = ''; 757 my $metadataname = ''; 756 758 if ($classname eq "DateList") { 757 759 $content = "Date"; … … 759 761 for (my $j=0; $j<scalar(@$cl); $j++) { 760 762 my $arg = @$cl[$j]; 763 if ($classname eq "Hierarchy") 764 { 765 if ($arg eq "-hfile") 766 { 767 $hfilename = @$cl[$j+1]; 768 } 769 elsif ($arg eq "-metadata") 770 { 771 $metadataname = @$cl[$j+1]; 772 } 773 } 761 774 if ($arg eq "-buttonname"){ 762 775 $content = @$cl[$j+1]; … … 768 781 } 769 782 } 770 &write_line('COLCFG', ["<classifier name=\"", $name, "\" content=\"", $content, "\" />"]); 771 } 783 if ($classname eq "Hierarchy") 784 { 785 &write_line('COLCFG', ["<classifier name=\"", $name, "\" content=\"", $content, "\" metadata=\"", $metadataname, "\" hfile=\"", $hfilename, "\" />"]); 786 } else 787 { 788 &write_line('COLCFG', ["<classifier name=\"", $name, "\" content=\"", $content, "\" />"]); 789 } 790 } 772 791 if ($started_classifiers) { 773 792 # end the classifiers
Note:
See TracChangeset
for help on using the changeset viewer.