From a8478341db106d63ae4114f0e94b4072394c073b Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 27 Apr 2022 21:21:58 -0700 Subject: [PATCH] improve manual census map selection, RT#86245, RT#76968, --- httemplate/misc/confirm-censustract.html | 6 ++++-- httemplate/misc/openmap.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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; -- 2.11.0