Project

General

Profile

1 3582 walbridge
[% IF cfg == 'nceas' %]
2
  [% INCLUDE "nceasHeader.tmpl" %]
3
[% ELSE %]
4
  [% INCLUDE "genericHeader.tmpl" %]
5
[% END %]
6
      <script language="JavaScript">
7
function submitform(formObj) {
8 2775 sgarg
9
  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
10
  //trim username & passwd:
11
  var username = trim(formObj.elements["uid"].value);
12
  var organization  = trim(formObj.elements["organization"].value);
13
  var password      = trim(formObj.elements["password"].value);
14
15
  if (username=="") {
16
    alert("You must type a username. \n"+popupMsg);
17
        formObj.elements["uid"].focus();
18
    return false;
19
  }
20
21
  if (organization=="") {
22
    alert("You must select an organization. \n"+popupMsg);
23
        formObj.elements["organization"].focus();
24
    return false;
25
  }
26
27
  if (password=="") {
28
    alert("You must type a password. \n"+popupMsg);
29
        formObj.elements["password"].focus();
30
    return false;
31
  }
32
33
  formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
34
  return true;
35
}
36
37
function trim(stringToTrim) {
38
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
39
}
40
      </script>
41
  <br />
42 2860 sgarg
      [% IF message != '' %]
43 2873 tyburczy
			<p class="redbold">[% message %]</p>
44
			</br>
45 2878 tyburczy
		[%IF showInstructions %]
46
	  	[%IF cfg =='esa' %]
47 2873 tyburczy
				<p><strong>Steps for registering an ESA data set</strong></p>
48
49
50
				<p><span class="greenbold">Step 1: Create an Account</span> <br>
51 2874 tyburczy
		   			Create an account by registering with the <a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]">KNB</a>.
52 2873 tyburczy
53
					Many scientists will already have accounts in the KNB, especially those
54
					from institutions like NCEAS and LTER. If you already have an account
55
					please use that existing account rather than creating a new one.</p>
56 2884 tyburczy
				<p><span class="greenbold">Step 2: Login</span><br />
57
		   			Login to the ESA Registry website with the account you created.</p>
58 2873 tyburczy
				<p><span class="greenbold">Step 3: Register Data</span><br />
59
					Fill out the <a href="http://data.esa.org/cgi-bin/register-dataset.cgi?cfg=esa">ESA Data Registry Form</a>
60
					A page titled "Success" will appear when the form has been successfully submitted.             </p>
61
				<p> <span class="greenbold">Step 4: Look for Feedback</span> <br />
62 2885 bowdish
					After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set has been accepted.</p>
63 2876 tyburczy
				<br /><br />
64 2873 tyburczy
		[% END %]
65 2878 tyburczy
		[% END %]
66 2873 tyburczy
67 2833 sgarg
      [% END %]
68 2876 tyburczy
  <menu>
69
<form method="post" action="@cgi-prefix@/register-dataset.cgi" onsubmit="return submitform(this);" >
70
    <input type="hidden" name="stage" value="login">
71
    <input type="hidden" name="username" value="">
72
    <input type="hidden" name="cfg" value="[%cfg%]">
73 2833 sgarg
74 2876 tyburczy
    <table>
75
76 2833 sgarg
      <tr valign="middle">
77 2775 sgarg
        <td align="left" valign="middle" class="text_plain">
78
        Username:</td>
79
80
        <td width="173" align="left" class="text_plain" style=
81
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
82
        type="text" style="width: 140px;" value=""></td>
83
      </tr>
84
85
      <tr valign="middle">
86
        <td height="28" align="left" valign="middle" class=
87
        "text_plain">Organization:</td>
88
89
        <td align="left" class="text_plain" style=
90
        "padding-top: 2px; padding-bottom: 2px;"><select name=
91
        "organization" style="width:140px;">
92
          <option value=""    selected>&#8212; choose one &#8212;</option>
93
          <option value="NCEAS"       >NCEAS</option>
94 3116 tao
          <option value="LTER"        >LTER</option>
95
          <option value="KU"          >KU</option>
96
          <option value="OBFS"        >OBFS</option>
97
          <option value="OSUSB"       >OSUSB</option>
98 2775 sgarg
          <option value="PISCO"       >PISCO</option>
99
          <option value="SDSC"        >SDSC</option>
100 3116 tao
          <option value="UCNRS"       >UCNRS</option>
101 2775 sgarg
          <option value="unaffiliated">unaffiliated</option>
102
        </select></td>
103
      </tr>
104
105
      <tr valign="middle">
106
        <td width="85" align="left" valign="middle" class=
107
        "text_plain">Password:</td>
108
109
        <td colspan="2" align="left" class="text_plain" style=
110
        "padding-top: 2px; padding-bottom: 2px;">
111
          <table width="100%" border="0" cellpadding="0"
112
          cellspacing="0">
113
            <tr>
114
              <td width="150" align="left"><input name="password"
115
              type="password" maxlength="50" style="width:140px;"
116
              value=""></td>
117
118
              <td align="center" class="buttonBG_login">
119
              <input type="submit" name="loginAction" value="Login"
120
              class="button_login"></td>
121
122
              <td align="left">&nbsp;</td>
123
            </tr>
124
          </table>
125
        </td>
126
      </tr>
127
    </table>
128
  </form>
129
  </menu>
130 2873 tyburczy
131 3624 walbridge
[% IF cfg == 'nceas' %]
132
	Dont have an account yet? <a href="@cgi-prefix@/ldapweb.cgi">Create a new account</a>
133 2876 tyburczy
	 <br />
134 3624 walbridge
	Forgot your password? <a href="@cgi-prefix@/ldapweb.cgi?stage=resetpass">Reset your password</a>
135
[% ELSE %]
136
  Dont have an account yet? <a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a>
137
  <br />
138
  Forgot your password? <a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a>
139
[% END %]
140 3582 walbridge
141
[% IF cfg == 'nceas' %]
142
  [% INCLUDE "nceasFooter.tmpl" %]
143
[% ELSE %]
144
  [% INCLUDE "genericFooter.tmpl" %]
145
[% END %]