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

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

    
202
                            [% IF fileSum %]
203

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