Skip to content

Commit

Permalink
Update core/src/main/java/org/fao/geonet/resources/CMISConfiguration.…
Browse files Browse the repository at this point in the history
…java

Co-authored-by: Jose García <[email protected]>
  • Loading branch information
ianwallen and josegar74 committed Dec 5, 2022
1 parent 44a2e78 commit 94192df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -767,14 +767,14 @@ private String parseSecondaryProperty(Session client, String propertyName) {
if (secondaryType.getId().equals(splitPropertyNames[0]) || secondaryType.getDisplayName().equals(splitPropertyNames[0])) {
for (Map.Entry<String, PropertyDefinition<?>> entry : secondaryType.getPropertyDefinitions().entrySet()) {
if (entry.getValue().getId().equals(splitPropertyNames[1]) || entry.getValue().getDisplayName().equals(splitPropertyNames[1])) {
String ParsedPropertyName=secondaryType.getId() + CMIS_SECONDARY_PROPERTY_SEPARATOR + entry.getKey();
String parsedPropertyName = secondaryType.getId() + CMIS_SECONDARY_PROPERTY_SEPARATOR + entry.getKey();
// The parsed property equals to the original property then we can simply return null as there were no changes.
if (ParsedPropertyName.equals(propertyName)) {
if (parsedPropertyName.equals(propertyName)) {
return null;
} else {
Log.info(Geonet.RESOURCES,
String.format("Parsed CMIS secondary properties from '%s' to '%s'", propertyName, ParsedPropertyName));
return ParsedPropertyName;
String.format("Parsed CMIS secondary properties from '%s' to '%s'", propertyName, parsedPropertyName));
return parsedPropertyName;
}
}
}
Expand Down

0 comments on commit 94192df

Please sign in to comment.