Project

General

Profile

metacat / lib / style / common / templates / metacatui / genericResponse.tmpl @ 9780

1
	<article id="RegistryResponse">
2
		<div class="container">
3
		
4
			<div class="row-fluid">
5

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

    
18
	 	[% ELSE %]
19
			<h2>Whoops!</h2>
20
			<p class="lead">An error occurred. Please check the list of errors below: </p>
21
			<ul>
22
				[% FOREACH parameter = invalidParams %]
23
					<li>[% parameter %]</li>
24
				[% END %]
25
			</ul>
26
			<ul>
27
				[% FOREACH msg = errorMessages %]
28
					<li>[% msg %]</li>
29
				[% END %]
30
			</ul>
31
		[% END %]
32
    [% END %]
33
    
34
    [% IF status == 'login_failure' %]
35
		<p>Click <a href = "javascript:history.back()">here</a> to return 
36
        to the previous page, and enter the correct username, organization, and password.</p>
37
    [% ELSE %]
38
        [% IF function == 'deleted' || function == 'cancel' %]
39
            [% IF status != 'success' %]   
40
	            <p>Click <a href = "javascript:history.back()">here</a> to return
41
	            to the previous page, and enter the correct username, organization, and password.</p> 
42
            [%ELSE%]
43
                <p>Or, <a href="#share">register a new data set</a>.
44
				Otherwise, use the toolbar links above to navigate.</p>
45
            [%END%]
46
        [% ELSE %]
47
			[% IF status == 'success' %]
48
				<p>Or, <a id="registerAnotherPackage" href="#share" >register a new data set</a>.
49
				Otherwise, use the toolbar links above to navigate.</p>
50
            [% ELSE %]
51
                [% IF status != 'failure_no_resubmit' %]
52
                    <form id="editForm" name="editForm" action="[% cgiPrefix %]/register-dataset.cgi" method="post">
53
                        <input type="hidden" name="cfg" value="[% cfg %]">
54
                        <input type="hidden" name="docid" value="[% docid %]">
55
                        <input type="hidden" name="stage" value="confirmed">
56
                        <input type="hidden" name="dataWrong" value="No, go back to editing">
57
                        <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
58
                        <input type="hidden" name="providerSurName" value="[%providerSurName%]">
59
                        <input type="hidden" name="site" value="[%site%]">
60
                        [% IF cfg == 'nceas' %]
61
                            [% FOREACH group = wg %]
62
                                <input type="hidden" name="wg" value="[%group%]">
63
                            [% END %]
64
                        [% END %]
65
                        <input type="hidden" name="funding" value="[%funding%]">
66
                        
67
                        [% cnt = 1 %]
68
						[% WHILE cnt <= numIdentifier %]
69
							[% SET id = "identifierValue${cnt}" %]
70
							<input type="hidden" name="[% id %]" value="[% $id %]" />
71
							<input type="hidden" name="identifier" value="[% $id %]" />
72
							[% cnt = cnt + 1 %]
73
						[% END %]  
74
						<input type="hidden" name="identifierCount" value="[% identifierCount %]" />
75
                        
76
                        <input type="hidden" name="title" value="[%title%]">
77
                        <input type="hidden" name="useOrigAddress" value="[%useOrigAddress%]">
78
						
79
						<input type="hidden" name="partyCount" value="[% partyCount %]" />
80
						[% cnt = 0 %]
81
						[% WHILE cnt <= partyCount %]
82
							[% SET partyId         = "partyId${cnt}" %]
83
							[% SET partyFirstName  = "partyFirstName${cnt}" %]
84
							[% SET partyLastName   = "partyLastName${cnt}" %]
85
							[% SET partyRole       = "partyRole${cnt}" %]
86
							[% SET partyOrgName    = "partyOrgName${cnt}" %]
87
							[% SET partyPositionName = "partyPositionName${cnt}" %]
88
							[% SET partyEmail      = "partyEmail${cnt}" %]
89
							[% SET partyURL        = "partyURL${cnt}" %]
90
							[% SET partyPhone      = "partyPhone${cnt}" %]
