Project

General

Profile

metacat / lib / style / common / templates / genericResponse.tmpl @ 2150

1 1929 brooke
[% INCLUDE "genericHeader.tmpl" %]
2
3
    [% IF status == 'success' %]
4
        <h2>Success</h2>
5
	[% IF function == 'deleted' %]
6
            <p>Your entry has been [% function  %].  Thank you.</p>
7
        [%ELSE%]
8
	    <p>Your entry has been [% function  %].  Thank you.</p>
9 2138 sgarg
            <p>You can the see the entry by clicking
10
	    <a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">here</a> or the Search button above.
11 1929 brooke
 <!--       <p>The entry will be reviewed by the [% orgabbrev %] Data Registry
12
            Manager and then will be added to the registry. You
13
            should expect to see the entry within a few days.</p> -->
14
15
        [%END%]
16
    [% ELSE %]
17
        <h2>Failure</h2>
18 2023 sgarg
19
	<p>An error occurred.  Most likely some required fields
20 1929 brooke
        were missing.  Please check the list of errors below and
21 2023 sgarg
        click here to return to the previous form to fill in all
22
        required fields and submit the form again.</p>
23 1929 brooke
24
        <ul>
25
        [% FOREACH parameter = invalidParams %]
26
            <li class="emphasis">[% parameter %]</li>
27
        [% END %]
28
        </ul>
29
30
        <ul>
31
        [% FOREACH msg = errorMessages %]
32
            <li class="emphasis">[% msg %]</li>
33
        [% END %]
34
        </ul>
35
    [% END %]
36
37
    <p>&nbsp;</p>
38
    [% IF function == 'deleted' %]
39
       <p>For a new entry, click on 'Register New Dataset' in the toolbar above.
40
       Otherwise, use the toolbar links above to navigate.</p>
41
    [% ELSE %]
42 2023 sgarg
    [% IF status == 'success' %]
43 1929 brooke
       <p>For a new entry, or to make changes to the entry just submitted,
44
       use the return function in your browser to go back.
45
       Otherwise, use the toolbar links above to navigate.</p>
46 2023 sgarg
    [% ELSE %]
47
       <form name="editForm" action="@cgi-prefix@/register-dataset.cgi" method="post">
48
       <input type="hidden" name="cfg" value="[% cfg %]">
49
	  <input type="hidden" name="docid" value="[% docid %]">
50
  <input type="hidden" name="stage" value="confirmed">
51
  <input type="hidden" name="dataWrong" value="No, go back to editing">
52 2138 sgarg
  <input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
53 2150 sgarg
  <input type="hidden" name="hasTemporal" value="[% hasTemporal %]">
54
  <input type="hidden" name="hasSpatial" value="[% hasSpatial %]">
55
  <input type="hidden" name="hasTaxonomic" value="[% hasTaxonomic %]">
56
  <input type="hidden" name="hasMethod" value="[% hasMethod %]">
57
  <input type="hidden" name="temporalRequired" value="[% temporarlRequired %]">
58
  <input type="hidden" name="spatialRequired" value="[% spatialRequired %]">
59 2023 sgarg
  <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
60
  <input type="hidden" name="providerSurName" value="[%providerSurName%]">
61
  <input type="hidden" name="site" value="[%site%]">
62
  [% IF cfg == 'nceas' %]
63
      [% FOREACH group = wg %]
64
          <input type="hidden" name="wg" value="[%group%]">
65
      [% END %]
66
  [% END %]
67
  <input type="hidden" name="identifier" value="[%identifier%]">
68
  <input type="hidden" name="title" value="[%title%]">
69
  <input type="hidden" name="origNamefirst0" value="[%origNamefirst0%]">
70
  <input type="hidden" name="origNamelast0" value="[%origNamelast0%]">
71
  <input type="hidden" name="origNameOrg" value="[%origNameOrg%]">
72
  <input type="hidden" name="origRole0" value="[%origRole0%]">
73
  <input type="hidden" name="origDelivery" value="[%origDelivery%]">
74
  <input type="hidden" name="origCity" value="[%origCity%]">
75
  <input type="hidden" name="origState" value="[%origState%]">
76
  <input type="hidden" name="origStateOther" value="[%origStateOther%]">
77
  <input type="hidden" name="origZIP" value="[%origZIP%]">
78
  <input type="hidden" name="origCountry" value="[%origCountry%]">
79
  <input type="hidden" name="origPhone" value="[%origPhone%]">
80
  <input type="hidden" name="origFAX" value="[%origFAX%]">
81
  <input type="hidden" name="origEmail" value="[%origEmail%]">
82
  <input type="hidden" name="useOrigAddress" value="[%useOrigAddress%]">
83
  <input type="hidden" name="origNamefirstContact" value="[%origNamefirstContact%]">
84
  <input type="hidden" name="origNamelastContact" value="[%origNamelastContact%]">
85
  <input type="hidden" name="origNameOrgContact" value="[%origNameOrgContact%]">
86
  <input type="hidden" name="origDeliveryContact" value="[%origDeliveryContact%]">
87
  <input type="hidden" name="origCityContact" value="[%origCityContact%]">
88
  <input type="hidden" name="origStateContact" value="[%origStateContact%]">
89
  <input type="hidden" name="origStateOtherContact" value="[%origStateOtherContact%]">
90
  <input type="hidden" name="origZIPContact" value="[%origZIPContact%]">
91
  <input type="hidden" name="origCountryContact" value="[%origCountryContact%]">
92
  <input type="hidden" name="origPhoneContact" value="[%origPhoneContact%]">
93
  <input type="hidden" name="origFAXContact" value="[%origFAXContact%]">
94
  <input type="hidden" name="origEmailContact" value="[%origEmailContact%]">
