Keep Catalog Tree state on language change
Some small refactorings
Use boolean parameters
Merge pull request #359 from geoadmin/dev_catalogtree_langfix

Keep Catalog Tree state on language change