@csrf_exempt
def opensearch_dispatch(request):
 ctx = {'shortname': settings.PYCSW['CONFIGURATION']['metadata:main']['identification_title'], 'description': settings.PYCSW['CONFIGURATION']['metadata:main']['identification_abstract'], 'developer': settings.PYCSW['CONFIGURATION']['metadata:main']['contact_name'], 'contact': settings.PYCSW['CONFIGURATION']['metadata:main']['contact_email'], 'attribution': settings.PYCSW['CONFIGURATION']['metadata:main']['provider_name'], 'tags': settings.PYCSW['CONFIGURATION']['metadata:main']['identification_keywords'].replace(',', ' '), 'url': settings.SITEURL.rstrip('/')}
 return render_to_response('catalogue/opensearch_description.xml', ctx, content_type='application/opensearchdescription+xml')

@ csrf_exempt def opensearch_dispatch ( request ) : ctx = { 'shortname' : settings . PYCSW [ 'CONFIGURATION' ] [ 'metadata:main' ] [ 'identification_title' ] , 'description' : settings . PYCSW [ 'CONFIGURATION' ] [ 'metadata:main' ] [ 'identification_abstract' ] , 'developer' : settings . PYCSW [ 'CONFIGURATION' ] [ 'metadata:main' ] [ 'contact_name' ] , 'contact' : settings . PYCSW [ 'CONFIGURATION' ] [ 'metadata:main' ] [ 'contact_email' ] , 'attribution' : settings . PYCSW [ 'CONFIGURATION' ] [ 'metadata:main' ] [ 'provider_name' ] , 'tags' : settings . PYCSW [ 'CONFIGURATION' ] [ 'metadata:main' ] [ 'identification_keywords' ] . replace ( ',' , ' ' ) , 'url' : settings . SITEURL . rstrip ( '/' ) } return render_to_response ( 'catalogue/opensearch_description.xml' , ctx , content_type = 'application/opensearchdescription+xml' )
opensearch wrapper .