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