95 2144 sgarg
 [% numAO = 0 %]
96
    [% IF aoCount > 0 %]
97
        [% numAO = aoCount %]
98
    [% END %]
99
  [% cnt = 1 %]
100
  [% WHILE cnt <= numAO %]
101
      [% SET origNamefirst = "origNamefirst${cnt}" %]
102
      [% SET origNamelast = "origNamelast${cnt}" %]
103
      [% SET origRole = "origRole${cnt}" %]
104
      <input type="hidden" name="[% origNamefirst %]" value="[% $origNamefirst%]">
105
      <input type="hidden" name="[% origNamelast %]" value="[% $origNamelast%]">
106
      <input type="hidden" name="[% origRole %]" value="[% $origRole%]">
107
      [% cnt = cnt + 1 %]
108
  [% END %]
109
110 2023 sgarg
  <input type="hidden" name="abstract" value="[%abstract%]">
111 2027 sgarg
  <input type="hidden" name="keyCount" value="[%keyCount%]">
112
  [% numKey = 0 %]
113
    [% IF keyCount > 0 %]
114
        [% numKey = keyCount %]
115
    [% END %]
116
  [% cnt = 1 %]
117
  [% WHILE cnt <= numKey %]
118
      [% SET kyd = "keyword${cnt}" %]
119
      [% SET keyType = "kwType${cnt}" %]
120
      [% SET keyTh = "kwTh${cnt}" %]
121
      <input type="hidden" name="[% kyd %]" value="[% $kyd %]">
122
      <input type="hidden" name="[% keyType %]" value="[% $keyType %]">
123
      <input type="hidden" name="[% keyTh %]" value="[% $keyTh %]">
124
      [% cnt = cnt + 1 %]
125
  [% END %]
126 2023 sgarg
  <input type="hidden" name="addComments" value="[%addComments%]">
127
  <input type="hidden" name="useConstraints" value="[%useConstraints%]">
128
  <input type="hidden" name="useConstraintsOther" value="[%useConstraintsOther%]">
129
  <input type="hidden" name="url" value="[%url%]">
130
  <input type="hidden" name="dataMedium" value="[%dataMedium%]">
131
  <input type="hidden" name="dataMediumOther" value="[%dataMediumOther%]">
132
  <input type="hidden" name="beginningYear" value="[%beginningYear%]">
133
  <input type="hidden" name="beginningMonth" value="[%beginningMonth%]">
134
  <input type="hidden" name="beginningDay" value="[%beginningDay%]">
135
  <input type="hidden" name="endingYear" value="[%endingYear%]">
136
  <input type="hidden" name="endingMonth" value="[%endingMonth%]">
137
  <input type="hidden" name="endingDay" value="[%endingDay%]">
138
  <input type="hidden" name="geogdesc" value="[%geogdesc%]">
139
  <input type="hidden" name="useSiteCoord" value="[%useSiteCoord%]">
140
  <input type="hidden" name="latDeg1" value="[% latDeg1 %]">
141
  <input type="hidden" name="latMin1" value="[%latMin1%]">
142
  <input type="hidden" name="latSec1" value="[%latSec1%]">
143
  <input type="hidden" name="hemisphLat1" value="[%hemisphLat1%]">
144
  <input type="hidden" name="longDeg1" value="[% longDeg1 %]">
145
  <input type="hidden" name="longMin1" value="[%longMin1%]">
146
  <input type="hidden" name="longSec1" value="[%longSec1%]">
147
  <input type="hidden" name="hemisphLong1" value="[%hemisphLong1%]">
148
  <input type="hidden" name="latDeg2" value="[%latDeg2%]">
149
  <input type="hidden" name="latMin2" value="[%latMin2%]">
150
  <input type="hidden" name="latSec2" value="[%latSec2%]">
151
  <input type="hidden" name="hemisphLat2" value="[%hemisphLat2%]">
152
  <input type="hidden" name="longDeg2" value="[%longDeg2%]">
153
  <input type="hidden" name="longMin2" value="[%longMin2%]">
154
  <input type="hidden" name="longSec2" value="[%longSec2%]">
155
  <input type="hidden" name="hemisphLong2" value="[%hemisphLong2%]">
156
  <input type="hidden" name="taxaCount" value="[%taxaCount%]">
157
  [% numTaxa = 0 %]
158
    [% IF taxaCount > 0 %]
159
        [% numTaxa = taxaCount %]
160 1929 brooke
    [% END %]
161 2023 sgarg
  [% cnt = 1 %]
162
  [% WHILE cnt <= numTaxa %]
163
      [% SET trn = "taxonRankName${cnt}" %]
164
      [% SET trv = "taxonRankValue${cnt}" %]
165
      <input type="hidden" name="[% trn %]" value="[% $trn %]">
166
      <input type="hidden" name="[% trv %]" value="[% $trv %]">
167
      [% cnt = cnt + 1 %]
168
  [% END %]
169
  <input type="hidden" name="taxaAuth" value="[%taxaAuth%]">
170
171
  <input type="hidden" name="methodTitle" value="[%methodTitle%]">
172
  [% FOREACH para = methodPara %]
173
      <input type="hidden" name="methodPara" value="[%para%]">
174
  [% END %]
175
  <input type="hidden" name="studyExtentDescription" value="[%studyExtentDescription%]">
176
  <input type="hidden" name="samplingDescription" value="[%samplingDescription%]">
177
178
       <p>To make changes to the entry just submitted,click
179
	<a href="#" onclick="document.editForm.submit()">here</a>.
180
       Otherwise, use the toolbar links above to navigate.</p>
181
      </form>
182
    [% END %]
183
    [% END %]
184 1929 brooke
[% INCLUDE "genericFooter.tmpl" %]