From: Ivan Kohler Date: Thu, 28 Apr 2022 04:21:58 +0000 (-0700) Subject: improve manual census map selection, RT#86245, RT#76968, X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a8478341db106d63ae4114f0e94b4072394c073b improve manual census map selection, RT#86245, RT#76968, --- diff --git a/httemplate/misc/confirm-censustract.html b/httemplate/misc/confirm-censustract.html index f3fd0383e..02847f869 100644 --- a/httemplate/misc/confirm-censustract.html +++ b/httemplate/misc/confirm-censustract.html @@ -16,11 +16,13 @@ Confirm census tract <% $location{address1} |h %> <% $location{address2} |h %>
<% $location{city} |h %>, <% $location{state} |h %> <% $location{zip} |h %>

-% my $querystring = "census_year=$year&address=$location{address1}, $location{address2}, $location{city}, $location{state}"; +% my $address1 = $location{address1}; +% $address1 =~ s/(apt|ste|suite|unit)[\s\d]\w*\s*$//i; +% my $querystring = "census_year=$year&address=$address1, $location{address2}, $location{city}, $location{state}"; Map service module location
+>Map service location
% $querystring = "census_year=$year&pre=$pre&zip_code=" . $cache->get('zip'); param('census_year'); my $pre = $cgi->param('pre'); my $zip_code = $cgi->param('zip_code'); my $address = $cgi->param('address'); -my $loc = $zip_code ? $zip_code : $address; +my $loc = $zip_code ? $zip_code.', United States' : $address;