Project

General

Profile

1
[% IF cfg == 'nceas' %]
2
  [% INCLUDE "nceasHeader.tmpl" %]
3
[% ELSE %]
4
  [% INCLUDE "genericHeader.tmpl" %]
5
[% END %]
6
      <script language="JavaScript">
7
function submitform(formObj) {
8

    
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
      [% IF message != '' %]
43
			<p class="redbold">[% message %]</p>
44
			</br>
45
		[%IF showInstructions %]
46
	  	[%IF cfg =='esa' %]
47
				<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
		   			Create an account by registering with the <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">KNB</a>.
52

    
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
				<p><span class="greenbold">Step 2: Login</span><br />
57
		   			Login to the ESA Registry website with the account you created.</p>
58
				<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
					After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set has been accepted.</p>
63
				<br /><br />
64
		[% END %]
65
		[% END %]
66
	  
67
      [% END %]
68
  <menu>
69
<form method="post" action="[% cgiPrefix %]/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

    
74
    <table>
75

    
76
      <tr valign="middle">
77
        <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
          <option value="LTER"        >LTER</option>
95
          <option value="KU"          >KU</option>
96
          <option value="OBFS"        >OBFS</option>
97
          <option value="OSUSB"       >OSUSB</option>
98
          <option value="PISCO"       >PISCO</option>
99
          <option value="SAEON"       >SAEON</option>
100
          <option value="SANParks"    >SANParks</option>
101
          <option value="SDSC"        >SDSC</option>
102
          <option value="UCNRS"       >UCNRS</option>
103
          <option value="unaffiliated">unaffiliated</option>
104
        </select></td>
105
      </tr>
106

    
107
      <tr valign="middle">
108
        <td width="85" align="left" valign="middle" class=
109
        "text_plain">Password:</td>
110

    
111
        <td colspan="2" align="left" class="text_plain" style=
112
        "padding-top: 2px; padding-bottom: 2px;">
113
          <table width="100%" border="0" cellpadding="0"
114
          cellspacing="0">
115
            <tr>
116
              <td width="150" align="left"><input name="password"
117
              type="password" maxlength="50" style="width:140px;"
118
              value=""></td>
119

    
120
              <td align="center" class="buttonBG_login">
121
              <input type="submit" name="loginAction" value="Login"
122
              class="button_login"></td>
123

    
124
              <td align="left">&nbsp;</td>
125
            </tr>
126
          </table>
127
        </td>
128
      </tr>
129
    </table>
130
  </form>
131
  </menu>
132
  
133
  Dont have an account yet? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a>
134
  <br />
135
  Forgot your password? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a>
136

    
137
[% IF cfg == 'nceas' %]
138
  [% INCLUDE "nceasFooter.tmpl" %]
139
[% ELSE %]
140
  [% INCLUDE "genericFooter.tmpl" %]
141
[% END %]  
(22-22/24)