Changeset 12942 for trunk/cic-hcap
- Timestamp:
- 2006-09-29T15:26:13+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/perllib/plugins/CICPlug.pm
r12941 r12942 840 840 my $place_image_large_file_href = $self->generate_place_image_variant($place_doc_obj, $place_image_location, "large"); 841 841 842 if (defined($place_image_name)) { 843 # Create a new section for each place image 844 my $place_image_section = $place_doc_obj->insert_section($place_doc_obj->get_end_child($place_doc_obj->get_top_section())); 845 $place_doc_obj->add_utf8_text($place_image_section, "_"); # This is necessary 846 $place_doc_obj->add_utf8_metadata($place_image_section, "DocumentType", "Image"); 847 $place_doc_obj->add_utf8_metadata($place_image_section, "Title", $place_image_name); 848 $place_doc_obj->add_utf8_metadata($place_image_section, "ImagePath", $place_image_large_file_href); 849 850 $place_images_html .= "<tr><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$place_id.$place_image_section\"><img alt=\"$place_image_name\" src=\"$place_image_small_file_href\"/></a></td><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$place_id.$place_image_section\">$place_image_name</a></td></tr>\n"; 851 } 852 else { 853 $place_images_html .= "<tr><td valign=\"top\"><img alt=\"No image\" src=\"_httpcollection_/images/no_image-small.jpg\"/></td><td valign=\"top\"> </td></tr>\n"; 854 } 842 # Create a new section for each place image 843 my $place_image_section = $place_doc_obj->insert_section($place_doc_obj->get_end_child($place_doc_obj->get_top_section())); 844 $place_doc_obj->add_utf8_text($place_image_section, "_"); # This is necessary 845 $place_doc_obj->add_utf8_metadata($place_image_section, "DocumentType", "Image"); 846 $place_doc_obj->add_utf8_metadata($place_image_section, "Title", $place_image_name); 847 $place_doc_obj->add_utf8_metadata($place_image_section, "ImagePath", $place_image_large_file_href); 848 849 $place_images_html .= "<tr><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$place_id.$place_image_section\"><img alt=\"$place_image_name\" src=\"$place_image_small_file_href\"/></a></td><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$place_id.$place_image_section\">$place_image_name</a></td></tr>\n"; 855 850 } 856 851 }
Note:
See TracChangeset
for help on using the changeset viewer.