From 925db5d41127f6637eda1b2da226a048fac60457 Mon Sep 17 00:00:00 2001 From: Alessio Fabrizio Date: Wed, 11 Dec 2024 12:24:08 +0100 Subject: [PATCH] fix: :arrow_up: ckan spatial 2-10 support changed the import according to spatial plugin 2.10-support branch --- ckanext/geonetwork/harvesters/geonetwork.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ckanext/geonetwork/harvesters/geonetwork.py b/ckanext/geonetwork/harvesters/geonetwork.py index 5dd2b4a..328990f 100644 --- a/ckanext/geonetwork/harvesters/geonetwork.py +++ b/ckanext/geonetwork/harvesters/geonetwork.py @@ -13,8 +13,11 @@ from ckan.plugins.core import SingletonPlugin from ckanext.spatial.lib.csw_client import CswService from ckanext.spatial.harvesters.csw import CSWHarvester -from ckanext.spatial.harvested_metadata import ISODocument -from ckanext.spatial.harvested_metadata import ISOElement +#from ckanext.spatial.harvested_metadata import ISODocument +#from ckanext.spatial.harvested_metadata import ISOElement +#in spatial branch 2.10-support ISOObjects are located Here +from ckanext.spatial.model.harvested_metadata import ISODocument +from ckanext.spatial.model.harvested_metadata import ISOElement from ckan.logic import ValidationError, NotFound, get_action @@ -25,7 +28,7 @@ from datetime import datetime import xml.etree.ElementTree as ElementTree import urllib.request import urllib.error -from ckanext.spatial.model import ISOResourceLocator +from ckanext.spatial.model.harvested_metadata import ISOResourceLocator import re from urllib.parse import urlparse