projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
multiple state links in FCC report, RT#13922
[freeside.git]
/
httemplate
/
search
/
477partVI_census.html
diff --git
a/httemplate/search/477partVI_census.html
b/httemplate/search/477partVI_census.html
index
53b6db0
..
fc260be
100755
(executable)
--- a/
httemplate/search/477partVI_census.html
+++ b/
httemplate/search/477partVI_census.html
@@
-31,10
+31,10
@@
'fields' => [
sub { my $row = shift;
$state_hash{substr($row->censustract, 0, 2)}++;
'fields' => [
sub { my $row = shift;
$state_hash{substr($row->censustract, 0, 2)}++;
- substr($row->censustract, 2, 3) || '
n
one'
+ substr($row->censustract, 2, 3) || '
N
one'
},
sub { my $row = shift;
},
sub { my $row = shift;
- substr($row->censustract, 5) || '
n
one'
+ substr($row->censustract, 5) || '
N
one'
},
'upload',
'download',
},
'upload',
'download',
@@
-149,9
+149,13
@@
my $html_foot = sub {
'<BR><B>WARNING: multiple states found</B><BR>'.
'<TABLE BORDER=0>'. #nicer formatting someday
join('', map { '<TR>'.
'<BR><B>WARNING: multiple states found</B><BR>'.
'<TABLE BORDER=0>'. #nicer formatting someday
join('', map { '<TR>'.
- "<TD>$_</TD>".
- qq(<TD><A HREF="${link}state=$_">).
- $state_hash{$_}. '</A></TD>'.
+ '<TD>'.
+ ( &FS::Report::FCC_477::statenum2state($_) || 'None' ).
+ '</TD>'.
+ '<TD>'.
+ qq(<A HREF="${link}censustract2=$_">).
+ $state_hash{$_}. ' census tracts</A>'.
+ '</TD>'.
'</TR>';
}
keys %state_hash
'</TR>';
}
keys %state_hash