Project

General

Profile

1
[% INCLUDE "genericHeader.tmpl" %]
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">You can see the data set description by clicking 
13
	    <a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">here</a>.</span></td></tr> 	   
14
        [%END%]
15
      </table>
16
    [% ELSE %]
17
    	[%  IF function == 'cancel' %]
18

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