|
|
| (12 versions intermédiaires par le même utilisateur non affichées) |
| Ligne 1 : |
Ligne 1 : |
| <pageforms_Form name="ZoteroPageCreation">
| | {{#default_form:ZoteroPageCreation}} |
| <CreateTitle>Nouvelle décision provenant de Zotero</CreateTitle>
| |
| <EditTitle>Modification d'une décision provenant de Zotero</EditTitle>
| |
| <standardInputs inputFreeText="0" />
| |
| | |
| <Layout>
| |
| <!-- Champ de saisie principal -->
| |
| <Part type="full_line">
| |
| <Label>Nom de la page (Titre, Référence neutre ou CanLII)</Label>
| |
| <InputField>PageName</InputField>
| |
| </Part>
| |
| | |
| <!-- Bloc de wikitexte : requête Zotero + tableau résultats -->
| |
| <Part type="free_text">
| |
| <Label>Recherche Zotero et sélection</Label>
| |
| <Text><![CDATA[
| |
| {{#get_web_data: | |
| url=https://api.zotero.org/groups/4893620/items?q={{#urlencode:{{#explode:{{{PageName}}}|,|1}}}}&itemType=case&limit=10&include=data
| |
| |format=json
| |
| |use jsonpath=true
| |
| |data=key=$[*].key, title=$[*].data.caseName, date=$[*].data.dateDecided, court=$[*].data.court, url=$[*].data.url
| |
| }}
| |
| {{#if_external_data:
| |
| '''Sélectionnez l’item Zotero à importer :'''
| |
| {| class="wikitable sortable"
| |
| ! Choisir !! Titre !! Date !! Cour !! Lien
| |
| {{#for_external_table:
| |
| |-
| |
| | <input type="radio" name="ZoteroPage[ZoteroKey]" value="{{{key}}}" required="required" />
| |
| | {{{title}}}
| |
| | {{{date}}}
| |
| | {{{court}}}
| |
| | [{{{url}}} Voir]
| |
| }}
| |
| |}
| |
| |'''Aucun résultat Zotero trouvé pour « {{#explode:{{{PageName}}}|,|1}} ».'''
| |
| }} | |
| ]]></Text>
| |
| </Part>
| |
| </Layout>
| |
| | |
| <BuiltInButtons>
| |
| <SaveButton />
| |
| <CancelButton />
| |
| </BuiltInButtons>
| |
| | |
| <!-- mapping formulaire → template -->
| |
| <pageforms_Template name="ZoteroPage">
| |
| <pageforms_Field name="PageName" />
| |
| <pageforms_Field name="ZoteroKey" />
| |
| </pageforms_Template>
| |
| </pageforms_Form>
| |
Cette catégorie utilise le formulaire « ZoteroPageCreation ».