diff --git a/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java b/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java index b04589b96d9b7d64f661fa3fa45410365397d679..f4d04e8f4ab6296da79f8ac364141362313e8e76 100644 --- a/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java +++ b/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java @@ -199,7 +199,7 @@ public class OverviewParser { private Map<String, Model> createMapping(Set<Model> models) { Map<String, Model> result = new HashMap<>(); for (Model model : models) { - result.put(model.getName(), model); + result.put(model.getName().toLowerCase(), model); } return result; } @@ -214,7 +214,7 @@ public class OverviewParser { * @param images * list of {@link OverviewImage images} that should be connected * @param coordinatesData - * {@link String} with the data tken from + * {@link String} with the data taken from * {@link #COORDINATES_FILENAME} file * @throws InvalidOverviewFile * thrown when the data are invalid @@ -365,7 +365,7 @@ public class OverviewParser { * zoom level on the model where redirection should be placed in case * of {@link #MODEL_LINK_TYPE} connection * @param linkType - * type of the connection. This will define implenentation of + * type of the connection. This will define implementation of * {@link OverviewImage} that will be used. For now three values are * acceptable: {@link #MODEL_LINK_TYPE}, {@link #IMAGE_LINK_TYPE}, * {@link #SEARCH_LINK_TYPE}. @@ -389,7 +389,7 @@ public class OverviewParser { } OverviewLink ol = null; if (linkType.equals(MODEL_LINK_TYPE)) { - Model model = models.get(linkTarget); + Model model = models.get(linkTarget.toLowerCase()); if (model == null) { throw new InvalidCoordinatesFile("Unknown model in \"" + COORDINATES_FILENAME + "\" file: " + linkTarget); }