Browse Source

Remove sufixo /oai de endpoint LexML

pull/2592/head
Edward Ribeiro 6 years ago
parent
commit
d7abf0a4f9
  1. 2
      sapl/lexml/OAIServer.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')[:-4], # remove '/oai' suffix
'descricao': get_xml_provedor(),
'batch_size': batch_size
}

Loading…
Cancel
Save