1 |
#meta_data.pm |
---|
2 |
#Time-stamp: <2006-04-06 16:45:47 lstearns> |
---|
3 |
# |
---|
4 |
#Abstract: This module will read in tables of tower related meta data |
---|
5 |
# and output hash arrays of the information based on param id. Hacked |
---|
6 |
# together from the subroutine in tower_parse.perl and perl_defs.pm, |
---|
7 |
# a piece of code from Brian Blanton (Thanks Brian!!). |
---|
8 |
|
---|
9 |
# perl defs and subroutines common to quoddy nc/fc runs |
---|
10 |
# v11/07/2001 B.O.B. |
---|
11 |
# v02/09/2002 B.O.B. to work out of dmf |
---|
12 |
# v06/04/2002 B.O.B. added initial da stuff |
---|
13 |
# v19/08/2002 B.O.B. fixes for changes to "edu" from "com" |
---|
14 |
# v13/09/2002 B.O.B. added truxton stuff |
---|
15 |
# v13/12/2002 B.O.B. version for casco4b inclusion/ ssh assim |
---|
16 |
# vxx/09/2003 B.O.B. modified for SEACOOS |
---|
17 |
# v15/02/2004 B.O.B. turned into perl package provider (seacoos_sab_defs) |
---|
18 |
|
---|
19 |
|
---|
20 |
package nccoos_page_info_orgtest; # assumes seacoos_sab_defs.pm |
---|
21 |
|
---|
22 |
use strict; |
---|
23 |
use warnings; |
---|
24 |
use vars qw(); |
---|
25 |
#use lib '/opt/local/seacoos/bin/'; |
---|
26 |
#use Web_dev; |
---|
27 |
|
---|
28 |
BEGIN{ |
---|
29 |
use Exporter (); |
---|
30 |
|
---|
31 |
our($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); |
---|
32 |
|
---|
33 |
$VERSION="1.0"; |
---|
34 |
|
---|
35 |
@ISA = qw(Exporter); |
---|
36 |
|
---|
37 |
@EXPORT = qw( |
---|
38 |
%page %article |
---|
39 |
); |
---|
40 |
|
---|
41 |
@EXPORT_OK=(); |
---|
42 |
} |
---|
43 |
|
---|
44 |
|
---|
45 |
our(%page,%article |
---|
46 |
); |
---|
47 |
|
---|
48 |
#my( |
---|
49 |
# ); |
---|
50 |
|
---|
51 |
###################################################################### |
---|
52 |
# Enter Page Data |
---|
53 |
###################################################################### |
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|
57 |
###################################################################### |
---|
58 |
## Platforms Main Page ## ~/obs/index_test.html ## |
---|
59 |
###################################################################### |
---|
60 |
|
---|
61 |
$page{'plats'} = Web->new_page(); |
---|
62 |
$page{'plats'} -> afs_path ( "plats/" ); |
---|
63 |
$page{'plats'} -> path2main ( "../" ); |
---|
64 |
$page{'plats'} -> file_name ( "index_test.html" ); |
---|
65 |
$page{'plats'} -> short_title ( "Platforms" ); |
---|
66 |
$page{'plats'} -> long_title ( "Observation Platforms Operated ". |
---|
67 |
"by NC-COOS" ); |
---|
68 |
$page{'plats'} -> menu_items ( 'radar','tower_R4','buoy','jpop','neuse', |
---|
69 |
'roof' ); |
---|
70 |
$page{'plats'} -> menu_type ( "vertical" ); |
---|
71 |
$page{'plats'} -> script_files ( "plats_page.js" ); |
---|
72 |
$page{'plats'} -> content_files ( "plats.txt" ); |
---|
73 |
#$page{'plats'} -> articles ( 'radar','tower_R4','buoy','jpop','neuse', |
---|
74 |
# 'roof' ); |
---|
75 |
|
---|
76 |
###################################################################### |
---|
77 |
## Menu Entries ###################################################### |
---|
78 |
###################################################################### |
---|
79 |
|
---|
80 |
$page{'radar'} = Web->new_page(); |
---|
81 |
$page{'radar'} -> afs_path ( "plats/radar/" ); |
---|
82 |
$page{'radar'} -> short_title ( "HF Radar" ); |
---|
83 |
$page{'radar'} -> long_title ( "Surface Current Radar" ); |
---|
84 |
$page{'radar'} -> file_name ( "index_test.html" ); |
---|
85 |
$page{'radar'} -> path2main ( "../../" ); |
---|
86 |
$page{'radar'} -> parent ( "plats" ); |
---|
87 |
$page{'radar'} -> menu_items ( 'radar_comp','radar_pub' ); |
---|
88 |
$page{'radar'} -> content_files ( "radar_1.txt", |
---|
89 |
#"radar_2.txt", |
---|
90 |
"technical.txt", |
---|
91 |
"radar_3.txt"); |
---|
92 |
#"radar_4.txt"); |
---|
93 |
#$page{'radar'} -> dynamic_table ( "contents/tables/codar_suv.txt" ); |
---|
94 |
#$page{'radar'} -> script_files ( 'loc_data.js' ); |
---|
95 |
|
---|
96 |
$page{'radar_hist'} = Web->new_page(); |
---|
97 |
$page{'radar_hist'} -> afs_path ( "plats/radar/" ); |
---|
98 |
$page{'radar_hist'} -> short_title ( "HF Radar" ); |
---|
99 |
$page{'radar_hist'} -> long_title ( "Surface Current Radar (Historical)" ); |
---|
100 |
$page{'radar_hist'} -> file_name ( "historical_test.html" ); |
---|
101 |
$page{'radar_hist'} -> path2main ( "../../" ); |
---|
102 |
$page{'radar_hist'} -> parent ( "plats/radar" ); |
---|
103 |
$page{'radar_hist'} -> content_files ( "radar_1.txt", |
---|
104 |
"radar_3.fix1", |
---|
105 |
"radar_anim_script.txt", |
---|
106 |
"radar_3.fix2", |
---|
107 |
"radar_anim.txt", |
---|
108 |
"radar_3.fix3"); |
---|
109 |
|
---|
110 |
$page{'radar_pub'} = Web->new_page(); |
---|
111 |
$page{'radar_pub'} -> afs_path ( "plats/radar/" ); |
---|
112 |
$page{'radar_pub'} -> short_title ( "Publications" ); |
---|
113 |
$page{'radar_pub'} -> long_title ( "Publications and Presentations" ); |
---|
114 |
$page{'radar_pub'} -> file_name ( "radar_pub_test.html" ); |
---|
115 |
$page{'radar_pub'} -> path2main ( "../../" ); |
---|
116 |
$page{'radar_pub'} -> parent ( "plats/radar" ); |
---|
117 |
$page{'radar_pub'} -> content_files ( "radar_1.txt","radar_pub.txt" ); |
---|
118 |
|
---|
119 |
$page{'radar_comp'} = Web->new_page(); |
---|
120 |
$page{'radar_comp'} -> afs_path ( "plats/radar/" ); |
---|
121 |
$page{'radar_comp'} -> short_title ( "Compare" ); |
---|
122 |
$page{'radar_comp'} -> long_title ( "Data Comparissons" ); |
---|
123 |
$page{'radar_comp'} -> file_name ( "radar_comp_test.html" ); |
---|
124 |
$page{'radar_comp'} -> path2main ( "../../" ); |
---|
125 |
$page{'radar_comp'} -> parent ( "plats/radar" ); |
---|
126 |
$page{'radar_comp'} -> content_files ( "radar_1.txt","radar_comp.txt" ); |
---|
127 |
|
---|
128 |
$page{'radar_analysis'} = Web->new_page(); |
---|
129 |
$page{'radar_analysis'} -> afs_path ( "plats/radar/" ); |
---|
130 |
$page{'radar_analysis'} -> short_title ( "Analysis" ); |
---|
131 |
$page{'radar_analysis'} -> long_title ( "Data Analysis" ); |
---|
132 |
$page{'radar_analysis'} -> file_name ( "radar_analysis_test.html" ); |
---|
133 |
$page{'radar_analysis'} -> path2main ( "../../" ); |
---|
134 |
$page{'radar_analysis'} -> parent ( "plats/radar" ); |
---|
135 |
$page{'radar_analysis'} -> content_files ( "radar_1.txt","radar_analysis.txt" ); |
---|
136 |
|
---|
137 |
$page{'tower_R4'} = Web->new_page(); |
---|
138 |
$page{'tower_R4'} -> afs_path ( "plats/tower_R4/" ); |
---|
139 |
$page{'tower_R4'} -> short_title ( "R4 Tower" ); |
---|
140 |
$page{'tower_R4'} -> long_title ( "Navy Tower R4" ); |
---|
141 |
$page{'tower_R4'} -> file_name ( "index_test.html" ); |
---|
142 |
$page{'tower_R4'} -> path2main ( "../../" ); |
---|
143 |
$page{'tower_R4'} -> menu_items ( 'tower_R4_sys','tower_R4_pkg' ); |
---|
144 |
$page{'tower_R4'} -> parent ( "plats" ); |
---|
145 |
$page{'tower_R4'} -> content_files ( "tower_R4.txt" ); |
---|
146 |
$page{'tower_R4'} -> dynamic_table ( "contents/tables/tower_r4.txt" ); |
---|
147 |
|
---|
148 |
$page{'tower_R4_sys'} = Web->new_page(); |
---|
149 |
$page{'tower_R4_sys'} -> afs_path ( "plats/tower_R4/" ); |
---|
150 |
$page{'tower_R4_sys'} -> short_title ( "System" ); |
---|
151 |
$page{'tower_R4_sys'} -> long_title ( "System Info" ); |
---|
152 |
$page{'tower_R4_sys'} -> file_name ( "sys_info_test.html" ); |
---|
153 |
$page{'tower_R4_sys'} -> path2main ( "../../" ); |
---|
154 |
$page{'tower_R4_sys'} -> parent ( "plats/tower_R4" ); |
---|
155 |
$page{'tower_R4_sys'} -> content_files ( "tower_R4.txt" ); |
---|
156 |
$page{'tower_R4_sys'} -> dynamic_table ( "contents/tables/tower_r4_sys.txt" ); |
---|
157 |
|
---|
158 |
|
---|
159 |
$page{'buoy'} = Web->new_page(); |
---|
160 |
$page{'buoy'} -> afs_path ( "plats/buoy/" ); |
---|
161 |
$page{'buoy'} -> short_title ( "Buoy" ); |
---|
162 |
$page{'buoy'} -> long_title ( "Lookout Shoals Research Buoy" ); |
---|
163 |
$page{'buoy'} -> file_name ( "index_test.html" ); |
---|
164 |
$page{'buoy'} -> path2main ( "../../" ); |
---|
165 |
$page{'buoy'} -> parent ( "plats" ); |
---|
166 |
$page{'buoy'} -> menu_items ( 'buoy_sys','buoy_pkg' ); |
---|
167 |
$page{'buoy'} -> content_files ( "buoy_lsrb.txt" ); |
---|
168 |
# "buoy_down.txt" ); |
---|
169 |
# "technical.txt" ); |
---|
170 |
$page{'buoy'} -> script_files ( "popup.js" ); |
---|
171 |
$page{'buoy'} -> dynamic_table ( "contents/tables/buoy_lsrb.txt"); |
---|
172 |
#"contents/tables/buoy_lsrb_surf.txt", |
---|
173 |
#"contents/tables/buoy_lsrb_midw.txt"); |
---|
174 |
|
---|
175 |
$page{'buoy_sys'} = Web->new_page(); |
---|
176 |
$page{'buoy_sys'} -> afs_path ( "plats/buoy/" ); |
---|
177 |
$page{'buoy_sys'} -> short_title ( "System" ); |
---|
178 |
$page{'buoy_sys'} -> long_title ( "Buoy System Data" ); |
---|
179 |
$page{'buoy_sys'} -> file_name ( "sys_test.html" ); |
---|
180 |
$page{'buoy_sys'} -> path2main ( "../../" ); |
---|
181 |
$page{'buoy_sys'} -> parent ( "plats/buoy" ); |
---|
182 |
$page{'buoy_sys'} -> content_files ( "buoy_lsrb.txt" );#,"buoy_down.txt"); |
---|
183 |
$page{'buoy_sys'} -> dynamic_table ( "contents/tables/buoy_lsrb_sys.txt" ); |
---|
184 |
|
---|
185 |
$page{'buoy_pkg'} = Web->new_page(); |
---|
186 |
$page{'buoy_pkg'} -> afs_path ( "plats/buoy/" ); |
---|
187 |
$page{'buoy_pkg'} -> short_title ( "Package" ); |
---|
188 |
$page{'buoy_pkg'} -> long_title ( "Buoy Package Info" ); |
---|
189 |
$page{'buoy_pkg'} -> file_name ( "pkg_test_test.html" ); |
---|
190 |
$page{'buoy_pkg'} -> path2main ( "../../" ); |
---|
191 |
$page{'buoy_pkg'} -> parent ( "plats/buoy" ); |
---|
192 |
$page{'buoy_pkg'} -> content_files ( "buoy_lsrb.txt", "buoy_pkg.txt" ); |
---|
193 |
|
---|
194 |
|
---|
195 |
$page{'jpop'} = Web->new_page(); |
---|
196 |
$page{'jpop'} -> afs_path ( "plats/jpop/" ); |
---|
197 |
$page{'jpop'} -> short_title ( "JPOP" ); |
---|
198 |
$page{'jpop'} -> long_title ( "Jennette's Pier Observing Partnership" ); |
---|
199 |
$page{'jpop'} -> file_name ( "index_test.html" ); |
---|
200 |
$page{'jpop'} -> path2main ( "../../" ); |
---|
201 |
$page{'jpop'} -> parent ( "plats" ); |
---|
202 |
$page{'jpop'} -> content_files ( "jpop.txt" ); |
---|
203 |
|
---|
204 |
|
---|
205 |
$page{'neuse'} = Web->new_page(); |
---|
206 |
$page{'neuse'} -> afs_path ( "plats/neuse/" ); |
---|
207 |
$page{'neuse'} -> short_title ( "Neuse" ); |
---|
208 |
$page{'neuse'} -> long_title ( "Neuse River Profiling Station" ); |
---|
209 |
$page{'neuse'} -> file_name ( "index_test.html" ); |
---|
210 |
$page{'neuse'} -> path2main ( "../../" ); |
---|
211 |
$page{'neuse'} -> parent ( "plats" ); |
---|
212 |
$page{'neuse'} -> content_files ( "neuse.txt" ); |
---|
213 |
|
---|
214 |
|
---|
215 |
$page{'roof'} = Web->new_page(); |
---|
216 |
$page{'roof'} -> afs_path ( "plats/roof/" ); |
---|
217 |
$page{'roof'} -> short_title ( "Roof" ); |
---|
218 |
$page{'roof'} -> long_title ( "Roof Development Package" ); |
---|
219 |
$page{'roof'} -> file_name ( "index_test.html" ); |
---|
220 |
$page{'roof'} -> path2main ( "../../" ); |
---|
221 |
$page{'roof'} -> parent ( "plats" ); |
---|
222 |
$page{'roof'} -> menu_items ( 'roof_sys','roof_pkg' ); |
---|
223 |
$page{'roof'} -> content_files ( "roof.txt" ); |
---|
224 |
$page{'roof'} -> dynamic_table ( "contents/tables/roof.txt" ); |
---|
225 |
|
---|
226 |
$page{'roof_sys'} = Web->new_page(); |
---|
227 |
$page{'roof_sys'} -> afs_path ( "plats/roof/" ); |
---|
228 |
$page{'roof_sys'} -> short_title ( "System" ); |
---|
229 |
$page{'roof_sys'} -> long_title ( "System Info" ); |
---|
230 |
$page{'roof_sys'} -> file_name ( "sys_info_test.html" ); |
---|
231 |
$page{'roof_sys'} -> path2main ( "../../" ); |
---|
232 |
$page{'roof_sys'} -> parent ( "plats/roof" ); |
---|
233 |
$page{'roof_sys'} -> content_files ( "roof.txt","roof_sys.txt" ); |
---|
234 |
$page{'roof_sys'} -> dynamic_table ( "contents/tables/roof_sys.txt" ); |
---|
235 |
|
---|
236 |
$page{'roof_pkg'} = Web->new_page(); |
---|
237 |
$page{'roof_pkg'} -> afs_path ( "plats/roof/" ); |
---|
238 |
$page{'roof_pkg'} -> short_title ( "Package" ); |
---|
239 |
$page{'roof_pkg'} -> long_title ( "Package Details" ); |
---|
240 |
$page{'roof_pkg'} -> file_name ( "pkg_info_test.html" ); |
---|
241 |
$page{'roof_pkg'} -> path2main ( "../../" ); |
---|
242 |
$page{'roof_pkg'} -> parent ( "plats/roof" ); |
---|
243 |
#$page{'roof_pkg'} -> articles ( 'roof_daq','roof_com','roof_trans' ); |
---|
244 |
$page{'roof_pkg'} -> content_files ( "roof.txt","roof_pkg.txt" ); |
---|
245 |
|
---|
246 |
|
---|
247 |
|
---|
248 |
$page{'blank'} = Web->new_page(); |
---|
249 |
$page{'blank'} -> afs_path ( "" ); |
---|
250 |
$page{'blank'} -> short_title ( '' ); |
---|
251 |
$page{'blank'} -> long_title ( "" ); |
---|
252 |
$page{'blank'} -> path2main ( "" ); |
---|
253 |
|
---|
254 |
|
---|
255 |
$article{'radar'} = Web->new_article(); |
---|
256 |
$article{'radar'} -> short_title ( "Radar" ); |
---|
257 |
$article{'radar'} -> long_title ( "Surface Current Radar Observations" ); |
---|
258 |
$article{'radar'} -> target_url ( "plats/radar/" ); |
---|
259 |
#$article{'radar'} -> thumbnail ( "radar_thumb.png" ); |
---|
260 |
$article{'radar'} -> thumbnail ( "img/thumbnails/codar_receive.jpg" ); |
---|
261 |
$article{'radar'} -> content_files ( "radar.txt" ); |
---|