Skip to content

Commit

Permalink
Set PPN search field to 'visible' in MockDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed May 11, 2022
1 parent 058236c commit 297f78d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Kitodo/src/test/java/org/kitodo/MockDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1444,11 +1444,10 @@ public static void insertImportConfigurations() throws DAOException, DataExcepti
SearchField ppnField = new SearchField();
ppnField.setValue("pica.ppn");
ppnField.setLabel("PPN");
ppnField.setDisplayed(true);
ppnField.setImportConfiguration(gbvConfiguration);

gbvConfiguration.setSearchFields(Collections.singletonList(ppnField));
ServiceManager.getImportConfigurationService().saveToDatabase(gbvConfiguration);

gbvConfiguration.setIdSearchField(gbvConfiguration.getSearchFields().get(0));
gbvConfiguration.setDefaultSearchField(gbvConfiguration.getSearchFields().get(0));
ServiceManager.getImportConfigurationService().saveToDatabase(gbvConfiguration);
Expand Down

0 comments on commit 297f78d

Please sign in to comment.