diff --git a/sapl/lexml/OAIServer.py b/sapl/lexml/OAIServer.py index ad4264dc5..f4b37ea1a 100644 --- a/sapl/lexml/OAIServer.py +++ b/sapl/lexml/OAIServer.py @@ -275,7 +275,7 @@ def get_config(url, batch_size): 'metadata_prefixes': ['oai_lexml'], 'titulo': casa_legislativa().nome, # Inicializa variável global casa 'email': [casa.email], # lista de e-mails, antigo `def get_email()` - 'base_url': url[:url.find('/', 8)], + 'base_url': url[:url.find('/', 8)] + reverse('sapl.lexml:lexml_endpoint'), 'descricao': get_xml_provedor(), 'batch_size': batch_size } diff --git a/sapl/lexml/urls.py b/sapl/lexml/urls.py index 1c3e88393..980ade7c4 100644 --- a/sapl/lexml/urls.py +++ b/sapl/lexml/urls.py @@ -12,6 +12,6 @@ urlpatterns = [ url(r'^sistema/lexml/publicador/', include(LexmlPublicadorCrud.get_urls())), url(r'^sistema/lexml/request_search/(?P[\w\-]+)/', request_search, name='lexml_search'), - url(r'^sistema/lexml', lexml_request, name='lexml_endpoint'), + url(r'^sistema/lexml/oai', lexml_request, name='lexml_endpoint'), ]