From ffc5121c6da5ddda87583aa14ef542d92b7e1053 Mon Sep 17 00:00:00 2001 From: amercader Date: Wed, 16 Oct 2013 13:58:14 +0100 Subject: [PATCH] Fix csw client to properly use getrecords2 --- ckanext/spatial/lib/csw_client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ckanext/spatial/lib/csw_client.py b/ckanext/spatial/lib/csw_client.py index a052072..62cbafa 100644 --- a/ckanext/spatial/lib/csw_client.py +++ b/ckanext/spatial/lib/csw_client.py @@ -6,6 +6,7 @@ for convenience. import logging from owslib.etree import etree +from owslib.fes import PropertyIsEqualTo log = logging.getLogger(__name__) @@ -64,8 +65,6 @@ class CswService(OwsService): """ Perform various operations on a CSW service """ - from owslib.csw import CatalogueServiceWeb as _Implementation - from owslib.fes import PropertyIsEqualTo def getrecords(self, qtype=None, keywords=[], typenames="csw:Record", esn="brief", skip=0, count=10, outputschema="gmd", **kw): @@ -78,7 +77,6 @@ class CswService(OwsService): kwa = { "constraints": constraints, - "keywords": keywords, "typenames": typenames, "esn": esn, "startposition": skip, @@ -106,7 +104,6 @@ class CswService(OwsService): kwa = { "constraints": constraints, - "keywords": keywords, "typenames": typenames, "esn": esn, "startposition": startposition,