Project

General

Profile

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

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

    
187
                        [% cnt = 0 %]
188
                        [% WHILE cnt < fCount %]
189
                            [% SET fileSum = "upload_${cnt}" %]
190
                            [% SET fileName = "uploadname_${cnt}" %]
191
                            [% SET fileType = "uploadtype_${cnt}" %]
192
                            [% SET filePerm = "uploadperm_${cnt}" %]
193

    
194
                            [% IF fileSum %]
195

    
196
                                <input type="hidden" name="[% fileSum %]" value="[% $fileSum %]">
197
                                <input type="hidden" name="[% fileName %]" value="[% $fileName %]">
198
                                <input type="hidden" name="[% fileType %]" value="[% $fileType %]">
199
                                <input type="hidden" name="[% filePerm %]" value="[% $filePerm %]">
200
                            [% END %]
201
                            [% cnt = cnt + 1 %]
202
                        [% END %]
203
                        
204
                    	<span class="help-block">
205
                            Click the button below to return to the form and fill in the required fields.
206
                            <em>Do NOT use the back button on your browser.</em>
207
                            Submit the description again when you are finished.
208
                        </span>
209
                    	<input id="entryReturnSubmit" type="button" class="btn" value="Return to Form"/>
210
                    	
211
                    </form>
212
                [% END %]
213
            [% END %]
214
        [% END %]
215
    [% END %]
216
    
217
    			</div>
218
    
219
    		</div>
220
	</article>
221