Project

General

Profile

1

    
2
	<!-- CONTENT SECTION
3
    ======================================================================= -->
4
	<article id="RegistryResponse">
5
		<div class="container">
6
		
7
			<div class="row-fluid">
8

    
9
	[% IF status == 'success' %]
10
        
11
     	<h2>Success</h2>
12
	    <p class="lead">Your data set description has been [% function  %].  Thank you.</p>
13
		[% IF function == 'deleted' %]
14
			<!-- no pointer to deleted content -->
15
        [%ELSE%]
16
            <p>View the <a href="#view/[% docid %]"> data set description</a>.</p>
17
        [%END%]
18
    [% ELSE %]
19
    	[%  IF function == 'cancel' %]
20

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

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

    
204
                            [% IF fileSum %]
205

    
206
                                <input type="hidden" name="[% fileSum %]" value="[% $fileSum %]">
207
                                <input type="hidden" name="[% fileName %]" value="[% $fileName %]">
208
                                <input type="hidden" name="[% fileType %]" value="[% $fileType %]">
209
                                <input type="hidden" name="[% filePerm %]" value="[% $filePerm %]">
210
                            [% END %]
211
                            [% cnt = cnt + 1 %]
212
                        [% END %]
213
                        
214
                    	<span class="help-block">
215
                            Click the button below to return to the form and fill in the required fields.
216
                            <em>Do NOT use the back button on your browser.</em>
217
                            Submit the description again when you are finished.
218
                        </span>
219
                    	<input id="entryReturnSubmit" type="button" class="btn" value="Return to Form"/>
220
                    	
221
                    </form>
222
                [% END %]
223
            [% END %]
224
        [% END %]
225
    [% END %]
226
    
227
    			</div>
228
    
229
    		</div>
230
	</article>
231
	
(6-6/7)