Changeset 40946 in spip-zone


Ignore:
Timestamp:
Sep 20, 2010, 11:26:49 PM (10 years ago)
Author:
joseph@…
Message:

On fait évoluer le plugin avec un formulaire de configuration via CFG.

Location:
_plugins_/dublin_core
Files:
14 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • _plugins_/dublin_core/dublin_core_article.html

    r40852 r40946  
    22<BOUCLE_metadonnees_dublin_core(ARTICLES) {id_article}>
    33<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
    4 <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
    54<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" />
    6 <meta name="DC.format" content="text/html" />
    7 <meta name="DC.type" content="Text" />
    8 <meta name="DC.type" content="" />
    9 <meta name="DC.identifier" scheme="URI" content=["(#URL_ARTICLE|url_absolue)"] />
    10 <meta name="DC.identifier" scheme="ISSN" content="" />
    11 <meta name="DC.publisher" content=["(#NOM_SITE_SPIP)"] />
    12 <meta name="DC.language" scheme="RFC3066" content="Franç" />
    13 <BOUCLE_dc_creator(AUTEURS){id_article}>
    14 <meta name="DC.creator" content=["(#NOM)"] />
    15 </BOUCLE_dc_creator>
    16 <meta name="DC.title" lang="fr" content=["(#TITRE)"] />
    17 <meta name="DC.date" scheme="DCTERMS.W3CDTF" content=["(#DATE|affdate{'Y-m-j'})"] />
    18 <meta name="DC.subject" lang="fr" content=["(#CHAPO)"] />
    19 <meta name="DC.language" scheme="DCTERMS.RFC4646" content="fr-FR" />
    20 <meta name="DC.rights" content="Tous droits réservés" />
    21 <meta name="DC.source" content=["(#URL_SITE_SPIP)"] />
    22 <link rel="DC.source" href="urn:ISBN:" />
    23 <meta name="DC.description" lang="fr" content=["(#DESCRIPTIF)"] />
    24 <meta name="DC.coverage" content="" />
    25 <meta name="DC.contributor" content="" />
    26 <meta name="DC.relation" content="" />
     5<meta name="DC.Format" content="text/html" />
     6<meta name="DC.Type" content="Text" />
     7<meta name="DC.Identifier" scheme="URI" content=["(#URL_ARTICLE|url_absolue)"] />
     8[<meta name="DC.Identifier" scheme="ISSN" content="(#CONFIG{dublin_core/issn})" />]
     9[<meta name="DC.Publisher" content="(#NOM_SITE_SPIP)" />]
     10<meta name="DC.Language" scheme="rfc1766" content="#LANG" />
     11[(#CONFIG{dublin_core/dc_creator}|=={nom_site_spip}|oui)[<meta name="DC.Creator" content="(#NOM_SITE_SPIP)" />]]
     12[(#CONFIG{dublin_core/dc_creator}|=={surtitre}|oui)[<meta name="DC.Creator" content="(#SURTITRE)" />]]
     13[(#CONFIG{dublin_core/dc_creator}|=={soustitre}|oui)[<meta name="DC.Creator" content="(#SOUSTITRE)" />]]
     14[(#CONFIG{dublin_core/dc_creator}|=={auteurs}|oui)#INCLURE{fond=inclure/dc_creator_auteurs,id_article=#ID_ARTICLE}]
     15[(#CONFIG{dublin_core/dc_creator}|non)#INCLURE{fond=inclure/dc_creator_auteurs,id_article=#ID_ARTICLE}]
     16<meta name="DC.Title" lang="#LANG" content=["(#TITRE)"] />
     17<meta name="DC.Date" scheme="DCTERMS.W3CDTF" content=["(#DATE|affdate{'Y-m-j'})"] />
     18<meta name="DC.Date.Created" scheme="DCTERMS.W3CDTF" content=["(#DATE_REDAC|sinon{#DATE}|affdate{'Y-m-j'})"] />
     19<meta name="DC.Date.Available" scheme="DCTERMS.W3CDTF" content=["(#DATE|affdate{'Y-m-j'})"] />
     20<meta name="DC.Date.Modified" scheme="DCTERMS.W3CDTF" content=["(#DATE_MODIF|affdate{'Y-m-j'})"] />
     21[(#CONFIG{dublin_core/dc_subject}|=={chapo}|oui)[<meta name="DC.Subject" lang="#LANG" content="(#CHAPO)" />]]
     22[(#CONFIG{dublin_core/dc_subject}|=={surtitre}|oui)[<meta name="DC.Subject" lang="#LANG" content="(#SURTITRE)" />]]
     23[(#CONFIG{dublin_core/dc_subject}|=={soustitre}|oui)[<meta name="DC.Subject" lang="#LANG" content="(#SOUSTITRE)" />]]
     24[(#CONFIG{dublin_core/dc_subject}|=={motscles}|oui)#INCLURE{fond=inclure/dc_subject_motscles,id_article=#ID_ARTICLE}]
     25[(#CONFIG{dublin_core/dc_subject}|non)#INCLURE{fond=inclure/dc_subject_motscles,id_article=#ID_ARTICLE}]
     26[(#CONFIG{dublin_core/dc_subject}|=={groupe_mot}|oui)#INCLURE{fond=inclure/dc_subject_motscles,id_article=#ID_ARTICLE,id_groupe=#CONFIG{dublin_core/dc_subject_groupe_mot}}]
     27<meta name="DC.Rights" content="Tous droits réservés" />
     28[<meta name="DC.Source" scheme="URI" content="(#URL_SITE_SPIP)" />]
     29[(#CONFIG{dublin_core/dc_description_abstract}|non)[<meta name="DC.Description.Abstract" lang="#LANG" content="(#DESCRIPTIF)" />]]
     30[(#CONFIG{dublin_core/dc_description_abstract}|=={descriptif}|oui)[<meta name="DC.Description.Abstract" lang="#LANG" content="(#DESCRIPTIF)" />]]
     31[(#CONFIG{dublin_core/dc_description_abstract}|=={introduction}|oui)[<meta name="DC.Description.Abstract" lang="#LANG" content="(#INTRODUCTION)" />]]
     32[(#CONFIG{dublin_core/dc_description_abstract}|=={chapo}|oui)[<meta name="DC.Description.Abstract" lang="#LANG" content="(#CHAPO)" />]]
     33[<meta name="DC.Description.TableofContents" lang="#LANG" content="(#TEXTE**|dublin_core_tableofcontents)" />]
     34[(#PLUGIN{licence}|non)[<meta name="DC.Rights.License" scheme="URI" content="(#CONFIG{dublin_core/dc_rights_license})" />]]
     35[(#PLUGIN{licence}|oui)[<meta name="DC.Rights.License" scheme="URI" content="(#ID_LICENCE|licence_affiche{non,oui}|extraire_attribut{href}|sinon{#CONFIG{dublin_core/dc_rights_license}})" />]]
     36[(#CONFIG{dublin_core/dc_rights_rightsholder}|=={nom_site_spip}|oui)[<meta name="DC.Rights.RightsHolder" content="(#NOM_SITE_SPIP)" />]]
     37[(#CONFIG{dublin_core/dc_rights_rightsholder}|=={surtitre}|oui)[<meta name="DC.Rights.RightsHolder" content="(#SURTITRE)" />]]
     38[(#CONFIG{dublin_core/dc_rights_rightsholder}|=={soustitre}|oui)[<meta name="DC.Rights.RightsHolder" content="(#SOUSTITRE)" />]]
     39[(#CONFIG{dublin_core/dc_rights_rightsholder}|=={auteurs}|oui)#INCLURE{fond=inclure/dc_rightsholder_auteurs,id_article=#ID_ARTICLE}]
     40[(#CONFIG{dublin_core/dc_rights_rightsholder}|non)#INCLURE{fond=inclure/dc_rightsholder_auteurs,id_article=#ID_ARTICLE}]
    2741</BOUCLE_metadonnees_dublin_core>
  • _plugins_/dublin_core/dublin_core_pipelines.php

    r40917 r40946  
    11<?php
    2 function dublin_insert_head($flux){
     2function dublin_core_insert_head($flux){
    33        if ($GLOBALS['page']['contexte']['type'] == 'article'){
    4                 $flux .= recuperer_fond('dublin_core_article', array('id_article'=>$GLOBALS['page']['contexte']['id_article']));                                # interpreter le squelette spip en lui passant les bonnes informations
    5         } # si on dans une page article.html
    6         return $flux;   
     4                $flux .= recuperer_fond('dublin_core_article', array('id_article'=>$GLOBALS['page']['contexte']['id_article']));
     5                # interpreter le squelette spip en lui passant les bonnes informations
     6        } # si on est dans une page article.html
     7        return $flux;
    78}
    89
  • _plugins_/dublin_core/plugin.xml

    r40854 r40946  
    11<plugin>
    2 
    3     <nom>Dublin Core</nom>
    4 
    5     <categorie>statistique</categorie>
    6     <auteur>Tony Gheeraert</auteur>
    7     <version>1.0</version>
    8  
    9     <etat>stable</etat>
    10 
    11     <description>Des Dublins Core pour vos articles</description>
    12     <prefix>dublin</prefix>
    13 
    14     <pipeline>
    15        <nom>insert_head</nom>
    16        <inclure>dublin_pipelines.php</inclure>
    17    </pipeline>
    18 
    19 
     2        <nom>Dublin Core</nom>
     3        <categorie>statistique</categorie>
     4        <auteur>Tony Gheeraert</auteur>
     5        <version>1.1</version>
     6        <etat>stable</etat>
     7        <description>Des Dublins Core pour vos articles, configurables avec le plugin CFG.</description>
     8        <prefix>dublin_core</prefix>
     9        <icon>images/dublin_core-48.png</icon>
     10        <fonctions>dublin_core_fonctions.php</fonctions>
     11        <pipeline>
     12                <nom>insert_head</nom>
     13                <inclure>dublin_core_pipelines.php</inclure>
     14        </pipeline>
     15        <utilise id="cfg" />
    2016</plugin>
Note: See TracChangeset for help on using the changeset viewer.