Skip to content

Commit e666ff8

Browse files
committed
DSC-1457 fix inverted list of registries (metadata, bitstream)
1 parent 11ea998 commit e666ff8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dspace-api/src/main/java/org/dspace/storage/rdbms/RegistryUpdater.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ private void updateRegistries() {
6262
context.turnOffAuthorisationSystem();
6363

6464
// Load updates to Bitstream formats registries (if any)
65-
List<String> RegistryMetadataFiles =
66-
MetadataImporter.getAllRegistryFiles(MetadataImporter.REGISTRY_METADATA_PROPERTY);
67-
for (String bitstreamFormat : RegistryMetadataFiles) {
65+
List<String> registryBitstreamFormatFiles =
66+
MetadataImporter.getAllRegistryFiles(MetadataImporter.REGISTRY_BITSTREAM_FORMAT_PROPERTY);
67+
for (String bitstreamFormat : registryBitstreamFormatFiles) {
6868
log.info("Updating Bitstream Format Registry based on {}", bitstreamFormat);
6969
RegistryLoader.loadBitstreamFormats(context, bitstreamFormat);
7070
}
7171

7272
// Load updates to Metadata schema registries (if any)
73-
List<String> RegistryBitstreamFormatFiles =
74-
MetadataImporter.getAllRegistryFiles(MetadataImporter.REGISTRY_BITSTREAM_FORMAT_PROPERTY);
73+
List<String> registryMetadataFiles =
74+
MetadataImporter.getAllRegistryFiles(MetadataImporter.REGISTRY_METADATA_PROPERTY);
7575
log.info("Updating Metadata Registries based on metadata type configs in {}", MetadataImporter.BASE);
76-
for (String namespaceFile: RegistryBitstreamFormatFiles) {
77-
log.info("Reading {}", namespaceFile);
78-
MetadataImporter.loadRegistry(namespaceFile, true);
76+
for (String metadataFile : registryMetadataFiles) {
77+
log.info("Reading {}", metadataFile);
78+
MetadataImporter.loadRegistry(metadataFile, true);
7979
}
8080

8181
String workflowTypes = "workflow-types.xml";

0 commit comments

Comments
 (0)