91
							[% SET partyFAX        = "partyFAX${cnt}" %]
92
							[% SET partyDelivery   = "partyDelivery${cnt}" %]
93
							[% SET partyCity       = "partyCity${cnt}" %]
94
							[% SET partyState      = "partyState${cnt}" %]
95
							[% SET partyStateOther = "partyStateOther${cnt}" %] 
96
							[% SET partyZIP        = "partyZIP${cnt}" %]
97
							[% SET partyCountry    = "partyCountry${cnt}" %]
98
							
99
							<input type="hidden" name="[% partyId         %]" value="[% $partyId         %]" /> 	
100
							<input type="hidden" name="[% partyFirstName  %]" value="[% $partyFirstName  %]" /> 	
101
							<input type="hidden" name="[% partyLastName  	%]" value="[% $partyLastName   %]" />	
102
							<input type="hidden" name="[% partyRole     	%]" value="[% $partyRole       %]" />	
103
							<input type="hidden" name="[% partyOrgName   	%]" value="[% $partyOrgName    %]" />	
104
							<input type="hidden" name="[% partyPositionName %]" value="[% $partyPositionName %]" />	
105
							<input type="hidden" name="[% partyEmail     	%]" value="[% $partyEmail      %]" />	
106
							<input type="hidden" name="[% partyURL      	%]" value="[% $partyURL      %]" />	
107
							<input type="hidden" name="[% partyPhone     	%]" value="[% $partyPhone      %]" />	
108
							<input type="hidden" name="[% partyFAX       	%]" value="[% $partyFAX        %]" />	
109
							<input type="hidden" name="[% partyDelivery  	%]" value="[% $partyDelivery   %]" />	
110
							<input type="hidden" name="[% partyCity      	%]" value="[% $partyCity       %]" />	
111
							<input type="hidden" name="[% partyState     	%]" value="[% $partyState      %]" />	
112
							<input type="hidden" name="[% partyStateOther	%]" value="[% $partyStateOther %]" />	
113
							<input type="hidden" name="[% partyZIP       	%]" value="[% $partyZIP        %]" />	
114
							<input type="hidden" name="[% partyCountry   	%]" value="[% $partyCountry    %]" />			
115
						
116
							<input type="hidden" name="partyFirstName" value="[% $partyFirstName %]" /> 	
117
							<input type="hidden" name="partyLastName" value="[% $partyLastName %]" />	
118
							<input type="hidden" name="partyRole" value="[% $partyRole %]" />	
119
							<input type="hidden" name="partyOrgName" value="[% $partyOrgName %]" />	
120
							<input type="hidden" name="partyPositionName" value="[% $partyPositionName %]" />	
121
							<input type="hidden" name="partyEmail" value="[% $partyEmail %]" />	
122
							<input type="hidden" name="partyURL" value="[% $partyURL %]" />	
123
							<input type="hidden" name="partyPhone" value="[% $partyPhone %]" />	
124
							<input type="hidden" name="partyFAX" value="[% $partyFAX %]" />	
125
							<input type="hidden" name="partyDelivery" value="[% $partyDelivery %]" />	
126
							<input type="hidden" name="partyCity" value="[% $partyCity %]" />	
127
							<input type="hidden" name="partyState" value="[% $partyState %]" />	
128
							<input type="hidden" name="partyStateOther" value="[% $partyStateOther %]" />	
129
							<input type="hidden" name="partyZIP" value="[% $partyZIP %]" />	
130
							<input type="hidden" name="partyCountry" value="[% $partyCountry %]" />			
131
						
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
                    	<span class="help-block">
227
                            Click the button below to return to the form and fill in the required fields.
228
                            <em>Do NOT use the back button on your browser.</em>
229
                            Submit the description again when you are finished.
230
                        </span>
231
                    	<input id="entryReturnSubmit" type="button" class="btn" value="Return to Form"/>
232
                    	
233
                    </form>
234
                [% END %]
235
            [% END %]
236
        [% END %]
237
    [% END %]
238
    
239
    			</div>
240
    
241
    		</div>
242
	</article>
243