Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckanext-geonetwork upgrade for CKAN 2.10 #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Gpetrak
Copy link

@Gpetrak Gpetrak commented Jul 12, 2024

Upgrade of ckanext-geonetwork for CKAN 2.10.x. It is tested on CKAN 2.10.4 (the latest stable CKAN version).

Comment on lines 60 to 70
if name == 'metadata.xml':
uncompressed = zfile.read(name)
xml = etree.fromstring(uncompressed)


return xml

def retrieveMetadataCategories(self, uuid):
xml = self.retrieveInfo(uuid)

cats = []

for cat in xml.findall('categories/category'):
cats.append(cat.get('name'))
for cat in xml.iter('{http://www.isotc211.org/2005/gmd}MD_TopicCategoryCode'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need categories from info.xml, since the topicCategory in the ISO metadata is a completely different domain.
Categories in GeoNetwork are metadata categorizations outside the metadata schema and related to the GeoNetwork model.

etj and others added 3 commits August 19, 2024 10:26
* first commit for the CKAN 2.10 upgrade

* upgrading the MEF part in utils.py

* update GN for CKAN 2.10

---------

Co-authored-by: gpetrak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants