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">View the <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">data set description</a>.</span></td></tr> 	   
13
        [%END%]
14
      </table>
15
    [% ELSE %]
16
    	[%  IF function == 'cancel' %]
17

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

    
194
                        [% cnt = 0 %]
195
                        [% WHILE cnt < fCount %]
196
                            [% SET fileSum = "upload_${cnt}" %]
197
                            [% SET fileName = "uploadname_${cnt}" %]
198
                            [% SET fileType = "uploadtype_${cnt}" %]
199
                            [% SET filePerm = "uploadperm_${cnt}" %]
200

    
201
                            [% IF fileSum %]
202

    
203
                                <input type="hidden" name="[% fileSum %]" value="[% $fileSum %]">
204
                                <input type="hidden" name="[% fileName %]" value="[% $fileName %]">
205
                                <input type="hidden" name="[% fileType %]" value="[% $fileType %]">
206
                                <input type="hidden" name="[% filePerm %]" value="[% $filePerm %]">
207
                            [% END %]
208
                            [% cnt = cnt + 1 %]
209
                        [% END %]
210
                 
211
                     <table class="intro" cellpadding="8" cellspacing="0">
212
                        <tr><td align="left">
213
                            <span class="regtext">Click the button below to return to the form and fill in the required fields.</span>
214
                            <span class="redbold">Do NOT use the back button on your browser.</span>
215
                            <span class="regtext">Submit the description again when you are finished.</span>
216
                        </td></tr>
217
                            <tr>
218
								<td align="left">
219
									<input type="submit" value="Return to Form"/>
220
								</td>
221
							</tr>
222
                        </table>
223
                             
224
                    </form>
225
                [% END %]
226
            [% END %]
227
        [% END %]
228
    [% END %]
229
[% INCLUDE $templates.footer %]
(11-11/26)