From 3984cfccf883d76901b8db37fa7ce9cdd39e404b Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Sat, 4 Feb 2023 21:30:41 +0100 Subject: [PATCH] toulouse-2022: add search services (#74190) --- static/toulouse-2022/config.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/static/toulouse-2022/config.json b/static/toulouse-2022/config.json index 6bab0496..59f43805 100644 --- a/static/toulouse-2022/config.json +++ b/static/toulouse-2022/config.json @@ -43,6 +43,24 @@ "suffix": "Survol" } }, + "COMBO_SEARCH_SERVICES.update": { + "famille": { + "url": "{{passerelle_url}}toulouse-maelis/test/search-family/?q=%(q)s", + "label": "Rechercher un dossier famille par nom/prénom", + "signature": true, + "hit_url_template": "foyer/{{ number }}/", + "hit_label_template": "{{ RL1.lastname }} ({{ number }})", + "hit_description_template": "{{ RL1.firstname }} {{ RL1.lastname }} {{ RL1.birth.dateBirth|date:'d/m/Y' }}{% if RL2 %}
{{ RL2.firstname }} {{ RL2.lastname }} {{ RL2.birth.dateBirth|date:'d/m/Y' }}{% endif %}" + }, + "dui": { + "url": "{{passerelle_url}}toulouse-maelis/test/search-family-dui/?q=%(q)s", + "label": "Rechercher un dossier famille par son numéro de DUI", + "signature": true, + "hit_url_template": "foyer/{{ number }}/", + "hit_label_template": "{{ RL1.lastname }} ({{ number }})", + "hit_description_template": "{{ RL1.firstname }} {{ RL1.lastname }} {{ RL1.birth.dateBirth|date:'d/m/Y' }}{% if RL2 %}
{{ RL2.firstname }} {{ RL2.lastname }} {{ RL2.birth.dateBirth|date:'d/m/Y' }}{% endif %}" + } + }, "JSON_CELL_TYPES.update": { "toulouse_activites": { "cache_duration": 0, -- 2.39.2