Skip to content
Snippets Groups Projects
Commit 54cfb8be authored by bourgesl's avatar bourgesl
Browse files

Fixed base template handling when only 1 template found (geoLocation)

parent dcc13c11
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,15 @@ public final class DoiTemplates { ...@@ -72,6 +72,15 @@ public final class DoiTemplates {
} }
} }
} }
if (base == null) {
if (geoLocationPlaces.size() == 1) {
// Use the template for the single geoLocationPlace:
base = geoLocationPlaces.values().iterator().next();
} else {
logger.error("initialize: missing base template:\n" + templatePath);
}
}
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug("base: \n{}", base); logger.debug("base: \n{}", base);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment