Project

General

Profile

1
[% INCLUDE "genericHeader.tmpl" %]
2

    
3
    [% IF status == 'success' %]
4
        
5
     <table class="intro" cellpadding="8" cellspacing="0">
6

    
7
     <tr><td align="left"><span class="emphasis">Success</span></td></tr>
8
	[% IF function == 'deleted' %]
9
            <tr><td align="left"><span class="regtext">Your data set description has been [% function  %].  Thank you.</span></td></tr>
10
        [%ELSE%]
11
	    <tr><td align="left"><span class="regtext">Your data set description has been [% function  %].  Thank you.</span></td></tr>
12
            <tr><td align="left"><span class="regtext">You can see the data set description by clicking 
13
	    <a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">here</a>.</span></td></tr> 	   
14
        [%END%]
15
      </table>
16
    [% ELSE %]
17
    	[%  IF function == 'cancel' %]
18

    
19
	 [% ELSE %]
20
		<table class="intro" cellpadding="8" cellspacing="0">
21
	          <tr><td align="left"><span class="emphasis">Failure</span></td></tr>
22
        
23
	          <tr><td align="left"><span class="regtext">An error occurred. Please check the list of errors below: </span></td></tr>
24
                  <tr><td align="left">
25
                      <ul>
26
                      [% FOREACH parameter = invalidParams %]
27
                     <li class="label">[% parameter %]</li>
28
                      [% END %]
29
                  </ul></td></tr>
30
                  <tr><td align="left">
31
                  <ul>
32
                      [% FOREACH msg = errorMessages %]
33
                      <li class="label">[% msg %]</li>
34
                      [% END %]
35
                  </ul></td></tr>
36
	       </table>
37
     [% END %]
38
    [% END %]
39
    [% IF status == 'login_failure' %]
40
        <table class="intro" cellpadding="8" cellspacing="0">
41
            <tr><td align="left"><span class="regtext">Click <a href = "javascript:history.back()">here</a> to return
42
            to the previous page, and enter the correct username, organization, and password.</td></tr> 
43
        </table>
44
    [% ELSE %]
45
        [% IF function == 'deleted' || function == 'cancel' %]
46
            <table class="intro" cellpadding="8" cellspacing="0">
47
            [% IF status != 'success' %]   
48
            <tr><td align="left"><span class="regtext">Click <a href = "javascript:history.back()">here</a> to return
49
            to the previous page, and enter the correct username, organization, and password.</td></tr> 
50
            [%ELSE%]
51
                <tr><td align="left"><span class="regtext">To register a new data set, click <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]" target="_top">here</a>.
52
		Otherwise, use the toolbar links above to navigate.</span></td></tr>
53
            [%END%]
54
            </table>
55
        [% ELSE %]
56
            [% IF status == 'success' %]
57
                <table class="intro" cellpadding="8" cellspacing="0">
58
                    <tr><td align="left"><span class="regtext">To register a new data set, click <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]" target="_top">here</a>.
59
                    Otherwise, use the toolbar links above to navigate.</span></td></tr>
60
                </table>
61
            [% ELSE %]
62
                [% IF status != 'failure_no_resubmit' %]
63
                    <form name="editForm" action="@cgi-prefix@/register-dataset.cgi" method="post">
64
                        <input type="hidden" name="cfg" value="[% cfg %]">
65
                        <input type="hidden" name="docid" value="[% docid %]">
66
                        <input type="hidden" name="stage" value="confirmed">
67
                        <input type="hidden" name="dataWrong" value="No, go back to editing">
68
                        <input type="hidden" name="showSiteList" value="[% showSiteList %]">
69
                        <input type="hidden" name="showWgList" value="[% showWgList %]">
70
                        <input type="hidden" name="showOrganization" value="[% showOrganization %]">
71
                        <input type="hidden" name="lsite" value="[% lsite %]">
72
                        <input type="hidden" name="usite" value="[% usite %]">
73
                        <input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
74
                        <input type="hidden" name="hasTemporal" value="[% hasTemporal %]">
75
                        <input type="hidden" name="hasSpatial" value="[% hasSpatial %]">
76
                        <input type="hidden" name="hasTaxonomic" value="[% hasTaxonomic %]">
77
                        <input type="hidden" name="hasMethod" value="[% hasMethod %]">
78
                        <input type="hidden" name="temporalRequired" value="[% temporalRequired %]">
79
                        <input type="hidden" name="spatialRequired" value="[% spatialRequired %]">
80
                        <input type="hidden" name="contactEmailAddressRequired" value="[% contactEmailAddressRequired %]">
81
                        <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
82
                        <input type="hidden" name="providerSurName" value="[%providerSurName%]">
83
                        <input type="hidden" name="site" value="[%site%]">
84
                        [% IF cfg == 'nceas' %]
85
                            [% FOREACH group = wg %]
86
                                <input type="hidden" name="wg" value="[%group%]">
87
                            [% END %]
88
                        [% END %]
89
                        <input type="hidden" name="identifier" value="[%identifier%]">
90
                        <input type="hidden" name="title" value="[%title%]">
91
                        <input type="hidden" name="origNamefirst0" value="[%origNamefirst0%]">
92
                        <input type="hidden" name="origNamelast0" value="[%origNamelast0%]">
93
                        <input type="hidden" name="origNameOrg" value="[%origNameOrg%]">
94
                        <input type="hidden" name="origRole0" value="[%origRole0%]">
95
                        <input type="hidden" name="origDelivery" value="[%origDelivery%]">
96
                        <input type="hidden" name="origCity" value="[%origCity%]"> 
97
                        <input type="hidden" name="origState" value="[%origState%]">
98
                        <input type="hidden" name="origStateOther" value="[%origStateOther%]">
99
                        <input type="hidden" name="origZIP" value="[%origZIP%]">
100
                        <input type="hidden" name="origCountry" value="[%origCountry%]">
101
                        <input type="hidden" name="origPhone" value="[%origPhone%]">
102
                        <input type="hidden" name="origFAX" value="[%origFAX%]">
103
                        <input type="hidden" name="origEmail" value="[%origEmail%]">
104
                        <input type="hidden" name="useOrigAddress" value="[%useOrigAddress%]">
105
                        <input type="hidden" name="origNamefirstContact" value="[%origNamefirstContact%]">
106
                        <input type="hidden" name="origNamelastContact" value="[%origNamelastContact%]">
107
                        <input type="hidden" name="origNameOrgContact" value="[%origNameOrgContact%]">
108
                        <input type="hidden" name="origDeliveryContact" value="[%origDeliveryContact%]">
109
                        <input type="hidden" name="origCityContact" value="[%origCityContact%]"> 
110
                        <input type="hidden" name="origStateContact" value="[%origStateContact%]">
111
                        <input type="hidden" name="origStateOtherContact" value="[%origStateOtherContact%]">
112
                        <input type="hidden" name="origZIPContact" value="[%origZIPContact%]">
113
                        <input type="hidden" name="origCountryContact" value="[%origCountryContact%]">
114
                        <input type="hidden" name="origPhoneContact" value="[%origPhoneContact%]">
115
                        <input type="hidden" name="origFAXContact" value="[%origFAXContact%]">
116
                        <input type="hidden" name="origEmailContact" value="[%origEmailContact%]">
117
                        <input type="hidden" name="aoCount" value="[%aoCount%]">
118
  
119
                        [% numAO = 0 %]
120
                        [% IF aoCount > 0 %]
121
                            [% numAO = aoCount %]
122
                        [% END %]
123
                        [% cnt = 1 %]
124
                        [% WHILE cnt <= numAO %]
125
                            [% SET origNamefirst = "origNamefirst${cnt}" %]
126
                            [% SET origNamelast = "origNamelast${cnt}" %]
127
                            [% SET origRole = "origRole${cnt}" %]
128
                            <input type="hidden" name="[% origNamefirst %]" value="[% $origNamefirst%]">
129
                            <input type="hidden" name="[% origNamelast %]" value="[% $origNamelast%]">
130
                            <input type="hidden" name="[% origRole %]" value="[% $origRole%]">
131
                            [% cnt = cnt + 1 %]
132
                        [% END %]
133
                      
134
                        <input type="hidden" name="abstract" value="[%abstract%]">
135
                        <input type="hidden" name="keyCount" value="[%keyCount%]">
136
                        [% numKey = 0 %]
137
                        [% IF keyCount > 0 %]
138
                            [% numKey = keyCount %]
139
                        [% END %]
140
                        [% cnt = 1 %]
141
                        [% WHILE cnt <= numKey %]
142
                            [% SET kyd = "keyword${cnt}" %]
143
                            [% SET keyType = "kwType${cnt}" %]
144
                            [% SET keyTh = "kwTh${cnt}" %]
145
                            <input type="hidden" name="[% kyd %]" value="[% $kyd %]">
146
                            <input type="hidden" name="[% keyType %]" value="[% $keyType %]">
147
                            <input type="hidden" name="[% keyTh %]" value="[% $keyTh %]">
148
                            [% cnt = cnt + 1 %]
149
                        [% END %]
150
                        <input type="hidden" name="addComments" value="[%addComments%]">
151
                        <input type="hidden" name="useConstraints" value="[%useConstraints%]">
152
                        <input type="hidden" name="useConstraintsOther" value="[%useConstraintsOther%]">
153
                        <input type="hidden" name="url" value="[%url%]">
154
                        <input type="hidden" name="dataMedium" value="[%dataMedium%]">
155
                        <input type="hidden" name="dataMediumOther" value="[%dataMediumOther%]">
156
                        <input type="hidden" name="beginningYear" value="[%beginningYear%]">
157
                        <input type="hidden" name="beginningMonth" value="[%beginningMonth%]">
158
                        <input type="hidden" name="beginningDay" value="[%beginningDay%]">
159
                        <input type="hidden" name="endingYear" value="[%endingYear%]">
160
                        <input type="hidden" name="endingMonth" value="[%endingMonth%]">
161
                        <input type="hidden" name="endingDay" value="[%endingDay%]">
162
                        <input type="hidden" name="geogdesc" value="[%geogdesc%]">
163
                        <input type="hidden" name="useSiteCoord" value="[%useSiteCoord%]">
164
                        <input type="hidden" name="latDeg1" value="[% latDeg1 %]">
165
                        <input type="hidden" name="latMin1" value="[%latMin1%]">
166
                        <input type="hidden" name="latSec1" value="[%latSec1%]">
167
                        <input type="hidden" name="hemisphLat1" value="[%hemisphLat1%]">	
168
                        <input type="hidden" name="longDeg1" value="[% longDeg1 %]">
169
                        <input type="hidden" name="longMin1" value="[%longMin1%]">
170
                        <input type="hidden" name="longSec1" value="[%longSec1%]">
171
                        <input type="hidden" name="hemisphLong1" value="[%hemisphLong1%]">
172
                        <input type="hidden" name="latDeg2" value="[%latDeg2%]">
173
                        <input type="hidden" name="latMin2" value="[%latMin2%]">
174
                        <input type="hidden" name="latSec2" value="[%latSec2%]">
175
                        <input type="hidden" name="hemisphLat2" value="[%hemisphLat2%]">	
176
                        <input type="hidden" name="longDeg2" value="[%longDeg2%]">
177
                        <input type="hidden" name="longMin2" value="[%longMin2%]">
178
                        <input type="hidden" name="longSec2" value="[%longSec2%]">
179
                        <input type="hidden" name="hemisphLong2" value="[%hemisphLong2%]">
180
                        <input type="hidden" name="taxaCount" value="[%taxaCount%]">
181
                        [% numTaxa = 0 %]
182
                        [% IF taxaCount > 0 %]
183
                            [% numTaxa = taxaCount %]
184
                        [% END %]
185
                        [% cnt = 1 %]
186
                        [% WHILE cnt <= numTaxa %]
187
                            [% SET trn = "taxonRankName${cnt}" %]
188
                            [% SET trv = "taxonRankValue${cnt}" %]
189
                            <input type="hidden" name="[% trn %]" value="[% $trn %]">
190
                            <input type="hidden" name="[% trv %]" value="[% $trv %]">
191
                            [% cnt = cnt + 1 %]
192
                        [% END %]
193
                        <input type="hidden" name="taxaAuth" value="[%taxaAuth%]">
194
                      
195
                        <input type="hidden" name="methodTitle" value="[%methodTitle%]">
196
                        [% FOREACH para = methodPara %]
197
                            <input type="hidden" name="methodPara" value="[%para%]">
198
                        [% END %]
199
                        <input type="hidden" name="studyExtentDescription" value="[%studyExtentDescription%]">
200
                        <input type="hidden" name="samplingDescription" value="[%samplingDescription%]">
201
                      
202
                        <table class="intro" cellpadding="8" cellspacing="0">
203
							<tr><td align="left">
204
								<span class="regtext">Click the button below to return to the form and fill in the required fields.</span>
205
								<span class="redbold">Do NOT use the back button on your browser.</span>
206
								<span class="regtext">Submit the description again when you are finished.</span>
207
							</td></tr>
208
                            <tr>
209
								<td align="left">
210
									<input type="submit" value="Return to Form"/>
211
								</td>
212
							</tr>
213
                        </table>
214
                             
215
                    </form>
216
                [% END %]
217
            [% END %]
218
        [% END %]
219
    [% END %]
220
[% INCLUDE "genericFooter.tmpl" %]
(9-9/19)