diff --git a/sapl/lexml/urls.py b/sapl/lexml/urls.py index 59fb4ab69..1c3e88393 100644 --- a/sapl/lexml/urls.py +++ b/sapl/lexml/urls.py @@ -1,6 +1,6 @@ from django.conf.urls import include, url -from sapl.lexml.views import LexmlProvedorCrud, LexmlPublicadorCrud, lexml_request +from sapl.lexml.views import LexmlProvedorCrud, LexmlPublicadorCrud, lexml_request, request_search from .apps import AppConfig @@ -11,5 +11,7 @@ urlpatterns = [ include(LexmlProvedorCrud.get_urls())), url(r'^sistema/lexml/publicador/', include(LexmlPublicadorCrud.get_urls())), - url(r'^sistema/lexml', lexml_request, name='lexml_endpoint') + url(r'^sistema/lexml/request_search/(?P[\w\-]+)/', request_search, name='lexml_search'), + url(r'^sistema/lexml', lexml_request, name='lexml_endpoint'), + ] diff --git a/sapl/lexml/views.py b/sapl/lexml/views.py index 1e5187a2b..bed7f29d4 100644 --- a/sapl/lexml/views.py +++ b/sapl/lexml/views.py @@ -1,4 +1,5 @@ from django.http import HttpResponse +from django.shortcuts import render from sapl.crud.base import CrudAux from sapl.lexml.OAIServer import OAIServerFactory, get_config @@ -15,3 +16,6 @@ def lexml_request(request): r = oai_server.handleRequest(request.GET) response = r.decode('UTF-8') return HttpResponse(response, content_type='text/xml') + +def request_search(request, keyword): + return render(request,"lexml/resultado-pesquisa.html",{"keyword":keyword}) \ No newline at end of file diff --git a/sapl/templates/base.html b/sapl/templates/base.html index dd75110fa..bd73d345b 100644 --- a/sapl/templates/base.html +++ b/sapl/templates/base.html @@ -44,8 +44,8 @@ @@ -254,5 +254,17 @@ {% endblock foot_js %} + + diff --git a/sapl/templates/lexml/resultado-pesquisa.html b/sapl/templates/lexml/resultado-pesquisa.html new file mode 100644 index 000000000..455dc96eb --- /dev/null +++ b/sapl/templates/lexml/resultado-pesquisa.html @@ -0,0 +1,8 @@ + +{% extends "base.html" %} + +{% block base_content %} + +{% endblock base_content %}