Author: dom Date: 2008-10-19 15:58:02 +0100 (Sun, 19 Oct 2008) New Revision: 1235
Modified: trunk/Changes trunk/lib/OpenGuides/Template.pm trunk/t/27_geo_data_edit_form.t Log: Display geodata ellipsoid to user in edit from (fixes #230)
Modified: trunk/Changes =================================================================== --- trunk/Changes 2008-10-19 14:15:15 UTC (rev 1234) +++ trunk/Changes 2008-10-19 14:58:02 UTC (rev 1235) @@ -12,6 +12,7 @@ and truncate URLs that are too long (#21) Change default database type to sqlite (#241) Set content charset correctly in RDF (#260) + Display geodata ellipsoid to user in edit from (#230)
0.63 16 August 2008 Major overhaul of RDF output.
Modified: trunk/lib/OpenGuides/Template.pm =================================================================== --- trunk/lib/OpenGuides/Template.pm 2008-10-19 14:15:15 UTC (rev 1234) +++ trunk/lib/OpenGuides/Template.pm 2008-10-19 14:58:02 UTC (rev 1235) @@ -423,13 +423,15 @@ coord_field_2_value => $metadata{osie_y}[0], ); } else { + my $lat_text = "Latitude (" . $config->ellipsoid . " decimal)"; + my $long_text = "Longitude (" . $config->ellipsoid . " decimal)"; %vars = ( %vars, coord_field_1 => "latitude", coord_field_2 => "longitude", dist_field => "latlong_dist", - coord_field_1_name => "Latitude (decimal)", - coord_field_2_name => "Longitude (decimal)", + coord_field_1_name => $lat_text, + coord_field_2_name => $long_text, coord_field_1_value => $metadata{latitude}[0], coord_field_2_value => $metadata{longitude}[0], );
Modified: trunk/t/27_geo_data_edit_form.t =================================================================== --- trunk/t/27_geo_data_edit_form.t 2008-10-19 14:15:15 UTC (rev 1234) +++ trunk/t/27_geo_data_edit_form.t 2008-10-19 14:58:02 UTC (rev 1235) @@ -162,7 +162,7 @@ Test::HTML::Content::tag_ok( $output, "input", { name => "longitude", value => -0.118 }, "...with correct value..." ); -like( $output, qr|Latitude (decimal):|s, - "...'Latitude (decimal):' label included" ); -like( $output, qr|Longitude (decimal):|s, - "...'Longitude (decimal):' label included" ); +like( $output, qr|Latitude (Airy decimal):|s, + "...'Latitude (Airy decimal):' label included" ); +like( $output, qr|Longitude (Airy decimal):|s, + "...'Longitude (Airy decimal):' label included" );