-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog config importer #5313
Catalog config importer #5313
Conversation
0205da0
to
08ebea0
Compare
ae5fc3d
to
7b33e1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just went through the code with these changes. Now follows the test in Kitodo.Production.
Kitodo/src/main/java/org/kitodo/production/forms/createprocess/CatalogImportDialog.java
Outdated
Show resolved
Hide resolved
// Find mapping file object by filename | ||
for (MappingFile currentFile : allMappingFiles) { | ||
if (currentFile.getFile().equals(filename)) { | ||
mappingFile = currentFile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be reduced when name of item variable is directly so designated.
Kitodo/src/main/java/org/kitodo/production/helper/CatalogConfigurationImporter.java
Outdated
Show resolved
Hide resolved
Import works well except for the description which is not imported. Otherwise, the imported catalogs seem to have all the search fields and settings as in the XML. In general, I think it would be great to have a general documentation with a hint to migrate the XML or to extend or adapt the existing one. In perspective the documentation should be updated in a PR. But for that we first need a useful and complete user documentation. :-/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great implementation thx! :)
ba44972
to
b7d3d11
Compare
4d99d8b
to
7e498d8
Compare
This adds an catalog configuration importer that transforms opac configurations from existing
kitodo_opac.xml
files into newImportConfiguration
objects. Also creates correspondingMappingFile
objects where needed.Fixes #5224
Fixes #5262
Edit: this PR should be merged after #5293!