|
|
| (2 versions intermédiaires par le même utilisateur non affichées) |
| Ligne 1 : |
Ligne 1 : |
| <PageSchema>
| |
| <!-- ========= Formulaire minimal ========= -->
| |
| <pageforms_Form name="ZoteroPageCreation">
| |
| <Layout>
| |
| <!-- Champ que l’utilisateur remplira -->
| |
| <Part type="full_line">
| |
| <Label>Nom de la page (Titre, Référence)</Label>
| |
| <InputField>PageName</InputField>
| |
| </Part>
| |
|
| |
| <!-- Bloc wikitexte affiché et évalué -->
| |
| <Part type="info">
| |
| <text><![CDATA[
| |
| '''Titre extrait :''' {{#explode:{{{PageName}}}|,|0}}<br/>
| |
| '''URL générée :''' <nowiki>
| |
| https://api.zotero.org/groups/4893620/items?q={{#urlencode:{{#explode:{{{PageName}}}|,|0}}}}&qmode=everything&limit=10&include=data&format=json
| |
| </nowiki>
| |
|
| |
| {{#get_web_data:
| |
| url=https://api.zotero.org/groups/4893620/items?q={{#urlencode:{{#explode:{{{PageName}}}|,|0}}}}&qmode=everything&limit=10&include=data&format=json
| |
| |format=json
| |
| |use jsonpath=true
| |
| |cache seconds=-1
| |
| |data=key=$[*].key, title=$[*].data.caseName
| |
| }}
| |
|
| |
| {{#if_external_data:
| |
| * '''Clé :''' {{{key}}} — '''Titre :''' {{{title}}}
| |
| |'''Aucun résultat.''' }}
| |
| ]]></text>
| |
| </Part>
| |
| </Layout>
| |
|
| |
| <!-- Boutons standards (Enregistrer/Annuler) -->
| |
| <BuiltInButtons>
| |
| <SaveButton />
| |
| <CancelButton />
| |
| </BuiltInButtons>
| |
|
| |
| <!-- Mappage formulaire → template -->
| |
| <pageforms_Template name="ZoteroPage">
| |
| <pageforms_Field name="PageName" />
| |
| <pageforms_Field name="ZoteroKey" />
| |
| </pageforms_Template>
| |
| </pageforms_Form>
| |
|
| |
| <!-- ========= Template minimal ========= -->
| |
| <Template name="ZoteroPage">
| |
| <Field name="PageName" />
| |
| <Field name="ZoteroKey" />
| |
| </Template>
| |
| </PageSchema>
| |
|
| |
| {{#default_form:ZoteroPageCreation}} | | {{#default_form:ZoteroPageCreation}} |
Cette catégorie utilise le formulaire « ZoteroPageCreation ».