Browse Source

Atualiza endpoints LexML

pull/2601/head
Edward Ribeiro 6 years ago
parent
commit
2d367643c7
  1. 2
      sapl/lexml/OAIServer.py
  2. 2
      sapl/lexml/urls.py

2
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
}

2
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<keyword>[\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'),
]

Loading…
Cancel
Save