Changeset 25669
- Timestamp:
- 2012-05-24T13:12:00+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/bin/script/convert_coll_from_gs2.pl
r25662 r25669 330 330 331 331 # import plugins 332 332 # if ImagePlugin is added, then need to add in a replaceListRef element for gs2-image 333 my $contains_image_plugin = 0; 334 333 335 my $plugins = $collectcfg->{'plugin'}; 334 336 … … 338 340 foreach my $pl (@$plugins) { 339 341 my ($pluginname) = @$pl[0]; 342 if ($pluginname =~ m/^(ImagePlugin|ImagePlug|PagedImagePlugin)$/) { 343 $contains_image_plugin = 1; 344 } 340 345 $collwriter->startTag('plugin','name'=>$pluginname); 341 346 … … 651 656 # collection 652 657 $collwriter->emptyTag('replaceListRef', 'id'=>'gs2-standard'); 658 $collwriter->emptyTag('replaceListRef', 'id'=>'gs2-image') if $contains_image_plugin; 653 659 $collwriter->endTag('CollectionConfig'); 654 660 $collwriter->end();
Note:
See TracChangeset
for help on using the changeset viewer.