@@ -132,71 +132,74 @@ Need Help? Check out the <a href="<%= domainApp %>/documentation.do" target="new
132132 }
133133 if (! takeDownUpload || LoginMgr . isAdmin(accessLogin)) { % >
134134
135- <html:form method =" POST" action =" upload.do" enctype =" multipart/form-data" >
136- <input type =" hidden" name =" ancFileDirectory" value =" none" />
137- <input type =" hidden" name =" action" value =" specimenUpload" />
138- <input type =" hidden" name =" updateAdvanced" value =" no" />
139- <input type =" hidden" name =" updateFieldGuide" value =" none" />
140- <input type =" hidden" name =" images" value =" no" />
141- <input type =" hidden" name =" outputFileName" value =" " />
142- <input type =" hidden" name =" successkey" value =" null" />
143- <input type =" hidden" name =" updateAdvanced" value =" yes" />
144-
145135 <div class =" admin_action_item" >
146136 <div style =" float :left ;" >
147137 <h2 >Specimen Data</h2 >
148138 </div >
149139 <div class =" clear" ></div >
150140 </div >
151141
152- <div class =" admin_action_item" >
153- <br ><div class =" action_desc" ><b >Upload</b > Specimen File:<br >  ;  ;  ; (tab-delimited .txt file)</div >
154- <div class =" action_dropdown" ></div >
155- <div class =" action_browse" >
156- <html:file property =" theFile" />
157- </div >
158- <div class =" clear" ></div >
142+ <!-- Universal Specimen Upload -->
143+ <!-- Antweb, TaxonWorks, or GBIF Specimen (file or Zip File) Upload -->
159144
160- <% if (AntwebProps . isDevMode()) {
161- if (true ) { % >
162- <div class =" align_left" >
163- <select name =" specimenUploadType" >
164- <option value =" full" selected >Full
165- <option value =" incremental" >Incremental
166- <option value =" diff" >Diff
167- <option value =" augment" >Augment
168- </select ><br >
169- </div >
170- <% } else { % >
171- <div class =" admin_action_item" >
172- <html:checkbox property =" whole" value =" true" /> Update entire the biota file
173- </div >
174- <% } % >
175- <% } else { % >
176- <input type =" hidden" name =" whole" value =" true" />
177- <% } % >
178-
179- <% if (false && LoginMgr . isCurator(accessLogin)) { // || accessLogin.getId() == 16) { // || accessLogin.getId() == 338 %>
180- < div class= " align_left" >
181- < select name= " encoding" >
182- < option value= " default" selected> Default
183- < option value= " UTF-8" > UTF - 8
184- < option value= " MacRoman" > MacRoman
185- < option value= " ISO8859_1" > ISO8859_1
145+ <html:form method =" POST" action =" upload.do" enctype =" multipart/form-data" >
146+
147+ <div class =" admin_action_item" >
148+ <br >
149+ <div class =" action_desc" ><b >Upload</b > Specimen File or Zip File:<br >  ;  ;  ; </div >
150+ <div class =" action_browse" >
151+ <html:file property =" theFile" />
152+ </div >
153+ <div class =" clear" ></div >
154+
155+ <%
156+ if (LoginMgr . isAdmin(accessLogin)) { % >
157+
158+ <div class =" align_left" >
159+   ;  ; Upload Type:
160+ <select name =" action" >
161+ <option value =" specimenUpload" selected >Antweb
162+ <option value =" taxonWorksUpload" >TaxonWorks
163+ <option value =" GBIFUpload" >GBIF
186164 </select >
187- < / div>
188- <% } % >
165+ </div >
189166
190- To calculate the taxon children counts run the < a href= ' <%= domainApp % > /utilData.do?action=runCountCrawls' title= " If taxon children counts are not calculated subsequent to the upload, it will happen nightly." > Count Crawls<img src= < %= domainApp% > /image/new1.png width=20></a >
191- <br >If not returned an upload report, find it in the <a href =' <%= domainApp % > /listSpecimenUploads.do?groupId=<%= accessGroup. getId() % >' >Specimen Upload Reports</a >.
167+ <div class =" align_left" >
168+   ;  ; Upload as:
169+ <select name =" uploadAs" >
170+ <option value =" <%= accessLogin. getId() % >" selected ><%= accessLogin. getName() % >
192171
172+ <%
173+ String uploadAs = accessLogin. getUploadAs();
174+ if (uploadAs != null ) {
175+ List<String > curatorList = new ArrayList<String > (Arrays . asList(uploadAs. split(" ," )));
176+ for (String curatorIdStr : curatorList) {
177+ int curatorId = Integer . parseInt((curatorIdStr. trim()));
178+ Login curator = LoginMgr . getCurator(curatorId);
179+ % >
180+ <option value =" <%= curator. getId() % >" ><%= curator. getName() % >
181+ <% } % >
182+ </select >
183+ </div >
193184
194- <div class =" align_right" ><input border =" 0" type =" image" src =" <%= domainApp % > /image/grey_submit.png" width =" 77" height =" 23" value =" Submit" <% = active % >></div >
195- <div class =" clear" ></div >
196- </div >
185+ <% } % >
186+ <% } else { % >
187+ <input type =" hidden" name =" action" value =" specimenUpload" />
188+ <input type =" hidden" name =" specimenUploadLoginId" value =" <%= accessLogin. getId() % >" />
189+
190+ <% } % >
197191
192+ <div class =" align_right" ><input border =" 0" type =" image" src =" <%= domainApp % > /image/grey_submit.png" width =" 77" height =" 23" value =" Submit" <% = active % >></div >
193+ <div class =" clear" >
194+ To calculate the taxon children counts run the <a href =' <%= domainApp % > /utilData.do?action=runCountCrawls' title =" If taxon children counts are not calculated subsequent to the upload, it will happen nightly." >Count Crawls<img src =<% = domainApp% >/image/new1.png width=20></a >
195+ <br >If not returned an upload report, find it in the <a href =' <%= domainApp % > /listSpecimenUploads.do?groupId=<%= accessGroup. getId() % >' >Specimen Upload Reports</a >. <br ><br >
196+ </div >
197+ </div >
198198 </html:form >
199199
200+ <!-- End Specimen file or Zip File Upload -->
201+
202+
200203 <!-- Reload Specimen Data -->
201204
202205 <div class =" admin_action_module" >
@@ -343,115 +346,6 @@ To calculate the taxon children counts run the <a href='<%= domainApp %>/utilDat
343346 </div >
344347 </html:form >
345348
346-
347- <!-- TaxonWorks Specimen Zip File Upload -->
348- <% if (AntwebProps . isDevMode() || GroupMgr . isCAS(accessGroup)) { % >
349- <html:form method =" POST" action =" upload.do" enctype =" multipart/form-data" >
350- <input type =" hidden" name =" action" value =" taxonWorksUpload" />
351-
352- <div class =" admin_action_item" >
353- <div class =" action_desc" ><b >Upload</b > TaxonWorks Specimen Zip File:<br >  ;  ;  ; (w/ tab-delimited .tsv file)</div >
354- <div class =" action_browse" >
355- <html:file property =" theFile" />
356- </div >
357- <div class =" clear" ></div >
358-
359- <input type =" hidden" name =" whole" value =" true" />
360-
361- <div class =" align_right" ><input border =" 0" type =" image" src =" <%= domainApp % > /image/grey_submit.png" width =" 77" height =" 23" value =" Submit" <% = active % >></div >
362- <div class =" clear" ></div >
363- </div >
364- </html:form >
365-
366- <!-- End TaxonWorks Specimen Zip File Upload -->
367- <% } % >
368-
369-
370- <!-- GBIF Specimen Zip File Upload -->
371- <% if (GroupMgr . isCAS(accessGroup) || LoginMgr . isMingnaUtep(accessLogin)) { % >
372- <!-- GBIF Specimen file or Zip File Upload -->
373-
374- <html:form method =" POST" action =" upload.do" enctype =" multipart/form-data" >
375- <input type =" hidden" name =" action" value =" GBIFUpload" />
376-
377- <div class =" admin_action_item" >
378- <div class =" action_desc" ><b >Upload</b > GBIF Specimen File or Zip File:<br >  ;  ;  ; </div >
379- <div class =" action_browse" >
380- <html:file property =" theFile" />
381- </div >
382- <div class =" clear" ></div >
383-
384- <input type =" hidden" name =" whole" value =" true" />
385-
386- <div class =" align_right" ><input border =" 0" type =" image" src =" <%= domainApp % > /image/grey_submit.png" width =" 77" height =" 23" value =" Submit" <% = active % >></div >
387- <div class =" clear" ></div >
388- </div >
389- </html:form >
390-
391- <!-- End GBIF Specimen file or Zip File Upload -->
392- <% } % >
393-
394- <div class =" admin_action_item" >
395- <br ><b ><small >Testing: For Admin only:</small ></b >
396- </div >
397-
398-
399- <!-- Universal Specimen Upload -->
400- <% if (AntwebProps . isDevMode() || LoginMgr . isAdmin(accessLogin)) { % >
401- <!-- Antweb, TaxonWorks, or GBIF Specimen (file or Zip File) Upload -->
402-
403- <html:form method =" POST" action =" upload.do" enctype =" multipart/form-data" >
404-
405- <div class =" admin_action_item" >
406- <div class =" action_desc" ><b >Upload</b > Specimen File or Zip File:<br >  ;  ;  ; </div >
407- <div class =" action_browse" >
408- <html:file property =" theFile" />
409- </div >
410- <div class =" clear" ></div >
411-
412- <% if (LoginMgr . isAdmin(accessLogin)) { % >
413-
414- <div class =" align_left" >
415-   ;  ; Upload Type:
416- <select name =" action" >
417- <option value =" specimenUpload" selected >Antweb
418- <option value =" taxonWorksUpload" >TaxonWorks
419- <option value =" GBIFUpload" >GBIF
420- </select >
421- </div >
422-
423- <div class =" align_left" >
424-   ;  ; Upload as:
425- <select name =" uploadAs" >
426- <option value =" <%= accessLogin. getId() % >" selected ><%= accessLogin. getName() % >
427- <option value =" 23" >Michele
428- <option value =" 9716" >Mingna
429- </select >
430- </div >
431-
432- <% } else { % >
433- <input type =" hidden" name =" specimenUploadLoginId" value =" <%= accessLogin. getId() % >" />
434-
435- <!-- How do we know what upload file options a user has? Do we discern by file type or specify?
436- i.e. Minga is always GBIF?
437- -->
438-
439- <% } % >
440-
441-
442-
443- <div class =" align_right" ><input border =" 0" type =" image" src =" <%= domainApp % > /image/grey_submit.png" width =" 77" height =" 23" value =" Submit" <% = active % >></div >
444- <div class =" clear" ></div >
445- </div >
446- </html:form >
447-
448- <!-- End GBIF Specimen file or Zip File Upload -->
449- <% } % >
450-
451-
452-
453-
454-
455349 <% } % > <!-- takeDownUpload -->
456350 <% } % > <!-- accessLogin.isUploadSpecimens() -->
457351
0 commit comments