/easydb-custom-data-type-geonames

www.geonames.org

Primary LanguageCoffeeScriptThe UnlicenseUnlicense

This Plugin / Repo is being maintained by a community of developers. There is no warranty given or bug fixing guarantee; especially not by Programmfabrik GmbH. Please use the github issue tracking to report bugs and self organize bug fixing. Feel free to directly contact the committing developers.

easydb-custom-data-type-geonames

Custom Data Type "GEONAMES" for easydb

This is a plugin for easyDB 5 with Custom Data Type CustomDataTypeGeonames for references to entities of the GeoNames geographical database).

The Plugins uses http://ws.gbv.de/suggest/geonames/ for the autocomplete-suggestions and GeoNames database for additional informations about GeoNames entities. Maps are displayed via the mapbox-API.

configuration

In manifest.yml you can configure:

  • schema-options:

  • mask-options:

    • wether to show a dropdown with available featureclasses (place-categorie) or not
    • wether to show a dropdown with available featurecodes (place-type) or not
    • default country for the country-dropdown (2 digits-code)
    • default value for search expansion (Records of the lowest administrative level ("admin4") are also found via the higher-level administrative unit ("admin3"))
    • wether the ancestors are shown in hitlist
  • base-config:

    • "days"
    • "default_language"
    • "geonames_username"

saved data

  • conceptName
    • Preferred label of the linked record
  • conceptURI
    • URI to linked record
  • conceptFulltext
    • fulltext-string which contains: geonameId, adminName1, adminName2, adminName3, adminName4, adminName5, countryName, toponymName, alternateNames
  • conceptAncestors
    • the parent hierarchy of the selected record
  • frontendLanguage
    • the frontendlanguage of the entering user
  • _fulltext
    • easydb-fulltext
  • _standard
    • easydb-standard

sources

The source code of this plugin is managed in a git repository at https://github.com/programmfabrik/easydb-custom-data-type-geonames.