Skip to content

Commit

Permalink
Resolve Codacy and Checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed May 11, 2022
1 parent 99ef751 commit ae0c3d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public List<String> getAvailableSearchFields(ImportConfiguration importConfigura
public String getDefaultSearchField(ImportConfiguration importConfiguration) {
if (SearchInterfaceType.FTP.name().equals(importConfiguration.getInterfaceType())) {
return Helper.getTranslation("filename");
} else if (Objects.nonNull(importConfiguration.getDefaultSearchField())){
} else if (Objects.nonNull(importConfiguration.getDefaultSearchField())) {
return importConfiguration.getDefaultSearchField().getLabel();
} else {
return "";
Expand Down Expand Up @@ -1319,8 +1319,8 @@ private HashMap<String, String> getUrlParameters(ImportConfiguration importConfi
HashMap<String, String> urlParameters = new HashMap<>();
if (SearchInterfaceType.SRU.name().equals(importConfiguration.getInterfaceType())) {
urlParameters.put(SRU_OPERATION, SRU_SEARCH_RETRIEVE);
if (Objects.isNull(importConfiguration.getSruVersion()) ||
Objects.isNull(importConfiguration.getSruRecordSchema())) {
if (Objects.isNull(importConfiguration.getSruVersion())
|| Objects.isNull(importConfiguration.getSruRecordSchema())) {
throw new ConfigException("Either SRU version or SRU record schema is null!");
}
urlParameters.put(SRU_VERSION, importConfiguration.getSruVersion());
Expand Down
4 changes: 3 additions & 1 deletion Kitodo/src/main/webapp/WEB-INF/resources/js/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ function toggleSave() {
jQuery('#editForm\\:saveButtonToggler').click();
}

window.onload = function () {checkForm('editForm')};
window.onload = function () {
checkForm('editForm');
};

0 comments on commit ae0c3d2

Please sign in to comment.