|
|
|
@ -60,6 +60,9 @@ public class DictionaryLoader_p {
|
|
|
|
|
prop.put(dictionary.nickname + "ActionActivated", 0);
|
|
|
|
|
prop.put(dictionary.nickname + "ActionDeactivated", 0);
|
|
|
|
|
}
|
|
|
|
|
if (SynonymLibrary.size() > 0) { // status of SynonymLibrary not included in above
|
|
|
|
|
prop.put("syn0Status", 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (post == null) {
|
|
|
|
|
return prop;
|
|
|
|
@ -76,6 +79,8 @@ public class DictionaryLoader_p {
|
|
|
|
|
LibraryProvider.autotagging.addPlaces(LibraryProvider.geoLoc);
|
|
|
|
|
prop.put("geon0Status", LibraryProvider.Dictionary.GEON0.file().exists() ? 1 : 0);
|
|
|
|
|
prop.put("geon0ActionLoaded", 1);
|
|
|
|
|
final String nav = sb.getConfig("search.navigation", "");
|
|
|
|
|
if (nav.indexOf("location") < 0) sb.setConfig("search.navigation", "location,"+nav);
|
|
|
|
|
} catch (final MalformedURLException e) {
|
|
|
|
|
ConcurrentLog.logException(e);
|
|
|
|
|
prop.put("geon0ActionLoaded", 2);
|
|
|
|
@ -118,6 +123,8 @@ public class DictionaryLoader_p {
|
|
|
|
|
LibraryProvider.autotagging.addPlaces(LibraryProvider.geoLoc);
|
|
|
|
|
prop.put("geon1Status", LibraryProvider.Dictionary.GEON1.file().exists() ? 1 : 0);
|
|
|
|
|
prop.put("geon1ActionLoaded", 1);
|
|
|
|
|
final String nav = sb.getConfig("search.navigation", "");
|
|
|
|
|
if (nav.indexOf("location") < 0) sb.setConfig("search.navigation", "location,"+nav);
|
|
|
|
|
} catch (final MalformedURLException e) {
|
|
|
|
|
ConcurrentLog.logException(e);
|
|
|
|
|
prop.put("geon1ActionLoaded", 2);
|
|
|
|
@ -160,6 +167,8 @@ public class DictionaryLoader_p {
|
|
|
|
|
LibraryProvider.autotagging.addPlaces(LibraryProvider.geoLoc);
|
|
|
|
|
prop.put("geon2Status", LibraryProvider.Dictionary.GEON2.file().exists() ? 1 : 0);
|
|
|
|
|
prop.put("geon2ActionLoaded", 1);
|
|
|
|
|
final String nav = sb.getConfig("search.navigation", "");
|
|
|
|
|
if (nav.indexOf("location") < 0) sb.setConfig("search.navigation", "location,"+nav);
|
|
|
|
|
} catch (final MalformedURLException e) {
|
|
|
|
|
ConcurrentLog.logException(e);
|
|
|
|
|
prop.put("geon2ActionLoaded", 2);
|
|
|
|
@ -203,6 +212,8 @@ public class DictionaryLoader_p {
|
|
|
|
|
LibraryProvider.autotagging.addPlaces(LibraryProvider.geoLoc);
|
|
|
|
|
prop.put("geo1Status", LibraryProvider.Dictionary.GEODB1.file().exists() ? 1 : 0);
|
|
|
|
|
prop.put("geo1ActionLoaded", 1);
|
|
|
|
|
final String nav = sb.getConfig("search.navigation", "");
|
|
|
|
|
if (nav.indexOf("location") < 0) sb.setConfig("search.navigation", "location,"+nav);
|
|
|
|
|
} catch (final MalformedURLException e) {
|
|
|
|
|
ConcurrentLog.logException(e);
|
|
|
|
|
prop.put("geo1ActionLoaded", 2);
|
|
|
|
|