« Formulaire:ZoteroPageCreation » : différence entre les versions

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 16 : Ligne 16 :
{{{for template|ItemKeyChoisi|label=Mon choix}}}
{{{for template|ItemKeyChoisi|label=Mon choix}}}
{| class="formtable"
{| class="formtable"
!Quel item voulez-vous ? {{#info:{{#count:{{#invoke:ZoteroAPI|concatKeys}}}} représente.nt respectivement {{#invoke:ZoteroAPI| allCaseNames}} daté.s respectivement du {{#invoke:ZoteroAPI|allDatesDecided}}}}
 
{{{field|Mon choix|mandatory|input type=radiobutton|label={{#invoke:ZoteroAPI|allDatesDecided}}|values={{#invoke:ZoteroAPI|concatKeys}}}}}
|}
{{{for template|ZoteroPage}}}
{{{for template|ZoteroPage}}}
{| class="formtable"
{| class="formtable"
Ligne 40 : Ligne 38 :
|-
|-
! Histoire
! Histoire
| {{{field|histoire|default={{#invoke:NettoyageTexte|enleverPointFinal|{{#external_value:histoire}}}}}}}
| {{{field|histoire|default={{#external_value:histoire}} }}}
|}
|}


Ligne 47 : Ligne 45 :


{{#get_web_data:
{{#get_web_data:
   url=https://api.zotero.org/groups/4893620/items?q={{urlencode:{{#replace:{{#explode:{{FULLPAGENAME}}|,|0}}||'}}}}&qmode=titleCreatorYear&include=data
   url=https://api.zotero.org/groups/4893620/items?itemType=case&itemKey={{#explode:{{#explode:{{{PAGENAME}}}|/|8}}|?|0}}&include=data
   |format=json
   |format=json
   |use jsonpath=true
   |use jsonpath=true
Ligne 58 : Ligne 56 :
Résultats get_web_data :
Résultats get_web_data :


{{#invoke:ZoteroAPI|concatKeys}}
 
   
   
itemKey: {{#external_value:itemKey}}
itemKey: {{#external_value:itemKey}}