Project

General

Profile

1
[% INCLUDE $templates.header %]
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="[% servletPath %]?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="[% cgiPrefix %]/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="[% cgiPrefix %]/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="[% cgiPrefix %]/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="hasUpload" value="[% hasUpload %]">
79
                        <input type="hidden" name="temporalRequired" value="[% temporalRequired %]">
80
                        <input type="hidden" name="spatialRequired" value="[% spatialRequired %]">
81
                        <input type="hidden" name="contactEmailAddressRequired" value="[% contactEmailAddressRequired %]">
82
                        <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
83
                        <input type="hidden" name="providerSurName" value="[%providerSurName%]">
84
                        <input type="hidden" name="site" value="[%site%]">
85
                        [% IF cfg == 'nceas' %]
86
                            [% FOREACH group = wg %]
87
                                <input type="hidden" name="wg" value="[%group%]">
88
                            [% END %]
89
                        [% END %]
90
                        <input type="hidden" name="identifier" value="[%identifier%]">
91
                        <input type="hidden" name="title" value="[%title%]">
92
                        <input type="hidden" name="origNamefirst0" value="[%origNamefirst0%]">
93
                        <input type="hidden" name="origNamelast0" value="[%origNamelast0%]">
94
                        <input type="hidden" name="origNameOrg" value="[%origNameOrg%]">
95
                        <input type="hidden" name="origRole0" value="[%origRole0%]">
96
                        <input type="hidden" name="origDelivery" value="[%origDelivery%]">
97
                        <input type="hidden" name="origCity" value="[%origCity%]"> 
98
                        <input type="hidden" name="origState" value="[%origState%]">
99
                        <input type="hidden" name="origStateOther" value="[%origStateOther%]">
100
                        <input type="hidden" name="origZIP" value="[%origZIP%]">
101
                        <input type="hidden" name="origCountry" value="[%origCountry%]">
102
                        <input type="hidden" name="origPhone" value="[%origPhone%]">
103
                        <input type="hidden" name="origFAX" value="[%origFAX%]">
104
                        <input type="hidden" name="origEmail" value="[%origEmail%]">
105
                        <input type="hidden" name="useOrigAddress" value="[%useOrigAddress%]">
106
                        <input type="hidden" name="origNamefirstContact" value="[%origNamefirstContact%]">
107
                        <input type="hidden" name="origNamelastContact" value="[%origNamelastContact%]">
108
                        <input type="hidden" name="origNameOrgContact" value="[%origNameOrgContact%]">
109
                        <input type="hidden" name="origDeliveryContact" value="[%origDeliveryContact%]">
110
                        <input type="hidden" name="origCityContact" value="[%origCityContact%]"> 
111
                        <input type="hidden" name="origStateContact" value="[%origStateContact%]">
112
                        <input type="hidden" name="origStateOtherContact" value="[%origStateOtherContact%]">
113
                        <input type="hidden" name="origZIPContact" value="[%origZIPContact%]">
114
                        <input type="hidden" name="origCountryContact" value="[%origCountryContact%]">
115
                        <input type="hidden" name="origPhoneContact" value="[%origPhoneContact%]">
116
                        <input type="hidden" name="origFAXContact" value="[%origFAXContact%]">
117
                        <input type="hidden" name="origEmailContact" value="[%origEmailContact%]">
118
                        <input type="hidden" name="aoCount" value="[%aoCount%]">
119
  
120
                        [% numAO = 0 %]
121
                        [% IF aoCount > 0 %]
122
                            [% numAO = aoCount %]
123
                        [% END %]
124
                        [% cnt = 1 %]
125
                        [% WHILE cnt <= numAO %]
126
                            [% SET origNamefirst = "origNamefirst${cnt}" %]
127
                            [% SET origNamelast = "origNamelast${cnt}" %]
128
                            [% SET origRole = "origRole${cnt}" %]
129
                            <input type="hidden" name="[% origNamefirst %]" value="[% $origNamefirst%]">
130
                            <input type="hidden" name="[% origNamelast %]" value="[% $origNamelast%]">
131
                            <input type="hidden" name="[% origRole %]" value="[% $origRole%]">
132
                            [% cnt = cnt + 1 %]
133
                        [% END %]
134
                      
135
                        <input type="hidden" name="abstract" value="[%abstract%]">
136
                        <input type="hidden" name="keyCount" value="[%keyCount%]">
137
                        [% numKey = 0 %]
138
                        [% IF keyCount > 0 %]
139
                            [% numKey = keyCount %]
140
                        [% END %]
141
                        [% cnt = 1 %]
142
                        [% WHILE cnt <= numKey %]
143
                            [% SET kyd = "keyword${cnt}" %]
144
                            [% SET keyType = "kwType${cnt}" %]
145
                            [% SET keyTh = "kwTh${cnt}" %]
146
                            <input type="hidden" name="[% kyd %]" value="[% $kyd %]">
147
                            <input type="hidden" name="[% keyType %]" value="[% $keyType %]">
148
                            <input type="hidden" name="[% keyTh %]" value="[% $keyTh %]">
149
                            [% cnt = cnt + 1 %]
150
                        [% END %]
151
                        <input type="hidden" name="addComments" value="[%addComments%]">
152
                        <input type="hidden" name="useConstraints" value="[%useConstraints%]">
153
                        <input type="hidden" name="useConstraintsOther" value="[%useConstraintsOther%]">
154
                        <input type="hidden" name="url" value="[%url%]">
155
                        <input type="hidden" name="dataMedium" value="[%dataMedium%]">
156
                        <input type="hidden" name="dataMediumOther" value="[%dataMediumOther%]">
157
                        <input type="hidden" name="beginningYear" value="[%beginningYear%]">
158
                        <input type="hidden" name="beginningMonth" value="[%beginningMonth%]">
159
                        <input type="hidden" name="beginningDay" value="[%beginningDay%]">
160
                        <input type="hidden" name="endingYear" value="[%endingYear%]">
161
                        <input type="hidden" name="endingMonth" value="[%endingMonth%]">
162
                        <input type="hidden" name="endingDay" value="[%endingDay%]">
163
                        <input type="hidden" name="geogdesc" value="[%geogdesc%]">
164
                        <input type="hidden" name="useSiteCoord" value="[%useSiteCoord%]">
165
                        <input type="hidden" name="latDeg1" value="[% latDeg1 %]">
166
                        <input type="hidden" name="latMin1" value="[%latMin1%]">
167
                        <input type="hidden" name="latSec1" value="[%latSec1%]">
168
                        <input type="hidden" name="hemisphLat1" value="[%hemisphLat1%]">	
169
                        <input type="hidden" name="longDeg1" value="[% longDeg1 %]">
170
                        <input type="hidden" name="longMin1" value="[%longMin1%]">
171
                        <input type="hidden" name="longSec1" value="[%longSec1%]">
172
                        <input type="hidden" name="hemisphLong1" value="[%hemisphLong1%]">
173
                        <input type="hidden" name="latDeg2" value="[%latDeg2%]">
174
                        <input type="hidden" name="latMin2" value="[%latMin2%]">
175
                        <input type="hidden" name="latSec2" value="[%latSec2%]">
176
                        <input type="hidden" name="hemisphLat2" value="[%hemisphLat2%]">	
177
                        <input type="hidden" name="longDeg2" value="[%longDeg2%]">
178
                        <input type="hidden" name="longMin2" value="[%longMin2%]">
179
                        <input type="hidden" name="longSec2" value="[%longSec2%]">
180
                        <input type="hidden" name="hemisphLong2" value="[%hemisphLong2%]">
181
                        <input type="hidden" name="taxaCount" value="[%taxaCount%]">
182
                        [% numTaxa = 0 %]
183
                        [% IF taxaCount > 0 %]
184
                            [% numTaxa = taxaCount %]
185
                        [% END %]
186
                        [% cnt = 1 %]
187
                        [% WHILE cnt <= numTaxa %]
188
                            [% SET trn = "taxonRankName${cnt}" %]
189
                            [% SET trv = "taxonRankValue${cnt}" %]
190
                            <input type="hidden" name="[% trn %]" value="[% $trn %]">
191
                            <input type="hidden" name="[% trv %]" value="[% $trv %]">
192
                            [% cnt = cnt + 1 %]
193
                        [% END %]
194
                        <input type="hidden" name="taxaAuth" value="[%taxaAuth%]">
195
                      
196
                        <input type="hidden" name="methodTitle" value="[%methodTitle%]">
197
                        [% FOREACH para = methodPara %]
198
                            <input type="hidden" name="methodPara" value="[%para%]">
199
                        [% END %]
200
                        <input type="hidden" name="studyExtentDescription" value="[%studyExtentDescription%]">
201
                        <input type="hidden" name="samplingDescription" value="[%samplingDescription%]">
202
                        <input type="hidden" name="fileCount" value="[%fileCount%]">
203
                        <input type="hidden" name="upCount" value="[%upCount%]">
204
                        [% fCount = 0 %]
205
                        [% IF upCount > 0 %]
206
                            [% fCount = upCount %]
207
                        [% END %]
208

    
209
                        [% cnt = 0 %]
210
                        [% WHILE cnt < fCount %]
211
                            [% SET fileSum = "upload_${cnt}" %]
212
                            [% SET fileName = "uploadname_${cnt}" %]
213
                            [% SET fileType = "uploadtype_${cnt}" %]
214
                            [% SET filePerm = "uploadperm_${cnt}" %]
215

    
216
                            [% IF fileSum %]
217

    
218
                                <input type="hidden" name="[% fileSum %]" value="[% $fileSum %]">
219
                                <input type="hidden" name="[% fileName %]" value="[% $fileName %]">
220
                                <input type="hidden" name="[% fileType %]" value="[% $fileType %]">
221
                                <input type="hidden" name="[% filePerm %]" value="[% $filePerm %]">
222
                            [% END %]
223
                            [% cnt = cnt + 1 %]
224
                        [% END %]
225
                 
226
                     <table class="intro" cellpadding="8" cellspacing="0">
227
                        <tr><td align="left">
228
                            <span class="regtext">Click the button below to return to the form and fill in the required fields.</span>
229
                            <span class="redbold">Do NOT use the back button on your browser.</span>
230
                            <span class="regtext">Submit the description again when you are finished.</span>
231
                        </td></tr>
232
                            <tr>
233
								<td align="left">
234
									<input type="submit" value="Return to Form"/>
235
								</td>
236
							</tr>
237
                        </table>
238
                             
239
                    </form>
240
                [% END %]
241
            [% END %]
242
        [% END %]
243
    [% END %]
244
[% INCLUDE $templates.footer %]
(10-10/24)