Project

General

Profile

« Previous | Next » 

Revision 7931

web/vegpath/index.php: Placed Terms and Data sections side-by-side in two columns so that data resources would not need to come after a long list of terms resources

View differences:

index.php
112 112
	<body>
113 113
		<h1>VegPath&nbsp;&nbsp; <small>human-readable URLs for vegetation resources</small></h1>
114 114
		<div>Supported URL patterns:&nbsp;&nbsp; <small>(elements in <i>italics</i> are optional)</small></div>
115
		<blockquote>
115
		<p></p>
116 116
<?php
117 117
# add and list URLs
118 118

  
......
121 121

  
122 122
$nimoy = "http://nimoy.nceas.ucsb.edu/phpmyadmin/index.php";
123 123
function nimoy_db($db) { global $nimoy; return phpMyAdmin($nimoy."?db=".$db); }
124

  
125
print("<h2>Terms</h2>");
124
?>
125
		<table border="0" cellspacing="0" cellpadding="0">
126
			<tr valign="top">
127
				<td nowrap="nowrap"><h2>Terms</h2></td>
128
				<td nowrap="nowrap"><h2>Data</h2></td>
129
			</tr>
130
			<tr valign="top">
131
				<td nowrap="nowrap">
132
<?php
133
print("<blockquote>\n");
134
print("<h3>Exchange schemas</h3>");
126 135
{
127 136
	print("<blockquote>\n");
128
	print("<h3>Exchange schemas</h3>");
137
	add_ref("VegCore", ".term", "https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore#");
138
	add_ref("DwC", ".term", "http://rs.tdwg.org/dwc/terms/#");
129 139
	{
130
		print("<blockquote>\n");
131
		add_ref("VegCore", ".term", "https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore#");
132
		add_ref("DwC", ".term", "http://rs.tdwg.org/dwc/terms/#");
133
		{
134
			print("<blockquote>\n"); $h_level++;
135
			add_ref("DwC-history", ".term", "http://rs.tdwg.org/dwc/terms/history/#");
136
			print("</blockquote>\n"); $h_level--;
137
		}
138
		add_ref("TCS", "/XPath", "http://www.tdwg.org/standards/117/download/#/v101.xsd#");
139
		add_ref("VegX", "/XPath", "http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd#");
140
		print("</blockquote>\n");
140
		print("<blockquote>\n"); $h_level++;
141
		add_ref("DwC-history", ".term", "http://rs.tdwg.org/dwc/terms/history/#");
142
		print("</blockquote>\n"); $h_level--;
141 143
	}
142
	print("<h3>Aggregators</h3>");
144
	add_ref("TCS", "/XPath", "http://www.tdwg.org/standards/117/download/#/v101.xsd#");
145
	add_ref("VegX", "/XPath", "http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd#");
146
	print("</blockquote>\n");
147
}
148
print("<h3>Aggregators</h3>");
149
{
150
	print("<blockquote>\n");
151
	add_ref("VegBank", ".table.column", custom_separator("http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=",
152
		"#", "http://vegbank.org/get/index/dba_tabledescription"));
153
	add_ref("SALVIAS", ".table.column", "http://salvias.net/Documents/salvias_data_dictionary.html#");
143 154
	{
144
		print("<blockquote>\n");
145
		add_ref("VegBank", ".table.column", custom_separator("http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=",
146
			"#", "http://vegbank.org/get/index/dba_tabledescription"));
147
		add_ref("SALVIAS", ".table.column", "http://salvias.net/Documents/salvias_data_dictionary.html#");
148
		{
149
			print("<blockquote>\n"); $h_level++;
150
			add_ref("SALVIAS-db", ".table.column", nimoy_db("salvias_plots"));
151
			add_ref("SALVIAS-users", ".table.column", nimoy_db("salvias_users"));
152
			print("</blockquote>\n"); $h_level--;
153
		}
154
		add_ref("BIEN2", "", $nimoy."?target=server_databases.php");
155
		{
156
			print("<blockquote>\n"); $h_level++;
157
			add_ref("BIEN2-web", ".table.column", nimoy_db("bien_web"));
158
			add_ref("BIEN2-core", ".table.column", nimoy_db("bien2"));
159
			add_ref("BIEN2-geoscrub", ".table.column", nimoy_db("geoscrub"));
160
			add_ref("BIEN2-staging", ".table.column", nimoy_db("bien2_staging"));
161
			print("</blockquote>\n"); $h_level--;
162
		}
163
		add_ref("VegBIEN", ".table.column", phpPgAdmin("http://vegbiendev.nceas.ucsb.edu/phppgadmin/redirect.php?server=localhost%3A5432%3Aallow&database=vegbien&schema=public"));
164
		print("</blockquote>\n");
155
		print("<blockquote>\n"); $h_level++;
156
		add_ref("SALVIAS-db", ".table.column", nimoy_db("salvias_plots"));
157
		add_ref("SALVIAS-users", ".table.column", nimoy_db("salvias_users"));
158
		print("</blockquote>\n"); $h_level--;
165 159
	}
166
	print("<h3>Primary databases</h3>");
160
	add_ref("BIEN2", "", $nimoy."?target=server_databases.php");
167 161
	{
168
		print("<blockquote>\n");
169
		add_ref("TNRS", ".term", fragment_override("http://tnrs.iplantcollaborative.org/instructions.html", "download_results"));
170
		add_ref("CTFS", "", $CTFS);
171
		{
172
			print("<blockquote>\n"); $h_level++;
173
			add_ref("CTFS-schema", ".table.column", "https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/CTFS/_archive/DBv5.txt#");
174
			add_ref("CTFS-tables", ".table", fragment_override($Redmine."/wiki/CTFS", "Tables"));
175
			add_ref("CTFS-terms", ".term", $Redmine_svn."/inputs/CTFS/_src/ctfs-comments_worksheet.xls#");
176
			print("</blockquote>\n"); $h_level--;
177
		}
178
		print("</blockquote>\n");
162
		print("<blockquote>\n"); $h_level++;
163
		add_ref("BIEN2-web", ".table.column", nimoy_db("bien_web"));
164
		add_ref("BIEN2-core", ".table.column", nimoy_db("bien2"));
165
		add_ref("BIEN2-geoscrub", ".table.column", nimoy_db("geoscrub"));
166
		add_ref("BIEN2-staging", ".table.column", nimoy_db("bien2_staging"));
167
		print("</blockquote>\n"); $h_level--;
179 168
	}
180
	print("<h3>People</h3>");
169
	add_ref("VegBIEN", ".table.column", phpPgAdmin("http://vegbiendev.nceas.ucsb.edu/phppgadmin/redirect.php?server=localhost%3A5432%3Aallow&database=vegbien&schema=public"));
170
	print("</blockquote>\n");
171
}
172
print("<h3>Primary databases</h3>");
173
{
174
	print("<blockquote>\n");
175
	add_ref("TNRS", ".term", fragment_override("http://tnrs.iplantcollaborative.org/instructions.html", "download_results"));
176
	add_ref("CTFS", "", $CTFS);
181 177
	{
182
		print("<blockquote>\n");
183
		add_ref("Brad-Boyle", "", $CTFS);
184
		{
185
			print("<blockquote>\n"); $h_level++;
186
			$Brad_Boyle_VegCore = $Redmine_svn."/schemas/VegCore/Brad_Boyle";
187
			add_ref("Brad-Boyle-data-provenance", ".term", $Brad_Boyle_VegCore."/BIEN%20database%20entities%20related%20to%20data%20provenance%20and%20ownership.docx#");
188
			add_ref("Brad-Boyle-DwC-IDs-2013-2-7", ".term", $Brad_Boyle_VegCore."/vegbien_identifiers.xlsx#");
189
			add_ref("Brad-Boyle-DwC-IDs-2013-1-31", ".term", $Brad_Boyle_VegCore."/vegbien_identifier_examples.xlsx#");
190
			print("</blockquote>\n"); $h_level--;
191
		}
192
		print("</blockquote>\n");
178
		print("<blockquote>\n"); $h_level++;
179
		add_ref("CTFS-schema", ".table.column", "https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/CTFS/_archive/DBv5.txt#");
180
		add_ref("CTFS-tables", ".table", fragment_override($Redmine."/wiki/CTFS", "Tables"));
181
		add_ref("CTFS-terms", ".term", $Redmine_svn."/inputs/CTFS/_src/ctfs-comments_worksheet.xls#");
182
		print("</blockquote>\n"); $h_level--;
193 183
	}
194 184
	print("</blockquote>\n");
195 185
}
196
print("<h2>Data</h2>");
186
print("<h3>People</h3>");
197 187
{
198 188
	print("<blockquote>\n");
199
	add_ref("IH", ".herbarium_code", by_prefix("http://sweetgum.nybg.org/ih/herbarium_list.php?QueryName=DetailedQuery&Restriction=NamPartyType+%3D+%27IH+Herbarium%27&col_NamOrganisationAcronym=",
200
			"http://sweetgum.nybg.org/ih/"));
189
	add_ref("Brad-Boyle", "", $CTFS);
190
	{
191
		print("<blockquote>\n"); $h_level++;
192
		$Brad_Boyle_VegCore = $Redmine_svn."/schemas/VegCore/Brad_Boyle";
193
		add_ref("Brad-Boyle-data-provenance", ".term", $Brad_Boyle_VegCore."/BIEN%20database%20entities%20related%20to%20data%20provenance%20and%20ownership.docx#");
194
		add_ref("Brad-Boyle-DwC-IDs-2013-2-7", ".term", $Brad_Boyle_VegCore."/vegbien_identifiers.xlsx#");
195
		add_ref("Brad-Boyle-DwC-IDs-2013-1-31", ".term", $Brad_Boyle_VegCore."/vegbien_identifier_examples.xlsx#");
196
		print("</blockquote>\n"); $h_level--;
197
	}
201 198
	print("</blockquote>\n");
202 199
}
203

  
200
print("</blockquote>\n");
201
?>
202
				</td>
203
				<td nowrap="nowrap">
204
<?php
205
print("<blockquote>\n");
206
add_ref("IH", ".herbarium_code", by_prefix("http://sweetgum.nybg.org/ih/herbarium_list.php?QueryName=DetailedQuery&Restriction=NamPartyType+%3D+%27IH+Herbarium%27&col_NamOrganisationAcronym=",
207
		"http://sweetgum.nybg.org/ih/"));
208
print("</blockquote>\n");
209
?>
210
				</td>
211
			</tr>
212
		</table>
213
<?php
204 214
if (ends_with($alias, '#')) # URL shortener requires fragment redirect
205 215
{
206 216
?>
207
			<script type="text/javascript">
217
		<script type="text/javascript">
208 218
var loc = document.location
209 219
if (loc.hash) document.location = rm_prefix('#', loc.hash)
210
			</script>
220
		</script>
211 221
<?php
212 222
}
213 223
?>
214
		</blockquote>
215 224
	</body>
216 225
</html>
217 226
<?php

Also available in: Unified diff