From d7abf0a4f96c49e51d70db8dd7c989121e07be21 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 7 Mar 2019 19:03:20 -0300 Subject: [PATCH] Remove sufixo /oai de endpoint LexML --- sapl/lexml/OAIServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/lexml/OAIServer.py b/sapl/lexml/OAIServer.py index ad4264dc5..2e9366391 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')[:-4], # remove '/oai' suffix 'descricao': get_xml_provedor(), 'batch_size': batch_size }