eea.coremetadata 2.5__zip → 3.0__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eea.coremetadata-2.5/eea.coremetadata.egg-info → eea.coremetadata-3.0}/PKG-INFO +6 -1
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/docs/HISTORY.txt +5 -0
- eea.coremetadata-3.0/eea/coremetadata/behaviors/configure.zcml +54 -0
- eea.coremetadata-3.0/eea/coremetadata/behaviors/vocabulary.py +183 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/configure.zcml +5 -0
- eea.coremetadata-3.0/eea/coremetadata/indexer.py +19 -0
- eea.coremetadata-3.0/eea/coremetadata/profiles/default/catalog.xml +25 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/metadata.xml +1 -1
- eea.coremetadata-3.0/eea/coremetadata/profiles/default/registry.xml +56 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/upgrades/configure.zcml +11 -0
- eea.coremetadata-3.0/eea/coremetadata/version.txt +1 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0/eea.coremetadata.egg-info}/PKG-INFO +6 -1
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/SOURCES.txt +3 -0
- eea.coremetadata-2.5/eea/coremetadata/behaviors/configure.zcml +0 -34
- eea.coremetadata-2.5/eea/coremetadata/behaviors/vocabulary.py +0 -78
- eea.coremetadata-2.5/eea/coremetadata/version.txt +0 -1
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/CONTRIBUTING.md +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/MANIFEST.in +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/README.rst +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/docs/LICENSE.GPL +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/docs/LICENSE.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/README.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/behaviors/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/behaviors/metadata.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/browser/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/browser/configure.zcml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/interfaces.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/eea.pot +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/en/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/en/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/en/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/en/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/es/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/es/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/es/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/es/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/et/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/et/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/et/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/et/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/eu/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/eu/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/eu/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/eu/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fi/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fi/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fi/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fi/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fr/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fr/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fr/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/fr/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hr/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hr/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hr/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hr/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hu/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hu/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hu/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/hu/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/is/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/is/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/is/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/is/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/it/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/it/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/it/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/it/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/kl/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/kl/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/kl/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/kl/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lt/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lt/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lt/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lt/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lv/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lv/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lv/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/lv/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/mt/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/mt/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/mt/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/mt/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/nl/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/nl/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/nl/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/nl/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/no/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/no/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/no/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/no/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pl/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pl/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pl/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pl/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/plone-manual.pot +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt_BR/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt_BR/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt_BR/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/pt_BR/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ro/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ro/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ro/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ro/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ru/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ru/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ru/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/ru/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sk/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sk/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sk/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sk/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sl/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sl/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sl/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sl/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sv/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sv/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sv/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/sv/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/tr/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/tr/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/tr/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/tr/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/update.sh +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/zh_TW/LC_MESSAGES/eea.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/zh_TW/LC_MESSAGES/eea.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/zh_TW/LC_MESSAGES/plone.mo +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/zh_TW/LC_MESSAGES/plone.po +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/metadata.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/browserlayer.xml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/taxonomies/organisations.cfg +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/taxonomies/organisations.xml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/taxonomies/publisher.cfg +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/taxonomies/publisher.xml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/taxonomies/topics.cfg +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/default/taxonomies/topics.xml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles/uninstall/browserlayer.xml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/profiles.zcml +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/setuphandlers.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/tests/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/tests/base.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/tests/test_doctests.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/upgrades/__init__.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/upgrades/to_20.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/upgrades/to_24.py +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/dependency_links.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/entry_points.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/namespace_packages.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/not-zip-safe +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/requires.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea.coremetadata.egg-info/top_level.txt +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/setup.cfg +0 -0
- {eea.coremetadata-2.5 → eea.coremetadata-3.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: eea.coremetadata
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0
|
|
4
4
|
Summary: An add-on for Plone
|
|
5
5
|
Home-page: https://github.com/eea/eea.coremetadata
|
|
6
6
|
Author: European Environment Agency: IDM2 A-Team
|
|
@@ -129,6 +129,11 @@ EEA_ - European Environment Agency (EU)
|
|
|
129
129
|
Changelog
|
|
130
130
|
=========
|
|
131
131
|
|
|
132
|
+
3.0 - (2023-03-23)
|
|
133
|
+
---------------------------
|
|
134
|
+
* Change: Register indexes in portal_catalog and add indexer for temporal _coverage index
|
|
135
|
+
[razvanMiu]
|
|
136
|
+
|
|
132
137
|
2.5 - (2022-12-16)
|
|
133
138
|
---------------------------
|
|
134
139
|
* Change: Distinct title for taxonomies to differentiate in search criteria
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
3.0 - (2023-03-23)
|
|
5
|
+
---------------------------
|
|
6
|
+
* Change: Register indexes in portal_catalog and add indexer for temporal _coverage index
|
|
7
|
+
[razvanMiu]
|
|
8
|
+
|
|
4
9
|
2.5 - (2022-12-16)
|
|
5
10
|
---------------------------
|
|
6
11
|
* Change: Distinct title for taxonomies to differentiate in search criteria
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:i18n="http://namespaces.zope.org/i18n"
|
|
4
|
+
xmlns:plone="http://namespaces.plone.org/plone"
|
|
5
|
+
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
6
|
+
i18n_domain="eea">
|
|
7
|
+
|
|
8
|
+
<include package="plone.behavior" file="meta.zcml"/>
|
|
9
|
+
|
|
10
|
+
<plone:behavior
|
|
11
|
+
name="eea.coremetadata.behavior"
|
|
12
|
+
title="EEA Core metadata"
|
|
13
|
+
description="Adds EEA Core metadata fields"
|
|
14
|
+
factory="eea.coremetadata.behaviors.metadata.CoreMetadata"
|
|
15
|
+
provides="eea.coremetadata.metadata.ICoreMetadata"
|
|
16
|
+
for="plone.dexterity.interfaces.IDexterityContent"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<utility
|
|
20
|
+
name="organisations_vocabulary"
|
|
21
|
+
component=".vocabulary.organisations_vocabulary"
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
<utility
|
|
25
|
+
name="index_organisations_vocabulary"
|
|
26
|
+
component=".vocabulary.index_organisations_vocabulary"
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
<utility
|
|
30
|
+
name="publisher_vocabulary"
|
|
31
|
+
component=".vocabulary.publisher_vocabulary"
|
|
32
|
+
/>
|
|
33
|
+
|
|
34
|
+
<utility
|
|
35
|
+
name="index_publisher_vocabulary"
|
|
36
|
+
component=".vocabulary.index_publisher_vocabulary"
|
|
37
|
+
/>
|
|
38
|
+
|
|
39
|
+
<utility
|
|
40
|
+
name="topics_vocabulary"
|
|
41
|
+
component=".vocabulary.topics_vocabulary"
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<utility
|
|
45
|
+
name="index_topics_vocabulary"
|
|
46
|
+
component=".vocabulary.index_topics_vocabulary"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<utility
|
|
50
|
+
name="temporal_coverage_vocabulary"
|
|
51
|
+
component=".vocabulary.temporal_coverage_vocabulary"
|
|
52
|
+
/>
|
|
53
|
+
|
|
54
|
+
</configure>
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# pylint: disable=W0702
|
|
2
|
+
""" vocabulary.py """
|
|
3
|
+
from collective.taxonomy.interfaces import ITaxonomy
|
|
4
|
+
from zope.interface import provider # alsoProvides,
|
|
5
|
+
from zope.component import queryUtility
|
|
6
|
+
from zope.schema.interfaces import IVocabularyFactory
|
|
7
|
+
from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
|
|
8
|
+
from Products.CMFCore.utils import getToolByName
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@provider(IVocabularyFactory)
|
|
12
|
+
def get_vocabulary(context, vocabulary_name):
|
|
13
|
+
"""get_vocabulary"""
|
|
14
|
+
|
|
15
|
+
taxonomy = queryUtility(ITaxonomy, name=vocabulary_name)
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
vocabulary = taxonomy(context)
|
|
19
|
+
except:
|
|
20
|
+
vocabulary = taxonomy.makeVocabulary("en")
|
|
21
|
+
|
|
22
|
+
return vocabulary.iterEntries()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def get_catalog_values(context, index):
|
|
26
|
+
"""get_catalog_values"""
|
|
27
|
+
|
|
28
|
+
catalog = getToolByName(context, "portal_catalog")
|
|
29
|
+
|
|
30
|
+
return catalog.uniqueValuesFor(index)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@provider(IVocabularyFactory)
|
|
34
|
+
def organisations_vocabulary(context):
|
|
35
|
+
"""organisations_vocabulary"""
|
|
36
|
+
|
|
37
|
+
vocabulary = get_vocabulary(
|
|
38
|
+
context, "collective.taxonomy.eeaorganisationstaxonomy"
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
terms = [
|
|
42
|
+
SimpleTerm(key, key, val.encode("ascii", "ignore").decode("ascii"))
|
|
43
|
+
for val, key in vocabulary
|
|
44
|
+
]
|
|
45
|
+
terms.sort(key=lambda t: t.title)
|
|
46
|
+
|
|
47
|
+
return SimpleVocabulary(terms)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@provider(IVocabularyFactory)
|
|
51
|
+
def index_organisations_vocabulary(context):
|
|
52
|
+
"""index_organisations_vocabulary"""
|
|
53
|
+
|
|
54
|
+
catalog_values = get_catalog_values(
|
|
55
|
+
context, "taxonomy_eeaorganisationstaxonomy"
|
|
56
|
+
)
|
|
57
|
+
vocabulary = get_vocabulary(
|
|
58
|
+
context, "collective.taxonomy.eeaorganisationstaxonomy"
|
|
59
|
+
)
|
|
60
|
+
terms = []
|
|
61
|
+
|
|
62
|
+
for val, key in vocabulary:
|
|
63
|
+
if key in catalog_values:
|
|
64
|
+
terms.append(
|
|
65
|
+
SimpleTerm(
|
|
66
|
+
key, key, val.encode("ascii", "ignore").decode("ascii")
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
terms.sort(key=lambda t: t.title)
|
|
71
|
+
|
|
72
|
+
return SimpleVocabulary(terms)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@provider(IVocabularyFactory)
|
|
76
|
+
def publisher_vocabulary(context):
|
|
77
|
+
"""publisher_vocabulary"""
|
|
78
|
+
|
|
79
|
+
vocabulary = get_vocabulary(
|
|
80
|
+
context, "collective.taxonomy.eeapublishertaxonomy"
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
terms = [
|
|
84
|
+
SimpleTerm(key, key, val.encode("ascii", "ignore").decode("ascii"))
|
|
85
|
+
for val, key in vocabulary
|
|
86
|
+
]
|
|
87
|
+
terms.sort(key=lambda t: t.title)
|
|
88
|
+
|
|
89
|
+
return SimpleVocabulary(terms)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@provider(IVocabularyFactory)
|
|
93
|
+
def index_publisher_vocabulary(context):
|
|
94
|
+
"""index_publisher_vocabulary"""
|
|
95
|
+
|
|
96
|
+
catalog_values = get_catalog_values(
|
|
97
|
+
context, "taxonomy_eeapublishertaxonomy"
|
|
98
|
+
)
|
|
99
|
+
vocabulary = get_vocabulary(
|
|
100
|
+
context, "collective.taxonomy.eeapublishertaxonomy"
|
|
101
|
+
)
|
|
102
|
+
terms = []
|
|
103
|
+
|
|
104
|
+
for val, key in vocabulary:
|
|
105
|
+
if key in catalog_values:
|
|
106
|
+
terms.append(
|
|
107
|
+
SimpleTerm(
|
|
108
|
+
key, key, val.encode("ascii", "ignore").decode("ascii")
|
|
109
|
+
)
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
terms.sort(key=lambda t: t.title)
|
|
113
|
+
|
|
114
|
+
return SimpleVocabulary(terms)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@provider(IVocabularyFactory)
|
|
118
|
+
def topics_vocabulary(context):
|
|
119
|
+
"""topics_vocabulary"""
|
|
120
|
+
|
|
121
|
+
utility_name = "collective.taxonomy.eeatopicstaxonomy"
|
|
122
|
+
taxonomy = queryUtility(ITaxonomy, name=utility_name)
|
|
123
|
+
|
|
124
|
+
try:
|
|
125
|
+
vocabulary = taxonomy(context)
|
|
126
|
+
except:
|
|
127
|
+
vocabulary = taxonomy.makeVocabulary("en")
|
|
128
|
+
|
|
129
|
+
terms = [
|
|
130
|
+
SimpleTerm(key, key, val.encode("ascii", "ignore").decode("ascii"))
|
|
131
|
+
for val, key in vocabulary.iterEntries()
|
|
132
|
+
]
|
|
133
|
+
terms.sort(key=lambda t: t.title)
|
|
134
|
+
|
|
135
|
+
return SimpleVocabulary(terms)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@provider(IVocabularyFactory)
|
|
139
|
+
def index_topics_vocabulary(context):
|
|
140
|
+
"""index_topics_vocabulary"""
|
|
141
|
+
|
|
142
|
+
catalog_values = get_catalog_values(context, "taxonomy_eeatopicstaxonomy")
|
|
143
|
+
vocabulary = get_vocabulary(
|
|
144
|
+
context, "collective.taxonomy.eeatopicstaxonomy"
|
|
145
|
+
)
|
|
146
|
+
terms = []
|
|
147
|
+
|
|
148
|
+
for val, key in vocabulary:
|
|
149
|
+
if key in catalog_values:
|
|
150
|
+
terms.append(
|
|
151
|
+
SimpleTerm(
|
|
152
|
+
key, key, val.encode("ascii", "ignore").decode("ascii")
|
|
153
|
+
)
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
terms.sort(key=lambda t: t.title)
|
|
157
|
+
|
|
158
|
+
return SimpleVocabulary(terms)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@provider(IVocabularyFactory)
|
|
162
|
+
def temporal_coverage_vocabulary(context):
|
|
163
|
+
"""temporal_coverage_vocabulary"""
|
|
164
|
+
|
|
165
|
+
catalog = getToolByName(context, "portal_catalog")
|
|
166
|
+
|
|
167
|
+
terms = []
|
|
168
|
+
|
|
169
|
+
for year in catalog.uniqueValuesFor("temporal_coverage"):
|
|
170
|
+
terms.append(SimpleTerm(year, year, year))
|
|
171
|
+
|
|
172
|
+
terms.sort(key=lambda t: t.title)
|
|
173
|
+
|
|
174
|
+
return SimpleVocabulary(terms)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
# @implementer(IVocabularyFactory)
|
|
178
|
+
# class KeywordsVocabulary(BKV):
|
|
179
|
+
# """KeywordsVocabulary"""
|
|
180
|
+
# def __init__(self, index):
|
|
181
|
+
# self.keyword_index = index
|
|
182
|
+
#
|
|
183
|
+
# TopicsVocabularyFactory = KeywordsVocabulary("topics")
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<configure
|
|
2
2
|
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
4
|
+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
|
5
|
+
xmlns:five="http://namespaces.zope.org/five"
|
|
3
6
|
xmlns:i18n="http://namespaces.zope.org/i18n"
|
|
4
7
|
i18n_domain="eea">
|
|
5
8
|
|
|
@@ -10,4 +13,6 @@
|
|
|
10
13
|
<include package=".behaviors" />
|
|
11
14
|
<include package=".upgrades" />
|
|
12
15
|
|
|
16
|
+
<adapter factory=".indexer.TemporalCoverageIndexer" name="temporal_coverage" />
|
|
17
|
+
|
|
13
18
|
</configure>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
""" indexer.py """
|
|
2
|
+
from plone.indexer import indexer
|
|
3
|
+
from Products.CMFCore.interfaces import IContentish
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@indexer(IContentish)
|
|
7
|
+
def TemporalCoverageIndexer(obj):
|
|
8
|
+
"""Temporal coverage indexer"""
|
|
9
|
+
|
|
10
|
+
temporal_coverage = getattr(obj, "temporal_coverage", None)
|
|
11
|
+
|
|
12
|
+
if not temporal_coverage or "temporal" not in obj.temporal_coverage:
|
|
13
|
+
return None
|
|
14
|
+
|
|
15
|
+
data = {}
|
|
16
|
+
for val in obj.temporal_coverage["temporal"]:
|
|
17
|
+
data[val["value"]] = val["label"]
|
|
18
|
+
|
|
19
|
+
return data
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<object name="portal_catalog">
|
|
3
|
+
|
|
4
|
+
<index name="taxonomy_eeaorganisationstaxonomy" meta_type="KeywordIndex">
|
|
5
|
+
<indexed_attr value="other_organisations"/>
|
|
6
|
+
</index>
|
|
7
|
+
|
|
8
|
+
<index name="taxonomy_eeapublishertaxonomy" meta_type="KeywordIndex">
|
|
9
|
+
<indexed_attr value="publisher"/>
|
|
10
|
+
</index>
|
|
11
|
+
|
|
12
|
+
<index name="taxonomy_eeatopicstaxonomy" meta_type="KeywordIndex">
|
|
13
|
+
<indexed_attr value="topics"/>
|
|
14
|
+
</index>
|
|
15
|
+
|
|
16
|
+
<index name="temporal_coverage" meta_type="KeywordIndex">
|
|
17
|
+
<indexed_attr value="temporal_coverage"/>
|
|
18
|
+
</index>
|
|
19
|
+
|
|
20
|
+
<column value="taxonomy_eeaorganisationstaxonomy" />
|
|
21
|
+
<column value="taxonomy_eeapublishertaxonomy" />
|
|
22
|
+
<column value="taxonomy_eeatopicstaxonomy" />
|
|
23
|
+
<column value="temporal_coverage" />
|
|
24
|
+
|
|
25
|
+
</object>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
2
|
+
i18n:domain="plone">
|
|
3
|
+
|
|
4
|
+
<records interface="plone.app.querystring.interfaces.IQueryField"
|
|
5
|
+
prefix="plone.app.querystring.field.taxonomy_eeaorganisationstaxonomy">
|
|
6
|
+
<value key="title" i18n:translate="">Other organisations involved</value>
|
|
7
|
+
<value key="description" i18n:translate=""></value>
|
|
8
|
+
<value key="enabled">True</value>
|
|
9
|
+
<value key="sortable">True</value>
|
|
10
|
+
<value key="operations">
|
|
11
|
+
<element>plone.app.querystring.operation.selection.is</element>
|
|
12
|
+
</value>
|
|
13
|
+
<value key="group" i18n:translate="">Taxonomy</value>
|
|
14
|
+
<value key="vocabulary">index_organisations_vocabulary</value>
|
|
15
|
+
</records>
|
|
16
|
+
|
|
17
|
+
<records interface="plone.app.querystring.interfaces.IQueryField"
|
|
18
|
+
prefix="plone.app.querystring.field.taxonomy_eeapublishertaxonomy">
|
|
19
|
+
<value key="title" i18n:translate="">Publisher</value>
|
|
20
|
+
<value key="description" i18n:translate=""></value>
|
|
21
|
+
<value key="enabled">True</value>
|
|
22
|
+
<value key="sortable">True</value>
|
|
23
|
+
<value key="operations">
|
|
24
|
+
<element>plone.app.querystring.operation.selection.is</element>
|
|
25
|
+
</value>
|
|
26
|
+
<value key="group" i18n:translate="">Taxonomy</value>
|
|
27
|
+
<value key="vocabulary">index_publisher_vocabulary</value>
|
|
28
|
+
</records>
|
|
29
|
+
|
|
30
|
+
<records interface="plone.app.querystring.interfaces.IQueryField"
|
|
31
|
+
prefix="plone.app.querystring.field.taxonomy_eeatopicstaxonomy">
|
|
32
|
+
<value key="title" i18n:translate="">Topics</value>
|
|
33
|
+
<value key="description" i18n:translate=""></value>
|
|
34
|
+
<value key="enabled">True</value>
|
|
35
|
+
<value key="sortable">True</value>
|
|
36
|
+
<value key="operations">
|
|
37
|
+
<element>plone.app.querystring.operation.selection.is</element>
|
|
38
|
+
</value>
|
|
39
|
+
<value key="group" i18n:translate="">Taxonomy</value>
|
|
40
|
+
<value key="vocabulary">index_topics_vocabulary</value>
|
|
41
|
+
</records>
|
|
42
|
+
|
|
43
|
+
<records interface="plone.app.querystring.interfaces.IQueryField"
|
|
44
|
+
prefix="plone.app.querystring.field.temporal_coverage">
|
|
45
|
+
<value key="title" i18n:translate="">Temporal coverage</value>
|
|
46
|
+
<value key="description" i18n:translate=""></value>
|
|
47
|
+
<value key="enabled">True</value>
|
|
48
|
+
<value key="sortable">True</value>
|
|
49
|
+
<value key="operations">
|
|
50
|
+
<element>plone.app.querystring.operation.selection.is</element>
|
|
51
|
+
</value>
|
|
52
|
+
<value key="group" i18n:translate="">EEA coremetadata</value>
|
|
53
|
+
<value key="vocabulary">temporal_coverage_vocabulary</value>
|
|
54
|
+
</records>
|
|
55
|
+
|
|
56
|
+
</registry>
|
|
@@ -45,4 +45,15 @@
|
|
|
45
45
|
profile="eea.coremetadata:default"
|
|
46
46
|
/>
|
|
47
47
|
|
|
48
|
+
<genericsetup:upgradeSteps
|
|
49
|
+
source="2.4"
|
|
50
|
+
destination="3.0"
|
|
51
|
+
profile="eea.coremetadata:default"
|
|
52
|
+
>
|
|
53
|
+
<genericsetup:upgradeDepends
|
|
54
|
+
title="Register indexes in portal_catalog and add indexer for temporal_coverage index"
|
|
55
|
+
import_steps="plone.app.registry catalog"
|
|
56
|
+
/>
|
|
57
|
+
</genericsetup:upgradeSteps>
|
|
58
|
+
|
|
48
59
|
</configure>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: eea.coremetadata
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0
|
|
4
4
|
Summary: An add-on for Plone
|
|
5
5
|
Home-page: https://github.com/eea/eea.coremetadata
|
|
6
6
|
Author: European Environment Agency: IDM2 A-Team
|
|
@@ -129,6 +129,11 @@ EEA_ - European Environment Agency (EU)
|
|
|
129
129
|
Changelog
|
|
130
130
|
=========
|
|
131
131
|
|
|
132
|
+
3.0 - (2023-03-23)
|
|
133
|
+
---------------------------
|
|
134
|
+
* Change: Register indexes in portal_catalog and add indexer for temporal _coverage index
|
|
135
|
+
[razvanMiu]
|
|
136
|
+
|
|
132
137
|
2.5 - (2022-12-16)
|
|
133
138
|
---------------------------
|
|
134
139
|
* Change: Distinct title for taxonomies to differentiate in search criteria
|
|
@@ -17,6 +17,7 @@ eea.coremetadata.egg-info/top_level.txt
|
|
|
17
17
|
eea/coremetadata/README.txt
|
|
18
18
|
eea/coremetadata/__init__.py
|
|
19
19
|
eea/coremetadata/configure.zcml
|
|
20
|
+
eea/coremetadata/indexer.py
|
|
20
21
|
eea/coremetadata/interfaces.py
|
|
21
22
|
eea/coremetadata/metadata.py
|
|
22
23
|
eea/coremetadata/profiles.zcml
|
|
@@ -157,7 +158,9 @@ eea/coremetadata/locales/zh_TW/LC_MESSAGES/eea.po
|
|
|
157
158
|
eea/coremetadata/locales/zh_TW/LC_MESSAGES/plone.mo
|
|
158
159
|
eea/coremetadata/locales/zh_TW/LC_MESSAGES/plone.po
|
|
159
160
|
eea/coremetadata/profiles/default/browserlayer.xml
|
|
161
|
+
eea/coremetadata/profiles/default/catalog.xml
|
|
160
162
|
eea/coremetadata/profiles/default/metadata.xml
|
|
163
|
+
eea/coremetadata/profiles/default/registry.xml
|
|
161
164
|
eea/coremetadata/profiles/default/taxonomies/organisations.cfg
|
|
162
165
|
eea/coremetadata/profiles/default/taxonomies/organisations.xml
|
|
163
166
|
eea/coremetadata/profiles/default/taxonomies/publisher.cfg
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<configure
|
|
2
|
-
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
-
xmlns:i18n="http://namespaces.zope.org/i18n"
|
|
4
|
-
xmlns:plone="http://namespaces.plone.org/plone"
|
|
5
|
-
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
6
|
-
i18n_domain="eea">
|
|
7
|
-
|
|
8
|
-
<include package="plone.behavior" file="meta.zcml"/>
|
|
9
|
-
|
|
10
|
-
<plone:behavior
|
|
11
|
-
name="eea.coremetadata.behavior"
|
|
12
|
-
title="EEA Core metadata"
|
|
13
|
-
description="Adds EEA Core metadata fields"
|
|
14
|
-
factory="eea.coremetadata.behaviors.metadata.CoreMetadata"
|
|
15
|
-
provides="eea.coremetadata.metadata.ICoreMetadata"
|
|
16
|
-
for="plone.dexterity.interfaces.IDexterityContent"
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<utility
|
|
20
|
-
name="organisations_vocabulary"
|
|
21
|
-
component=".vocabulary.organisations_vocabulary"
|
|
22
|
-
/>
|
|
23
|
-
|
|
24
|
-
<utility
|
|
25
|
-
name="publisher_vocabulary"
|
|
26
|
-
component=".vocabulary.publisher_vocabulary"
|
|
27
|
-
/>
|
|
28
|
-
|
|
29
|
-
<utility
|
|
30
|
-
name="topics_vocabulary"
|
|
31
|
-
component=".vocabulary.topics_vocabulary"
|
|
32
|
-
/>
|
|
33
|
-
|
|
34
|
-
</configure>
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# pylint: disable=W0702
|
|
2
|
-
""" vocabulary.py """
|
|
3
|
-
from collective.taxonomy.interfaces import ITaxonomy
|
|
4
|
-
from zope.interface import provider # alsoProvides,
|
|
5
|
-
from zope.component import queryUtility
|
|
6
|
-
from zope.schema.interfaces import IVocabularyFactory
|
|
7
|
-
from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@provider(IVocabularyFactory)
|
|
11
|
-
def organisations_vocabulary(context):
|
|
12
|
-
"""organisations_vocabulary"""
|
|
13
|
-
|
|
14
|
-
utility_name = "collective.taxonomy.eeaorganisationstaxonomy"
|
|
15
|
-
taxonomy = queryUtility(ITaxonomy, name=utility_name)
|
|
16
|
-
|
|
17
|
-
try:
|
|
18
|
-
vocabulary = taxonomy(context)
|
|
19
|
-
except:
|
|
20
|
-
vocabulary = taxonomy.makeVocabulary('en')
|
|
21
|
-
|
|
22
|
-
terms = [
|
|
23
|
-
SimpleTerm(key, key, val.encode('ascii', 'ignore').decode('ascii'))
|
|
24
|
-
for val, key in vocabulary.iterEntries()
|
|
25
|
-
]
|
|
26
|
-
terms.sort(key=lambda t: t.title)
|
|
27
|
-
|
|
28
|
-
return SimpleVocabulary(terms)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@provider(IVocabularyFactory)
|
|
32
|
-
def publisher_vocabulary(context):
|
|
33
|
-
"""publisher_vocabulary"""
|
|
34
|
-
|
|
35
|
-
utility_name = "collective.taxonomy.eeapublishertaxonomy"
|
|
36
|
-
taxonomy = queryUtility(ITaxonomy, name=utility_name)
|
|
37
|
-
|
|
38
|
-
try:
|
|
39
|
-
vocabulary = taxonomy(context)
|
|
40
|
-
except:
|
|
41
|
-
vocabulary = taxonomy.makeVocabulary('en')
|
|
42
|
-
|
|
43
|
-
terms = [
|
|
44
|
-
SimpleTerm(key, key, val.encode('ascii', 'ignore').decode('ascii'))
|
|
45
|
-
for val, key in vocabulary.iterEntries()
|
|
46
|
-
]
|
|
47
|
-
terms.sort(key=lambda t: t.title)
|
|
48
|
-
|
|
49
|
-
return SimpleVocabulary(terms)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@provider(IVocabularyFactory)
|
|
53
|
-
def topics_vocabulary(context):
|
|
54
|
-
"""topics_vocabulary"""
|
|
55
|
-
|
|
56
|
-
utility_name = "collective.taxonomy.eeatopicstaxonomy"
|
|
57
|
-
taxonomy = queryUtility(ITaxonomy, name=utility_name)
|
|
58
|
-
|
|
59
|
-
try:
|
|
60
|
-
vocabulary = taxonomy(context)
|
|
61
|
-
except:
|
|
62
|
-
vocabulary = taxonomy.makeVocabulary('en')
|
|
63
|
-
|
|
64
|
-
terms = [
|
|
65
|
-
SimpleTerm(key, key, val.encode('ascii', 'ignore').decode('ascii'))
|
|
66
|
-
for val, key in vocabulary.iterEntries()
|
|
67
|
-
]
|
|
68
|
-
terms.sort(key=lambda t: t.title)
|
|
69
|
-
|
|
70
|
-
return SimpleVocabulary(terms)
|
|
71
|
-
|
|
72
|
-
# @implementer(IVocabularyFactory)
|
|
73
|
-
# class KeywordsVocabulary(BKV):
|
|
74
|
-
# """KeywordsVocabulary"""
|
|
75
|
-
# def __init__(self, index):
|
|
76
|
-
# self.keyword_index = index
|
|
77
|
-
#
|
|
78
|
-
# TopicsVocabularyFactory = KeywordsVocabulary("topics")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.5
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/eea.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/eea.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/plone.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/bg/LC_MESSAGES/plone.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/eea.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/eea.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/plone.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/cs/LC_MESSAGES/plone.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/eea.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/eea.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/plone.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/da/LC_MESSAGES/plone.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/eea.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/eea.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/plone.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/de/LC_MESSAGES/plone.po
RENAMED
|
File without changes
|
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/eea.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/eea.po
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/plone.mo
RENAMED
|
File without changes
|
{eea.coremetadata-2.5 → eea.coremetadata-3.0}/eea/coremetadata/locales/el/LC_MESSAGES/plone.po
RENAMED
|
File without changes
|