From 430aef277ea41355095ba627d64b1dd586d1aa70 Mon Sep 17 00:00:00 2001 From: GitInno <86991526+gitnnolabs@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:51:53 -0300 Subject: [PATCH 1/2] Ajusta o language, source, publisher e format para o template do OAI. --- .../indexes/article/article_compile.txt | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/article/templates/search/indexes/article/article_compile.txt b/article/templates/search/indexes/article/article_compile.txt index 3a2fa0cb..cfcb5db7 100644 --- a/article/templates/search/indexes/article/article_compile.txt +++ b/article/templates/search/indexes/article/article_compile.txt @@ -69,13 +69,9 @@ - - - {% for lang in object.languages.all %} - {{ lang }} - {% endfor %} - - + {% for lang in object.languages.all %} + {{ lang.code2 }} + {% endfor %} @@ -85,6 +81,22 @@ {% endfor %} + + + {{ object.source }} + + + + + + {{ object.publisher.institution.institution_identification.name }} + + + + + text/html + + From 1951a1c47368e38439270fc6ca0b56f5664b9a8e Mon Sep 17 00:00:00 2001 From: GitInno <86991526+gitnnolabs@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:02:11 -0300 Subject: [PATCH 2/2] Remove a infraestrutura de "profiling" do ambiente de desenvolvimento. --- local.yml | 88 ------------------------------------------------------- 1 file changed, 88 deletions(-) diff --git a/local.yml b/local.yml index ab7f7b4d..3f74861d 100755 --- a/local.yml +++ b/local.yml @@ -112,91 +112,3 @@ services: ports: - "5559:5555" command: /start-flower - - # logstash: - # container_name: scielo_core_local_logstash - # build: - # context: ./docker_compose_dashboard/logstash/ - # dockerfile: Dockerfile - # restart: always - # depends_on: - # - elasticsearch - # volumes: - # - ./logs:/logs:ro - - # elasticsearch: - # image: docker.elastic.co/elasticsearch/elasticsearch:8.14.0 - # container_name: scielo_core_local_elasticsearch - # restart: always - # environment: - # - discovery.type=single-node - # - http.host=0.0.0.0 - # - xpack.security.enabled=false - # - ES_JAVA_OPTS=-Xms750m -Xmx750m - # volumes: - # - elasticsearch_volume:/usr/share/elasticsearch/data - # ports: - # - 9200:9200 - - # kibana: - # # image: docker.elastic.co/kibana/kibana:8.14.0 - # container_name: scielo_core_local_kibana - # build: - # context: ./docker_compose_dashboard/kibana/ - # dockerfile: Dockerfile - # restart: always - # ports: - # - 5601:5601 - # depends_on: - # - elasticsearch - - prometheus: - image: prom/prometheus:latest - restart: always - ports: - - "9090:9090" - command: - - '--config.file=/etc/prometheus/prometheus.yml' - - '--web.enable-lifecycle' - volumes: - - ./monitoring_stack/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - # - ./monitoring_stack/prometheus/django.rules:/etc/prometheus/django.rules - - prometheus_data:/var/lib/grafana - - grafana: - # image: grafana/grafana:latest - build: - context: ./monitoring_stack/grafana/ - dockerfile: Dockerfile - restart: always - depends_on: - - prometheus - ports: - - "3000:3000" - env_file: - - ./.envs/.local/.dashboard - volumes: - - grafana_data:/var/lib/grafana - - celery-exporter: - image: danihodovic/celery-exporter - restart: always - ports: - - 9808:9808 - command: ["--broker-url=redis://redis:6379/0"] - depends_on: - - redis - - victoriametrics: - image: victoriametrics/victoria-metrics - restart: always - ports: - - 8428:8428 - depends_on: - - prometheus - -volumes: - elasticsearch_volume: - static_volume: - grafana_data: - prometheus_data: \ No newline at end of file