Changeset 43707 in spip-zone
- Timestamp:
- Jan 20, 2011, 12:48:46 PM (10 years ago)
- Location:
- _plugins_/cite
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/cite/cite_fonctions.php
r43672 r43707 93 93 } 94 94 95 function cite_date($date){ 96 // On tolère différents séparateurs que l'on tranforme en - 97 return preg_replace("#\.|/| #i",'-',$date); 98 } 99 95 100 ?> -
_plugins_/cite/export_bibtex_web.html
r43672 r43707 4 4 journal = {(#ENV{site}|trim)}][, 5 5 (#ENV{authors}|cite_authors_bibtex)][, 6 year = {(#ENV{ year}|trim)}][,7 month = {(#ENV{ month}|trim|bibtex_month)}][,6 year = {(#ENV{accessdate}|trim|cite_date|annee)}][, 7 month = {(#ENV{accessdate}|trim|cite_date|mois|bibtex_month)}][, 8 8 howpublished = {\url{(#ENV{url}|trim)}}][, 9 9 url = {(#ENV{url}|trim)}] -
_plugins_/cite/export_ris_web.html
r43672 r43707 3 3 JF - (#ENV{site}|trim)][ 4 4 (#ENV{authors}|cite_authors_ris)][ 5 PY - (#ENV{year}|trim)[/(#ENV{month}|trim)[/(#ENV{day}|trim)]]][5 M1 - (#ENV{accessdate}|trim|cite_date|affdate{'Y/m/d'})][ 6 6 UR - (#ENV{url}|trim)] 7 7 ER - -
_plugins_/cite/formulaires/cite_inserer_modeles_traiter.php
r43701 r43707 65 65 $code .= ''; 66 66 // page 67 elseif ($champ=='p lace' && !in_array(_request('variante'),array('book','chapter','journal','report','thesis')))67 elseif ($champ=='page' && !in_array(_request('variante'),array('book','chapter','journal','report','thesis'))) 68 68 $code .= ''; 69 69 // isbn … … 76 76 elseif ($champ=='doi' && !in_array(_request('variante'),array('book','chapter','journal'))) 77 77 $code .= ''; 78 // month79 if ($champ=='month' && !in_array(_request('variante'),array('web')))78 // year 79 elseif ($champ=='year' && !in_array(_request('variante'),array('book','chapter','journal','report','thesis'))) 80 80 $code .= ''; 81 // day82 if ($champ==' day' && !in_array(_request('variante'),array('web')))81 // accessdate 82 if ($champ=='accessdate' && !in_array(_request('variante'),array('web'))) 83 83 $code .= ''; 84 84 // Cas général -
_plugins_/cite/lang/cite_fr.php
r43701 r43707 19 19 'item_thesis' => 'thèse', 20 20 'item_web' => 'page web', 21 'label_accessdate' => 'Date de consultation (AAAA/MM/JJ) :', 21 22 'label_authors' => 'Auteurs :', 22 23 'label_booktitle' => 'Titre du livre :', 23 'label_day' => 'Jour :',24 24 'label_doi' => 'DOI :', 25 25 'label_edition' => 'Édition :', … … 30 30 'label_issue' => 'Numéro :', 31 31 'label_journal' => 'Nom de la revue :', 32 'label_month' => 'Mois :',33 32 'label_number' => 'Numéro :', 34 33 'label_pages' => 'Pages :', … … 44 43 'label_variante' => 'Type de document :', 45 44 'label_volume' => 'Volume :', 46 'label_year' => 'Année :',45 'label_year' => 'Année de publication :', 47 46 'number' => 'numéro', 48 47 'page_consultee_le' => 'page consultée le', -
_plugins_/cite/modeles/cite.yaml
r43701 r43707 67 67 nom: 'year' 68 68 label: '<:cite:label_year:>' 69 afficher_si: '@variante@ == "book" || @variante@ == "chapter" || @variante@ == "journal" || @variante@ == "report" || @variante@ == "thesis"' 69 70 verifier: 70 71 type: 'entier' … … 72 73 saisie: 'input' 73 74 options: 74 nom: ' month'75 label: '<:cite:label_ month:>'75 nom: 'accessdate' 76 label: '<:cite:label_accessdate:>' 76 77 afficher_si: '@variante@ == "web"' 77 78 verifier: 78 type: ' entier'79 type: 'date' 79 80 options: 80 min: 1 81 max: 12 82 - 83 saisie: 'input' 84 options: 85 nom: 'day' 86 label: '<:cite:label_day:>' 87 afficher_si: '@variante@ == "web"' 88 verifier: 89 type: 'entier' 90 options: 91 min: 1 92 max: 31 81 format: 'amj' 93 82 - 94 83 saisie: 'input' -
_plugins_/cite/modeles/cite_web.html
r43672 r43707 1 1 <span class="cite cite_web"> 2 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{' ',' '}|typo)][ ((#ENV{ year}|trim)).][ “(#ENV{title}|trim|typo)”][, <i>(#ENV{site}|trim|typo)</i>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)][, <:cite:page_consultee_le:> (#ENV{year}|trim|concat{'-',[(#ENV{month}|trim)],'-',[(#ENV{day}|trim)]}|affdate)], <a href="[(#URL_PAGE{export_ris_web,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&month=[(#ENV{month}|trim)]&day=[(#ENV{day}|trim)]&title=[(#ENV{title}|trim)]&site=[(#ENV{site}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_web,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&month=[(#ENV{month}|trim)]&day=[(#ENV{day}|trim)]&title=[(#ENV{title}|trim)]&site=[(#ENV{site}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.2 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{' ',' '}|typo)][ ((#ENV{accessdate}|trim|cite_date|annee)).][ “(#ENV{title}|trim|typo)”][, <i>(#ENV{site}|trim|typo)</i>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)][, <:cite:page_consultee_le:> (#ENV{accessdate}|trim|cite_date|affdate)], <a href="[(#URL_PAGE{export_ris_web,authors=[(#ENV{authors}|trim)]&accessdate=[(#ENV{accessdate}|trim)]&title=[(#ENV{title}|trim)]&site=[(#ENV{site}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_web,authors=[(#ENV{authors}|trim)]&accessdate=[(#ENV{accessdate}|trim)]&title=[(#ENV{title}|trim)]&site=[(#ENV{site}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>. 3 3 </span> -
_plugins_/cite/plugin.xml
r43702 r43707 3 3 <auteur>Joseph</auteur> 4 4 <licence>GPL v3</licence> 5 <version>0.1. 3</version>5 <version>0.1.4</version> 6 6 <etat>test</etat> 7 7 <description>Ce plugin fournit des modèles pour insérer des références bibliographiques.</description> … … 11 11 <fonctions>cite_fonctions.php</fonctions> 12 12 <categorie>edition</categorie> 13 <utilise id="verifier" version="[0.1.8;]" /> 13 14 </plugin>
Note: See TracChangeset
for help on using the changeset viewer.