Changeset 11922
- Timestamp:
- 2006-06-16T11:57:54+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/perllib/plugins/CICPlug.pm
r11917 r11922 303 303 my $institution_best_place_image_large_file_name = $institution_best_place_image_name . "-large.jpg"; 304 304 $institution_best_place_image_large_file_name =~ s/ /%20/g; 305 my $institution_best_place_image_large_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$institution_best_place_image_large_file_name";305 my $institution_best_place_image_large_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$institution_best_place_image_large_file_name"; 306 306 my $institution_best_place_image_medium_file_name = $institution_best_place_image_name . "-medium.jpg"; 307 307 $institution_best_place_image_medium_file_name =~ s/ /%20/g; 308 my $institution_best_place_image_medium_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$institution_best_place_image_medium_file_name";309 &new_metadata_entry($institution_doc_obj, "InstitutionBestPlaceImageHTML", "<a href=\"$institution_best_place_image_large_file_ link\"><img src=\"$institution_best_place_image_medium_file_link\"/><br /><span class=\"cictext\">$institution_best_place_image_name</span></a>");308 my $institution_best_place_image_medium_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$institution_best_place_image_medium_file_name"; 309 &new_metadata_entry($institution_doc_obj, "InstitutionBestPlaceImageHTML", "<a href=\"$institution_best_place_image_large_file_href\"><img src=\"$institution_best_place_image_medium_file_href\"/><br /><span class=\"cictext\">$institution_best_place_image_name</span></a>"); 310 310 } 311 311 … … 326 326 my $institution_campus_plan_pdf_file_name = $institution_campus_plan_name . ".pdf"; 327 327 $institution_campus_plan_pdf_file_name =~ s/ /%20/g; 328 my $institution_campus_plan_pdf_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$institution_campus_plan_pdf_file_name";329 $institution_campus_plans_list_html .= "<a href=\"$institution_campus_plan_pdf_file_ link\"><span class=\"cictext\">$institution_campus_plan_name (PDF)</span></a><br />";328 my $institution_campus_plan_pdf_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$institution_campus_plan_pdf_file_name"; 329 $institution_campus_plans_list_html .= "<a href=\"$institution_campus_plan_pdf_file_href\"><span class=\"cictext\">$institution_campus_plan_name (PDF)</span></a><br />"; 330 330 331 331 $institution_doc_obj->associate_file($institution_campus_plan_pdf_file_path, $institution_campus_plan_name . ".pdf", undef, $institution_doc_obj->get_top_section()); … … 342 342 my $institution_campus_plan_image_large_file_name = $institution_campus_plan_name . "-large.jpg"; 343 343 $institution_campus_plan_image_large_file_name =~ s/ /%20/g; 344 my $institution_campus_plan_image_large_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$institution_campus_plan_image_large_file_name";345 $institution_campus_plans_list_html .= "<a href=\"$institution_campus_plan_image_large_file_ link\"><span class=\"cictext\">$institution_campus_plan_name</span></a><br />";344 my $institution_campus_plan_image_large_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$institution_campus_plan_image_large_file_name"; 345 $institution_campus_plans_list_html .= "<a href=\"$institution_campus_plan_image_large_file_href\"><span class=\"cictext\">$institution_campus_plan_name</span></a><br />"; 346 346 } 347 347 } … … 612 612 613 613 $place_pdf_file_name =~ s/ /%20/g; 614 my $place_pdf_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$place_pdf_file_name";615 $place_images_html .= "<tr><td align=\"right\" valign=\"top\"><a href=\"$place_pdf_file_ link\">_iconpdf_</a></td><td valign=\"top\"><a href=\"$place_pdf_file_link\"><span class=\"cictext\">$place_image_name (PDF)</span></a></td></tr>\n";614 my $place_pdf_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$place_pdf_file_name"; 615 $place_images_html .= "<tr><td align=\"right\" valign=\"top\"><a href=\"$place_pdf_file_href\">_iconpdf_</a></td><td valign=\"top\"><a href=\"$place_pdf_file_href\"><span class=\"cictext\">$place_image_name (PDF)</span></a></td></tr>\n"; 616 616 } 617 617 else { … … 628 628 my $place_image_large_file_name = $place_image_name . "-large.jpg"; 629 629 $place_image_large_file_name =~ s/ /%20/g; 630 my $place_image_large_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$place_image_large_file_name";630 my $place_image_large_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$place_image_large_file_name"; 631 631 my $place_image_small_file_name = $place_image_name . "-small.jpg"; 632 632 $place_image_small_file_name =~ s/ /%20/g; 633 my $place_image_small_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$place_image_small_file_name";634 $place_images_html .= "<tr><td valign=\"top\"><a href=\"$place_image_large_file_ link\"><img src=\"$place_image_small_file_link\"/></a></td><td valign=\"top\"><a href=\"$place_image_large_file_link\"><span class=\"cictext\">$place_image_name</span></a></td></tr>\n";633 my $place_image_small_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$place_image_small_file_name"; 634 $place_images_html .= "<tr><td valign=\"top\"><a href=\"$place_image_large_file_href\"><img src=\"$place_image_small_file_href\"/></a></td><td valign=\"top\"><a href=\"$place_image_large_file_href\"><span class=\"cictext\">$place_image_name</span></a></td></tr>\n"; 635 635 } 636 636 else { … … 730 730 731 731 my $designer_place_image_name = $designer_place_image_match_hashref->{"FileName"}; 732 my $designer_place_image_small_file_ link;732 my $designer_place_image_small_file_href; 733 733 if (defined($designer_place_image_name)) { 734 734 my $designer_place_image_small_file_name = $designer_place_image_name . "-small.jpg"; 735 735 $designer_place_image_small_file_name =~ s/ /%20/g; 736 $designer_place_image_small_file_ link= "_httpcollection_/index/assoc/[assocfilepath]/$designer_place_image_small_file_name";736 $designer_place_image_small_file_href = "_httpcollection_/index/assoc/[assocfilepath]/$designer_place_image_small_file_name"; 737 737 } 738 738 else { … … 740 740 $place_name_sql_handle->execute($designer_place_id) or die "Could not execute SQL statement."; 741 741 $designer_place_image_name = $place_name_sql_handle->fetchrow() || ""; 742 $designer_place_image_small_file_ link= "_httpcollection_/images/no_image.jpg";742 $designer_place_image_small_file_href = "_httpcollection_/images/no_image.jpg"; 743 743 } 744 $designer_places_image_html .= "<tr><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$designer_place_id\"><img src=\"$designer_place_image_small_file_ link\"/></a></td><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$designer_place_id\"><span class=\"cictext\">$designer_place_image_name</span></a><br /><b>Date of construction:</b> $designer_place_construction_date_value</td></tr>\n";744 $designer_places_image_html .= "<tr><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$designer_place_id\"><img src=\"$designer_place_image_small_file_href\"/></a></td><td valign=\"top\"><a href=\"_gwcgi_?a=d&d=p$designer_place_id\"><span class=\"cictext\">$designer_place_image_name</span></a><br /><b>Date of construction:</b> $designer_place_construction_date_value</td></tr>\n"; 745 745 } 746 746 }
Note:
See TracChangeset
for help on using the changeset viewer.