2023-07-07 21:13:11 +02:00
[===============================================================(#REM)
Configuration du client Scrutari
]
< script >
$(function () {
var configOptions = Scrutari.Lav.getConfigOptions();
var scrutariConfig = new Scrutari.Config("libreavous", Scrutari.Lav.SCRUTARI_URL, "fr", "site", configOptions);
var initOptions = Object.assign(Scrutari.Lav.getInitOptions(), {
initialQuery: "[(#ENV*{q}|scrutari_escape_query)]",
initialQId: "[(#ENV*{qid}|scrutari_escape_query)]",
permalinkPattern: "https://www.libreavous.org/spip.php?page=scrutarijs& qid=$QID"
});
Scrutari.Client.init(scrutariConfig, "scrutari_client", initOptions, null);
});
< / script >
< / script >
2022-10-01 00:18:32 +02:00
[===============================================================(#REM)
Déclaration du bloc destiné à recevoir le client
]
< article class = "texte_content" >
2023-07-06 16:56:15 +02:00
< BOUCLE_entete ( ARTICLES ) { page = recherchescrutari} >
2023-03-04 21:39:44 +01:00
< header class = "cartouche" >
[< p class = "#EDIT{surtitre} surtitre" > #(#SURTITRE)< / p > ]
< h1 > < span class = "#EDIT{titre} article__titre" > #TITRE< / span > [
< small class = "#EDIT{soustitre} soustitre" > (#SOUSTITRE)< / small >
]< / h1 >
< / header >
< div class = "main" >
[< div class = "#EDIT{chapo} article__chapo" > (#CHAPO|adaptive_images{#CONST{_CONTENT_WIDTH},0})< / div > ]
[< div class = "#EDIT{texte} article__texte" > (#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH},0})< / div > ]
< / div >
< / BOUCLE_entete >
2023-07-06 16:56:15 +02:00
[===============================================================(#REM)
Structure du client
]
2022-10-01 00:18:32 +02:00
< div id = "scrutari_client" >
2023-07-06 16:56:15 +02:00
<!-- main -->
<!-- main.main - form -->
< form data-scrutari-form = "mainsearch" >
<!-- main.main - form.area - input -->
2023-07-07 21:13:11 +02:00
< div data-scrutari-area = "input" class = "scrutari-lav-Input" >
2023-07-06 16:56:15 +02:00
< input type = "search" class = "scrutari-input-Text" size = "40" name = "q" value = "" placeholder = "Chercher un sujet, un-e intervenant-e…" >
2023-07-07 21:13:11 +02:00
< button type = "submit" class = "btn scrutari-lav-Submit" > Rechercher< / button >
2023-07-06 16:56:15 +02:00
< / div >
<!-- /main.main - form.area - input -->
<!-- main.main - form.area - parameters -->
2023-07-07 21:13:11 +02:00
< details data-scrutari-area = "parameters" class = "scrutari-lav-details-Container" >
< summary class = "scrutari-lav-details-Summary" > Option de recherche avancée< / summary >
< div class = "scrutari-lav-details-Body" >
2023-07-06 16:56:15 +02:00
< p >
2023-07-07 21:13:11 +02:00
< button data-scrutari-button = "showModal" data-scrutari-target = "help_relation" type = "button" title = "Aide sur les relations" >
< i class = "fas fa-question-circle" > < / i >
< / button >
2023-07-06 16:56:15 +02:00
< span > Relations :< / span >
< label class = "scrutari-Label" > < input type = "radio" name = "q-mode" value = "intersection" checked > Et< / label >
< label class = "scrutari-Label" > < input type = "radio" name = "q-mode" value = "union" > Ou< / label >
< label class = "scrutari-Label" > < input type = "radio" name = "q-mode" value = "operation" > Avancée< / label >
< / p >
< p >
2023-07-07 21:13:11 +02:00
< button data-scrutari-button = "showModal" data-scrutari-target = "help_ponderation" type = "button" title = "Aide sur la priorité" >
< i class = "fas fa-question-circle" > < / i >
2023-07-06 16:56:15 +02:00
< / button >
< span > Priorité :< / span >
< label class = "scrutari-Label" > < input type = "radio" name = "ponderation" value = "pertinence" checked > Pertinence< / label >
< label class = "scrutari-Label" > < input type = "radio" name = "ponderation" value = "date" > Date< / label >
< / p >
< p >
2023-07-07 21:13:11 +02:00
< button data-scrutari-button = "showModal" data-scrutari-target = "help_periode" type = "button" title = "Aide sur la période" >
< i class = "fas fa-question-circle" > < / i >
< / button >
2023-07-06 16:56:15 +02:00
< span > Période :< / span >
< input type = "text" class = "scrutari-input-Text" name = "periode" value = "" size = "20" >
< / p >
< p >
2023-07-07 21:13:11 +02:00
< button data-scrutari-button = "showModal" data-scrutari-target = "help_elargir" type = "button" title = "Aide sur « élargir »" >
< i class = "fas fa-question-circle" > < / i >
2023-07-06 16:56:15 +02:00
< / button >
< span > Élargir :< / span >
< label class = "scrutari-Label" > < input type = "radio" name = "wildchar" value = "end" checked > Oui*< / label >
< label class = "scrutari-Label" > < input type = "radio" name = "wildchar" value = "none" > Non< / label >
< / p >
< / div >
< / details >
<!-- /main.main - form.area - parameters -->
< / form >
<!-- /main.main - form -->
<!-- main.area - result -->
< div data-scrutari-area = "result" class = "scrutari-area-Result" >
< div class = "scrutari-Hidden" data-scrutari-hidden = "empty" >
2023-07-07 21:13:11 +02:00
< h3 > Votre recherche :< / h3 >
2023-07-06 16:56:15 +02:00
< p id = "scrutari_lav_sequence" class = "scrutari-lav-Sequence" > < / p >
< / div >
2023-07-07 21:13:11 +02:00
< div class = "scrutari-Hidden scrutari-lav-Filtre" data-scrutari-hidden = "empty" >
2023-07-06 16:56:15 +02:00
< p > Filtrer les résultats :
2023-07-07 21:13:11 +02:00
< label class = "scrutari-lav-FiltreLabel" > < input type = "radio" name = "lav-site" value = "tous" checked > Tous< / label >
2023-07-06 16:56:15 +02:00
< span data-scrutari-count = "total-tous" class = "scrutari-lav-Total" > (< span data-scrutari-component = "value" > < / span > )< / span >
2023-07-07 21:13:11 +02:00
< label class = "scrutari-lav-FiltreLabel" > < input type = "radio" name = "lav-site" value = "libreavous" class = "scrutari-lav-Total" > Libre à vous !< / label >
2023-07-06 16:56:15 +02:00
< span data-scrutari-count = "total-libreavous" class = "scrutari-lav-Total" > (< span data-scrutari-component = "value" > < / span > )< / span >
2023-07-07 21:13:11 +02:00
< label class = "scrutari-lav-FiltreLabel" > < input type = "radio" name = "lav-site" value = "librealire" > Libre à lire< / label >
2023-07-06 16:56:15 +02:00
< span data-scrutari-count = "total-librealire" class = "scrutari-lav-Total" > (< span data-scrutari-component = "value" > < / span > )< / span >
< / p >
< / div >
<!-- main.area - result.result - history -->
< div class = "scrutari-Hidden scrutari-lav-history-Container" data-scrutari-hidden = "start" >
< span class = "scrutari-lav-history-Label" > Votre historique :< / span >
< div data-scrutari-block = "historyList" class = "scrutari-lav-history-List" >
< / div >
< span >
2023-07-07 21:13:11 +02:00
< button class = "scrutari-lav-history-Clear" data-scrutari-button = "clearHistory" title = "Vider l’ historique" > < i class = "fas fa-trash" > < / i > < / button >
2023-07-06 16:56:15 +02:00
< / span >
< / div >
<!-- /main.area - result.result - history -->
<!-- main.area - result.result - links -->
< div class = "scrutari-Hidden" data-scrutari-hidden = "empty" >
< p > Partager votre recherche :
< a href = "#" data-scrutari-link = "permalink" data-scrutari-button = "copyPermalink" target = "_blank" class = "btn taille80 blanc" > Copier l’ URL< / a >
< a href = "#" data-scrutari-link = "csv" target = "_blank" class = "btn taille80 blanc" > Télécharger (CSV)< / a >
< a href = "#" data-scrutari-link = "ods" target = "_blank" class = "btn taille80 blanc" > Télécharger (ODS)< / a >
< a href = "#" data-scrutari-link = "atom" target = "_blank" class = "btn taille80 blanc" > S’ abonner (Atom)< / a >
< / p >
< / div >
<!-- /main.area - result.result - links -->
2023-07-07 21:13:11 +02:00
< div class = "scrutari-Hidden scrutari-lav-TitreResultats" data-scrutari-hidden = "empty" >
< h3 > Vos résultats< / h3 >
2023-07-06 16:56:15 +02:00
< / div >
< div data-scrutari-block = "paginationBlock" > < / div >
< div class = "scrutari-Hidden" data-scrutari-hidden = "empty" >
<!-- main.area - result.result - poweredby -->
< p class = "scrutari-links-Poweredby" > < a href = "http://www.scrutari.net" target = "_blank" > < span class = "scrutari-icon-Logo" > < / span > Recherche effectuée par Scrutari< / a > < / p >
<!-- /main.area - result.result - poweredby -->
< / div >
< / div >
<!-- /main.area - result -->
<!-- /main -->
2023-07-07 21:13:11 +02:00
2022-10-01 00:18:32 +02:00
< / div >
< / article >
[===============================================================(#REM)
Partie consacrée à la réécriture des gabarits
voir https://framagit.org/Scrutari/scrutarijs/-/wikis/adaptation#reformuler-un-%C3%A9lement-de-structure-et-de-gabarit
]
< script data-name = "fiche_attribute" type = "text/x-scrutari-template" >
{{if type!=="block"}}
< li >
{{for valueArray ~len=valueArray.length}}
{{:~scrutari_mark(#data)}}{{if #index != (~len -1)}}, {{/if}}
{{/for}}
< / li >
{{else}}
< li >
< p >
{{>title}}{{>~scrutari_loc("_ colon")}}
< / p >
< div class = "scrutari-fiche-AttributeValues" >
{{for valueArray ~len=valueArray.length}}
< p class = "scrutari-fiche-AttributeValue" >
{{:~scrutari_mark(#data)}}
< / p >
{{/for}}
< / div >
< / li >
{{/if}}
< / script >
2023-07-06 16:56:15 +02:00
< script data-name = "fiche_mtitre" type = "text/x-scrutari-template" >
< p class = "scrutari-fiche-Titre surtitre" >
{{if _numero}}
< span class = "num_emission" > {{: _numero}}< / span >
{{/if}}
< a href = "{{:href}}"
class="scrutari-fiche-Link"
data-scrutari-link="fiche_{{:codefiche}}"
{{if _target}} target="{{:_target}}"{{/if}}>
{{if mtitre}}
{{:~scrutari_mark(mtitre)}}
{{else}}
{{:href}}
{{/if}}
< / a >
< / p >
< / script >
< script data-name = "libreavous_end_ul" type = "text/x-scrutari-template" >
< / ul >
< / script >
< script data-name = "libreavous_start_ul" type = "text/x-scrutari-template" >
< ul class = "spip" >
< / script >
< script data-name = "pagination_lav" type = "text/x-scrutari-template" >
{{for array}}
< div class = "{{if !active}}scrutari-Hidden{{/if}}" data-scrutari-block = "ficheGroup{{:suffix}}" data-scrutari-name = "{{:name}}" >
< div data-scrutari-block = "ficheList{{:suffix}}" > < / div >
< div data-scrutari-block = "bottomTabs{{:suffix}}" > < / div >
< / div >
{{/for}}
< / script >
2023-07-07 21:13:11 +02:00
[===============================================================(#REM)
Fenêtres
]
< BOUCLE_fenetres ( ARTICLES ) { id_rubrique = 12} >
< aside data-scrutari-modal = "help_#SURTITRE" class = "scrutari-Hidden" aria-hidden = "true" >
< header >
#TITRE
< / header >
< div >
#TEXTE
< / div >
< / aside >
< / BOUCLE_fenetres >