1 |
7876
|
aaronmk
|
<?php
|
2 |
|
|
require_once dirname(__FILE__)."/util.php";
|
3 |
|
|
|
4 |
7956
|
aaronmk
|
$self_dir = ensure_suffix("/", dirname($_SERVER["SCRIPT_NAME"]));
|
5 |
|
|
|
6 |
13714
|
aaronmk
|
function to_dir($path) { return dirname($path.'_'/*in case no filename*/); }
|
7 |
|
|
|
8 |
7904
|
aaronmk
|
$h_level = 5;
|
9 |
9601
|
aaronmk
|
$root = $_SERVER["SERVER_NAME"].rm_suffix("/", $self_dir)."?";
|
10 |
7876
|
aaronmk
|
|
11 |
13780
|
aaronmk
|
function add_ns($name, $path_pat)
|
12 |
7876
|
aaronmk
|
{
|
13 |
13780
|
aaronmk
|
global $root, $h_level, $path;
|
14 |
7876
|
aaronmk
|
|
15 |
7967
|
aaronmk
|
print("<h".$h_level.' id="'.$name.'">'.$root.'<big><a href="http://'.$root
|
16 |
7938
|
aaronmk
|
.$name.'">'.$name."</a></big><i>".$path_pat."</i></h".$h_level.">\n");
|
17 |
7876
|
aaronmk
|
}
|
18 |
|
|
|
19 |
|
|
ob_start(); // delay output in case there is a redirect
|
20 |
|
|
?>
|
21 |
9613
|
aaronmk
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
22 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
23 |
7876
|
aaronmk
|
<head>
|
24 |
7881
|
aaronmk
|
<title>VegPath</title>
|
25 |
8033
|
aaronmk
|
<link rel="stylesheet" type="text/css" href="/main.css" />
|
26 |
7876
|
aaronmk
|
<style type="text/css">
|
27 |
|
|
h1 {color: green;}
|
28 |
|
|
</style>
|
29 |
8033
|
aaronmk
|
<script type="text/javascript" src="/util.js"></script>
|
30 |
7876
|
aaronmk
|
</head>
|
31 |
|
|
<body>
|
32 |
7951
|
aaronmk
|
<h1>VegPath <small><a href="http://en.wikipedia.org/wiki/PURL">persistent URLs</a> for vegetation resources</small></h1>
|
33 |
7923
|
aaronmk
|
<div>Supported URL patterns: <small>(elements in <i>italics</i> are optional)</small></div>
|
34 |
7876
|
aaronmk
|
<?php
|
35 |
13781
|
aaronmk
|
# list URLs
|
36 |
7931
|
aaronmk
|
?>
|
37 |
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
38 |
|
|
<tr valign="top">
|
39 |
|
|
<td nowrap="nowrap"><h2>Terms</h2></td>
|
40 |
8044
|
aaronmk
|
<td nowrap="nowrap"><h2> </h2></td>
|
41 |
7931
|
aaronmk
|
<td nowrap="nowrap"><h2>Data</h2></td>
|
42 |
|
|
</tr>
|
43 |
|
|
<tr valign="top">
|
44 |
|
|
<td nowrap="nowrap">
|
45 |
|
|
<?php
|
46 |
|
|
print("<blockquote>\n");
|
47 |
|
|
print("<h3>Exchange schemas</h3>");
|
48 |
7876
|
aaronmk
|
{
|
49 |
|
|
print("<blockquote>\n");
|
50 |
13780
|
aaronmk
|
add_ns("VegCore", ".term");
|
51 |
|
|
add_ns("DwC", ".term");
|
52 |
7876
|
aaronmk
|
{
|
53 |
7931
|
aaronmk
|
print("<blockquote>\n"); $h_level++;
|
54 |
13780
|
aaronmk
|
add_ns("DwC.history", ".term");
|
55 |
7931
|
aaronmk
|
print("</blockquote>\n"); $h_level--;
|
56 |
7876
|
aaronmk
|
}
|
57 |
13780
|
aaronmk
|
add_ns("TCS", "#/XPath");
|
58 |
|
|
add_ns("VegX", "#/XPath");
|
59 |
7931
|
aaronmk
|
print("</blockquote>\n");
|
60 |
|
|
}
|
61 |
|
|
print("<h3>Aggregators</h3>");
|
62 |
|
|
{
|
63 |
|
|
print("<blockquote>\n");
|
64 |
13780
|
aaronmk
|
add_ns("TNRS", ".term");
|
65 |
13781
|
aaronmk
|
add_ns("VegBank", ".table.column");
|
66 |
13780
|
aaronmk
|
add_ns("SALVIAS", ".table.column");
|
67 |
7876
|
aaronmk
|
{
|
68 |
7931
|
aaronmk
|
print("<blockquote>\n"); $h_level++;
|
69 |
13780
|
aaronmk
|
add_ns("SALVIAS.db", ".table.column");
|
70 |
|
|
add_ns("SALVIAS.users", ".table.column");
|
71 |
7931
|
aaronmk
|
print("</blockquote>\n"); $h_level--;
|
72 |
7876
|
aaronmk
|
}
|
73 |
13780
|
aaronmk
|
add_ns("VegBIEN", ".table.column");
|
74 |
|
|
add_ns("BIEN2", "");
|
75 |
7876
|
aaronmk
|
{
|
76 |
7931
|
aaronmk
|
print("<blockquote>\n"); $h_level++;
|
77 |
13780
|
aaronmk
|
add_ns("BIEN2.web", ".table.column");
|
78 |
|
|
add_ns("BIEN2.core", ".table.column");
|
79 |
|
|
add_ns("BIEN2.geoscrub", ".table.column");
|
80 |
|
|
add_ns("BIEN2.staging", ".table.column");
|
81 |
7931
|
aaronmk
|
print("</blockquote>\n"); $h_level--;
|
82 |
7876
|
aaronmk
|
}
|
83 |
7931
|
aaronmk
|
print("</blockquote>\n");
|
84 |
|
|
}
|
85 |
|
|
print("<h3>Primary databases</h3>");
|
86 |
|
|
{
|
87 |
|
|
print("<blockquote>\n");
|
88 |
13780
|
aaronmk
|
add_ns("CTFS", "");
|
89 |
7929
|
aaronmk
|
{
|
90 |
7931
|
aaronmk
|
print("<blockquote>\n"); $h_level++;
|
91 |
13780
|
aaronmk
|
add_ns("CTFS.schema", ".table.column");
|
92 |
|
|
add_ns("CTFS.tables", ".table");
|
93 |
|
|
add_ns("CTFS.terms", ".term");
|
94 |
7931
|
aaronmk
|
print("</blockquote>\n"); $h_level--;
|
95 |
7929
|
aaronmk
|
}
|
96 |
13780
|
aaronmk
|
add_ns("IH.db", ".term");
|
97 |
7876
|
aaronmk
|
print("</blockquote>\n");
|
98 |
|
|
}
|
99 |
7931
|
aaronmk
|
print("<h3>People</h3>");
|
100 |
7876
|
aaronmk
|
{
|
101 |
|
|
print("<blockquote>\n");
|
102 |
13780
|
aaronmk
|
add_ns("Brad", "");
|
103 |
7931
|
aaronmk
|
{
|
104 |
|
|
print("<blockquote>\n"); $h_level++;
|
105 |
13782
|
aaronmk
|
add_ns("Brad.attribution", ".term");
|
106 |
13780
|
aaronmk
|
add_ns("Brad.provenance", ".term");
|
107 |
|
|
add_ns("Brad.identifiers", ".term");
|
108 |
|
|
add_ns("Brad.identifier_examples", ".term");
|
109 |
7931
|
aaronmk
|
print("</blockquote>\n"); $h_level--;
|
110 |
|
|
}
|
111 |
7876
|
aaronmk
|
print("</blockquote>\n");
|
112 |
|
|
}
|
113 |
7931
|
aaronmk
|
print("</blockquote>\n");
|
114 |
|
|
?>
|
115 |
|
|
</td>
|
116 |
8044
|
aaronmk
|
<td nowrap="nowrap"></td>
|
117 |
7931
|
aaronmk
|
<td nowrap="nowrap">
|
118 |
|
|
<?php
|
119 |
|
|
print("<blockquote>\n");
|
120 |
7932
|
aaronmk
|
print("<h3>Institutions</h3>");
|
121 |
|
|
{
|
122 |
|
|
print("<blockquote>\n");
|
123 |
13781
|
aaronmk
|
add_ns("IH", ".herbarium_code");
|
124 |
7932
|
aaronmk
|
print("</blockquote>\n");
|
125 |
|
|
}
|
126 |
7931
|
aaronmk
|
print("</blockquote>\n");
|
127 |
|
|
?>
|
128 |
|
|
</td>
|
129 |
|
|
</tr>
|
130 |
|
|
</table>
|
131 |
|
|
<?php
|
132 |
7967
|
aaronmk
|
if (ends_with($root, '#')) # URL shortener requires fragment redirect
|
133 |
7922
|
aaronmk
|
{
|
134 |
7876
|
aaronmk
|
?>
|
135 |
7931
|
aaronmk
|
<script type="text/javascript">
|
136 |
7876
|
aaronmk
|
var loc = document.location
|
137 |
8365
|
aaronmk
|
if (loc.hash) document.location = '?'+rm_prefix('#', loc.hash)
|
138 |
7931
|
aaronmk
|
</script>
|
139 |
7922
|
aaronmk
|
<?php
|
140 |
|
|
}
|
141 |
9607
|
aaronmk
|
?>
|
142 |
|
|
<p> </p>
|
143 |
|
|
<?php
|
144 |
7876
|
aaronmk
|
ob_end_flush();
|
145 |
9605
|
aaronmk
|
|
146 |
|
|
# full directory index
|
147 |
13714
|
aaronmk
|
fpassthru(fopen(to_dir($_SERVER["SCRIPT_URI"])."/all", "r"));
|
148 |
9606
|
aaronmk
|
?>
|
149 |
|
|
</body>
|
150 |
|
|
</html>
|