Changeset 43726 in spip-zone


Ignore:
Timestamp:
Jan 20, 2011, 6:24:26 PM (10 years ago)
Author:
joseph@…
Message:

créer un peu plus proprement la liste des auteurs

Location:
_plugins_/cite
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/cite/cite_fonctions.php

    r43707 r43726  
    2525                }
    2626                return 'author = {'.implode(" and ",$auts).'}';
     27        }
     28        else return '';
     29}
     30
     31function cite_authors_html ($auts) {
     32        if (trim($auts)) {
     33                $auts = explode(';',$auts);
     34                foreach ($auts as $cle => $aut) {
     35                        $aut = explode(',',$aut,2);
     36                        $auts[$cle] = trim($aut[0]);
     37                        if ($aut[1])
     38                                $auts[$cle] .= " ".trim($aut[1]);
     39                }
     40                return implode(', ',$auts);
    2741        }
    2842        else return '';
  • _plugins_/cite/modeles/cite_book.html

    r42505 r43726  
    11#SET{series,#ENV{series}|trim|typo}
    22<span class="cite cite_book">
    3 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][ ((#ENV{year}|trim)).][ <i>(#ENV{title}|trim|typo)</i>][, <:cite:edited_by:> (#ENV{editors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][,(#ENV{series}|oui)<:cite:series{series=#GET{series}}:>][, <:cite:volume:> (#ENV{volume}|trim)][, (#ENV{edition}|trim|typo)][, (#ENV{publisher}|trim|typo)][, (#ENV{place}|trim|typo)][, (#ENV{pages}|trim) <:cite:raccourci_pages:>][, doi:&nbsp;<a href="[http://dx.doi.org/(#ENV{doi}|trim|urlencode)]">(#ENV{doi}|trim)</a>][, ISBN:&nbsp;<a href="[http://en.wikipedia.org/w/index.php?title=Special%3ABookSources&isbn=(#ENV{isbn}|trim|urlencode)]">(#ENV{isbn}|trim)</a>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_book,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_book,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
     3[(#ENV{authors}|trim|cite_authors_html|typo)][ ((#ENV{year}|trim)).][ <i>(#ENV{title}|trim|typo)</i>][, <:cite:edited_by:> (#ENV{editors}|trim|cite_authors_html|typo)][,(#ENV{series}|oui)<:cite:series{series=#GET{series}}:>][, <:cite:volume:> (#ENV{volume}|trim)][, (#ENV{edition}|trim|typo)][, (#ENV{publisher}|trim|typo)][, (#ENV{place}|trim|typo)][, (#ENV{pages}|trim) <:cite:raccourci_pages:>][, doi:&nbsp;<a href="[http://dx.doi.org/(#ENV{doi}|trim|urlencode)]">(#ENV{doi}|trim)</a>][, ISBN:&nbsp;<a href="[http://en.wikipedia.org/w/index.php?title=Special%3ABookSources&isbn=(#ENV{isbn}|trim|urlencode)]">(#ENV{isbn}|trim)</a>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_book,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_book,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
    44</span>
  • _plugins_/cite/modeles/cite_chapter.html

    r42505 r43726  
    11#SET{series,#ENV{series}|trim|typo}
    22<span class="cite cite_chapter">
    3 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][ ((#ENV{year}|trim)).][ &ldquo;(#ENV{title}|trim|typo)&rdquo;][, <em><:cite:in:></em> [(#ENV{editors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo) (<:cite:edited_by:>), ]<i>(#ENV{booktitle}|trim|typo)</i>][,(#ENV{series}|oui)<:cite:series{series=#GET{series}}:>][, <:cite:volume:> (#ENV{volume}|trim)][, (#ENV{edition}|trim|typo)][, (#ENV{publisher}|trim|typo)][, (#ENV{place}|trim|typo)][, <:cite:raccourci_pages:> (#ENV{pages}|trim)][, doi:&nbsp;<a href="[http://dx.doi.org/(#ENV{doi}|trim|urlencode)]">(#ENV{doi}|trim)</a>][, ISBN:&nbsp;<a href="[http://en.wikipedia.org/w/index.php?title=Special%3ABookSources&isbn=(#ENV{isbn}|trim|urlencode)]">(#ENV{isbn}|trim)</a>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_chapter,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&booktitle=[(#ENV{booktitle}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_chapter,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&booktitle=[(#ENV{booktitle}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
     3[(#ENV{authors}|trim|cite_authors_html|typo)][ ((#ENV{year}|trim)).][ &ldquo;(#ENV{title}|trim|typo)&rdquo;][, <em><:cite:in:></em> [(#ENV{editors}|trim|cite_authors_html|typo) (<:cite:edited_by:>), ]<i>(#ENV{booktitle}|trim|typo)</i>][,(#ENV{series}|oui)<:cite:series{series=#GET{series}}:>][, <:cite:volume:> (#ENV{volume}|trim)][, (#ENV{edition}|trim|typo)][, (#ENV{publisher}|trim|typo)][, (#ENV{place}|trim|typo)][, <:cite:raccourci_pages:> (#ENV{pages}|trim)][, doi:&nbsp;<a href="[http://dx.doi.org/(#ENV{doi}|trim|urlencode)]">(#ENV{doi}|trim)</a>][, ISBN:&nbsp;<a href="[http://en.wikipedia.org/w/index.php?title=Special%3ABookSources&isbn=(#ENV{isbn}|trim|urlencode)]">(#ENV{isbn}|trim)</a>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_chapter,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&booktitle=[(#ENV{booktitle}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_chapter,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&booktitle=[(#ENV{booktitle}|trim)]&editors=[(#ENV{editors}|trim)]&volume=[(#ENV{volume}|trim)]&series=[(#ENV{series}|trim)]&edition=[(#ENV{edition}|trim)]&publisher=[(#ENV{publisher}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&isbn=[(#ENV{isbn}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
    44</span>
  • _plugins_/cite/modeles/cite_journal.html

    r42505 r43726  
    11<span class="cite cite_journal">
    2 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][ ((#ENV{year}|trim)).][ &ldquo;(#ENV{title}|trim|typo)&rdquo;][, <i>(#ENV{journal}|trim|typo)</i>][, (#ENV{volume}|trim)[((#ENV{issue}|trim))]][, <:cite:raccourci_pages:> (#ENV{pages}|trim)][, doi:&nbsp;<a href="[http://dx.doi.org/(#ENV{doi}|trim|urlencode)]">(#ENV{doi}|trim)</a>][, ISSN:&nbsp;<a href="[http://www.worldcat.org/issn/(#ENV{issn}|trim|urlencode)]">(#ENV{issn}|trim)</a>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_journal,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&journal=[(#ENV{journal}|trim)]&volume=[(#ENV{volume}|trim)]&issue=[(#ENV{issue}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&issn=[(#ENV{issn}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_journal,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&journal=[(#ENV{journal}|trim)]&volume=[(#ENV{volume}|trim)]&issue=[(#ENV{issue}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&issn=[(#ENV{issn}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
     2[(#ENV{authors}|trim|cite_authors_html|typo)][ ((#ENV{year}|trim)).][ &ldquo;(#ENV{title}|trim|typo)&rdquo;][, <i>(#ENV{journal}|trim|typo)</i>][, (#ENV{volume}|trim)[((#ENV{issue}|trim))]][, <:cite:raccourci_pages:> (#ENV{pages}|trim)][, doi:&nbsp;<a href="[http://dx.doi.org/(#ENV{doi}|trim|urlencode)]">(#ENV{doi}|trim)</a>][, ISSN:&nbsp;<a href="[http://www.worldcat.org/issn/(#ENV{issn}|trim|urlencode)]">(#ENV{issn}|trim)</a>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_journal,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&journal=[(#ENV{journal}|trim)]&volume=[(#ENV{volume}|trim)]&issue=[(#ENV{issue}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&issn=[(#ENV{issn}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_journal,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&journal=[(#ENV{journal}|trim)]&volume=[(#ENV{volume}|trim)]&issue=[(#ENV{issue}|trim)]&pages=[(#ENV{pages}|trim)]&doi=[(#ENV{doi}|trim)]&issn=[(#ENV{issn}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
    33</span>
  • _plugins_/cite/modeles/cite_report.html

    r42505 r43726  
    11<span class="cite cite_report">
    2 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][ ((#ENV{year}|trim)).][ <i>(#ENV{title}|trim|typo)</i>][,(#ENV{report_type}|trim)][, <:cite:number:> (#ENV{number}|trim)][, (#ENV{institution}|trim|typo)][, (#ENV{place}|trim|typo)][, (#ENV{pages}|trim) <:cite:raccourci_pages:>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_report,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&number=[(#ENV{number}|trim)]&report_type=[(#ENV{report_type}|trim)]&institution=[(#ENV{institution}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_report,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&number=[(#ENV{number}|trim)]&report_type=[(#ENV{report_type}|trim)]&institution=[(#ENV{institution}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
     2[(#ENV{authors}|trim|cite_authors_html|typo)][ ((#ENV{year}|trim)).][ <i>(#ENV{title}|trim|typo)</i>][,(#ENV{report_type}|trim)][, <:cite:number:> (#ENV{number}|trim)][, (#ENV{institution}|trim|typo)][, (#ENV{place}|trim|typo)][, (#ENV{pages}|trim) <:cite:raccourci_pages:>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_report,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&number=[(#ENV{number}|trim)]&report_type=[(#ENV{report_type}|trim)]&institution=[(#ENV{institution}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_report,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&number=[(#ENV{number}|trim)]&report_type=[(#ENV{report_type}|trim)]&institution=[(#ENV{institution}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
    33</span>
  • _plugins_/cite/modeles/cite_thesis.html

    r42505 r43726  
    11<span class="cite cite_thesis">
    2 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][ ((#ENV{year}|trim)).][ <i>(#ENV{title}|trim|typo)</i>][,(#ENV{thesis_type}|trim)][, (#ENV{university}|trim|typo)][, (#ENV{place}|trim|typo)][, (#ENV{pages}|trim) <:cite:raccourci_pages:>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_thesis,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&thesis_type=[(#ENV{thesis_type}|trim)]&university=[(#ENV{university}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_thesis,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&thesis_type=[(#ENV{thesis_type}|trim)]&university=[(#ENV{university}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
     2[(#ENV{authors}|trim|cite_authors_html|typo)][ ((#ENV{year}|trim)).][ <i>(#ENV{title}|trim|typo)</i>][,(#ENV{thesis_type}|trim)][, (#ENV{university}|trim|typo)][, (#ENV{place}|trim|typo)][, (#ENV{pages}|trim) <:cite:raccourci_pages:>][ (<a href="[(#ENV{url}|trim)]">(#ENV{url}|trim|couper{80})</a>)], <a href="[(#URL_PAGE{export_ris_thesis,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&thesis_type=[(#ENV{thesis_type}|trim)]&university=[(#ENV{university}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">RIS</a>, <a href="[(#URL_PAGE{export_bibtex_thesis,authors=[(#ENV{authors}|trim)]&year=[(#ENV{year}|trim)]&title=[(#ENV{title}|trim)]&thesis_type=[(#ENV{thesis_type}|trim)]&university=[(#ENV{university}|trim)]&place=[(#ENV{place}|trim)]&pages=[(#ENV{pages}|trim)]&url=[(#ENV{url}|trim)]})]">BibTeX</a>.
    33</span>
  • _plugins_/cite/modeles/cite_web.html

    r43707 r43726  
    11<span class="cite cite_web">
    2 [(#ENV{authors}|trim|replace{',',''}|replace{' *;',', '}|replace{'  ',' '}|typo)][ ((#ENV{accessdate}|trim|cite_date|annee)).][ &ldquo;(#ENV{title}|trim|typo)&rdquo;][, <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>.
     2[(#ENV{authors}|trim|cite_authors_html|typo)][ ((#ENV{accessdate}|trim|cite_date|annee)).][ &ldquo;(#ENV{title}|trim|typo)&rdquo;][, <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>.
    33</span>
  • _plugins_/cite/plugin.xml

    r43718 r43726  
    33        <auteur>Joseph</auteur>
    44        <licence>GPL v3</licence>
    5         <version>0.2.0</version>
     5        <version>0.2.1</version>
    66        <etat>test</etat>
    77        <description>Ce plugin fournit des mod&egrave;les pour ins&eacute;rer des r&eacute;f&eacute;rences bibliographiques.</description>
Note: See TracChangeset for help on using the changeset viewer.