Changeset 1235

Show
Ignore:
Timestamp:
10/19/08 15:58:02 (3 months ago)
Author:
dom
Message:

Display geodata ellipsoid to user in edit from (fixes #230)

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1233 r1235  
    1313        Change default database type to sqlite (#241) 
    1414        Set content charset correctly in RDF (#260) 
     15        Display geodata ellipsoid to user in edit from (#230) 
    1516 
    16170.63    16 August 2008 
  • trunk/lib/OpenGuides/Template.pm

    r1231 r1235  
    424424                    ); 
    425425        } else { 
     426            my $lat_text = "Latitude (" . $config->ellipsoid . " decimal)"; 
     427            my $long_text = "Longitude (" . $config->ellipsoid . " decimal)"; 
    426428            %vars = ( 
    427429                        %vars, 
     
    429431                        coord_field_2       => "longitude", 
    430432                        dist_field          => "latlong_dist", 
    431                         coord_field_1_name  => "Latitude (decimal)", 
    432                         coord_field_2_name  => "Longitude (decimal)", 
     433                        coord_field_1_name  => $lat_text, 
     434                        coord_field_2_name  => $long_text, 
    433435                        coord_field_1_value => $metadata{latitude}[0], 
    434436                        coord_field_2_value => $metadata{longitude}[0], 
  • trunk/t/27_geo_data_edit_form.t

    r956 r1235  
    163163                                                 value => -0.118 }, 
    164164                             "...with correct value..." ); 
    165 like( $output, qr|Latitude \(decimal\):|s, 
    166       "...'Latitude (decimal):' label included" ); 
    167 like( $output, qr|Longitude \(decimal\):|s, 
    168       "...'Longitude (decimal):' label included" ); 
     165like( $output, qr|Latitude \(Airy decimal\):|s, 
     166      "...'Latitude (Airy decimal):' label included" ); 
     167like( $output, qr|Longitude \(Airy decimal\):|s, 
     168      "...'Longitude (Airy decimal):' label included" );