@ -1,18 +1,30 @@ |
|||||
from django.http import HttpResponse |
from django.http import HttpResponse |
||||
|
from django.shortcuts import render |
||||
|
|
||||
from sapl.crud.base import CrudAux |
from sapl.crud.base import CrudAux, Crud |
||||
from sapl.lexml.OAIServer import OAIServerFactory, get_config |
from sapl.lexml.OAIServer import OAIServerFactory, get_config |
||||
|
from sapl.rules import RP_DETAIL, RP_LIST |
||||
|
|
||||
from .models import LexmlProvedor, LexmlPublicador |
from .models import LexmlProvedor, LexmlPublicador |
||||
|
|
||||
LexmlProvedorCrud = CrudAux.build(LexmlProvedor, 'lexml_provedor') |
|
||||
LexmlPublicadorCrud = CrudAux.build(LexmlPublicador, 'lexml_publicador') |
LexmlPublicadorCrud = CrudAux.build(LexmlPublicador, 'lexml_publicador') |
||||
|
|
||||
|
|
||||
|
class LexmlProvedorCrud(Crud): |
||||
|
model = LexmlProvedor |
||||
|
help_topic = 'lexml_provedor' |
||||
|
public = [RP_LIST, RP_DETAIL] |
||||
|
|
||||
|
class DetailView(Crud.DetailView): |
||||
|
layout_key = 'LexmlProvedorDetail' |
||||
|
|
||||
def lexml_request(request): |
def lexml_request(request): |
||||
config = get_config(request.get_raw_uri(), int(request.GET.get('batch_size', 10))) |
config = get_config(request.get_raw_uri(), int(request.GET.get('batch_size', '10'))) |
||||
oai_server = OAIServerFactory(config) |
oai_server = OAIServerFactory(config) |
||||
r = oai_server.handleRequest({'verb': request.GET.get('verb', 'ListRecords'), |
r = oai_server.handleRequest(request.GET) |
||||
'metadataPrefix': request.GET.get('metadataPrefix', 'oai_lexml')}) |
|
||||
response = r.decode('UTF-8') |
response = r.decode('UTF-8') |
||||
return HttpResponse(response, content_type='text/xml') |
return HttpResponse(response, content_type='text/xml') |
||||
|
|
||||
|
|
||||
|
def request_search(request, keyword): |
||||
|
return render(request, "lexml/resultado-pesquisa.html", {"keyword": keyword}) |
||||
|
@ -0,0 +1,25 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.20 on 2019-02-28 21:03 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('sessao', '0032_merge_20181122_1527'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='resumoordenacao', |
||||
|
name='decimo_segundo', |
||||
|
field=models.CharField(default='Votos Nominais Mat Expediente', max_length=30), |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='resumoordenacao', |
||||
|
name='decimo_terceiro', |
||||
|
field=models.CharField(default='Votos Nominais Mat Ordem Dia', max_length=30), |
||||
|
), |
||||
|
] |
@ -1 +0,0 @@ |
|||||
.body-sessao-online{overflow:hidden}.app-sessao-online{position:fixed;top:0;right:0;bottom:0;left:0;background-color:hsla(0,0%,97.6%,.95);z-index:1000;display:grid;grid-template-columns:50px 50px 50px 50px;grid-template-rows:auto}.container-messages[data-v-325582de]{position:fixed;bottom:0;right:1rem;z-index:10001} |
|
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 682 B |
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 694 B |
Before Width: | Height: | Size: 644 KiB After Width: | Height: | Size: 644 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 797 KiB After Width: | Height: | Size: 797 KiB |
Before Width: | Height: | Size: 975 B After Width: | Height: | Size: 975 B |
Before Width: | Height: | Size: 1021 B After Width: | Height: | Size: 1021 B |
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 568 B After Width: | Height: | Size: 568 B |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |