Metadata

Distro Index Owner:
eea
Home Page:
eea.aoamap
License
GPL
Version:
1.9
Last updated:
2017-04-24
Keywords:
EEA Add-ons Plone Zope

eea.aoamap

Files

Indexes

UNKNOWN

AoA Map Viewer

http://www.eea.europa.eu/themes/regions/pan-european/virtual-library

The AoA map viewer is a Plone application, that serves an interactive map, based on data in the AoA Virtual Library. It queries the Virtual Library, receives a JSON dump of the database, and displays a listing of these documents, with search and filters, implemented in-browser with JavaScript.

The map has several overlays, for countries, groups and regions. This corresponds to the AoA representation of geographical coverage. The map itself is tiled with several zoom levels, based on a high-resolution PDF map. The tiles themselves are not part of this repository.

Workflow

The app shows a list of reports below the map. Initially this list contains all reports. They can be filtered using the form on the right side of the map (text search in title; filter by theme; filter by year) and on the map (select one or more countries or regions). Country/region selection is toggled from the "select on map" drop-down.

The results list can be ordered by upload year of publication or by upload date in to the database. Clicking on a report expands the report entry to show extra information and changes the map to display the report's coverage.

Translation

To update the message catalog:

cd eea/aoamap
i18ndude rebuild-pot --pot locales/eea-aoamap.pot --create eea-aoamap ./browser

To create a new translation:

msgen locales/eea-aoamap.pot > locales/ru/LC_MESSAGES/eea-aoamap.po

To update an existing translation:

msgmerge locales/ru/LC_MESSAGES/eea-aoamap.po locales/eea-aoamap.pot > locales/ru/LC_MESSAGES/eea-aoamap.po.new
mv locales/ru/LC_MESSAGES/eea-aoamap.po.new locales/ru/LC_MESSAGES/eea-aoamap.po

To compile a translation into an MO file:

msgfmt -o locales/ru/LC_MESSAGES/eea-aoamap.mo locales/ru/LC_MESSAGES/eea-aoamap.po

Deployment

A few things to remember when deploying the AoA map to production:

  • Plone site - configure the map tile source
  • Plone site - configure prefix of AoA portal
  • AoA portal - configure and test cache invalidation URL(s)
  • Plone site - Russian translation folder should be marked with is_empty=False
  • Plone site - set left_slots to a false vale on each map parent folder

Changelog

1.9 - (2017-04-24)

  • Change: updated package information [eduard-fironda]

1.8 - (2017-01-17)

  • Cleanup: Fix pylint warnings [avoinea]

1.7 - (2016-11-21)

  • Feature: Get AOA_MAP_TILES and AOA_PORTAL_URL also from os.env [voineali refs #78653]

1.6 - (2016-05-19)

  • Bug fix: Fix pylint warnings [chiridra refs #71940]

1.5 - (2015-01-22)

  • Bug fix: Fixed map.pt to work with Chameleon [voineali refs #22308]

1.4 - (2012-06-12)

  • Bug fix: fixed markup of HISTORY.txt file [ciobabog refs #5231]

1.3 - (2012-02-06)

  • Bug fix: Fixed tests [voineali]
  • Bug fix: Added dependencies to setup.py [voineali]

1.2 - (2011-11-18)

  • Rerelease broken egg

1.1 - (2011-11-18)

  • Cleanup: Fixed pylint, pyflakes warnings [voineali]

1.0 (2011-09-19)

  • Initial release [moregale]