mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
bug fix: take care the first time the batch import page is displayed
This commit is contained in:
@@ -93,14 +93,14 @@
|
|||||||
<label for="inputType"><fmt:message key="jsp.dspace-admin.batchmetadataimport.selectinputfile"/></label>
|
<label for="inputType"><fmt:message key="jsp.dspace-admin.batchmetadataimport.selectinputfile"/></label>
|
||||||
<select class="form-control" name="inputType" id="import-type">
|
<select class="form-control" name="inputType" id="import-type">
|
||||||
<%
|
<%
|
||||||
String safuploadSelected = selectedInputType.equals("safupload") ? "selected" : "";
|
String safuploadSelected = ("safupload".equals(selectedInputType)) ? "selected" : "";
|
||||||
String safSelected = selectedInputType.equals("saf") ? "selected" : "";
|
String safSelected = ("saf".equals(selectedInputType)) ? "selected" : "";
|
||||||
%>
|
%>
|
||||||
<option <%= safuploadSelected %> value="safupload"><fmt:message key="jsp.dspace-admin.batchimport.saf.upload"/></option>
|
<option <%= safuploadSelected %> value="safupload"><fmt:message key="jsp.dspace-admin.batchimport.saf.upload"/></option>
|
||||||
<option <%= safSelected %> value="saf"><fmt:message key="jsp.dspace-admin.batchimport.saf.remote"/></option>
|
<option <%= safSelected %> value="saf"><fmt:message key="jsp.dspace-admin.batchimport.saf.remote"/></option>
|
||||||
<%
|
<%
|
||||||
for (String inputType : inputTypes){
|
for (String inputType : inputTypes){
|
||||||
String selected = selectedInputType.equals(inputType) ? "selected" : "";
|
String selected = (inputType.equals(selectedInputType)) ? "selected" : "";
|
||||||
%>
|
%>
|
||||||
<option <%= selected %> value="<%= inputType %>"><%= inputType %></option>
|
<option <%= selected %> value="<%= inputType %>"><%= inputType %></option>
|
||||||
<%
|
<%
|
||||||
|
Reference in New Issue
Block a user