[freeside-commits] branch FREESIDE_4_BRANCH updated. 07b991ecb46bd8e7a37e98013c2776bdace9ab61

Ivan Kohler ivan at freeside.biz
Wed Apr 27 21:22:02 PDT 2022


The branch, FREESIDE_4_BRANCH has been updated
       via  07b991ecb46bd8e7a37e98013c2776bdace9ab61 (commit)
      from  b23875a21c163310af2597424f3b4e782ffcf022 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 07b991ecb46bd8e7a37e98013c2776bdace9ab61
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 27 21:22:01 2022 -0700

    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 %><BR>
 <% $location{city} |h %>, <% $location{state} |h %> <% $location{zip} |h %><BR>
 <BR>
-% 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}";
 <A HREF="<%$p%>misc/openmap.html?<% $querystring %>"
    REL="opener"
    TARGET="_blank"
->Map service module location</A><BR>
+>Map service location</A><BR>
 % $querystring = "census_year=$year&pre=$pre&zip_code=" . $cache->get('zip');
 <A HREF="<%$p%>misc/openmap.html?<% $querystring %>"
    REL="opener"
diff --git a/httemplate/misc/openmap.html b/httemplate/misc/openmap.html
index a9a70337f..15de2882a 100644
--- a/httemplate/misc/openmap.html
+++ b/httemplate/misc/openmap.html
@@ -78,6 +78,6 @@ my $census_year = $cgi->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;
 
 </%init>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/misc/confirm-censustract.html | 6 ++++--
 httemplate/misc/openmap.html             | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list