Plugin Directory

Changeset 1388189


Ignore:
Timestamp:
04/06/2016 12:42:17 PM (10 years ago)
Author:
Friz
Message:

2.0 coming

Location:
hal/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • hal/trunk/constantes.php

    r1373689 r1388189  
    1313define('api', 'http://api.archives-ouvertes.fr/search/hal/');
    1414
    15 // Constante pour le webservice des docType utilisé
    16 define('urltype', 'http://api.archives-ouvertes.fr/ref/docType');
     15// Constante pour le webservice des autheurs utilisé
     16define('urlauthor', 'http://api.archives-ouvertes.fr/ref/author/');
     17
     18// Constante pour le CV HAL d'un auteur ayant un IdHAl
     19define('cvhal', 'http://cv.archives-ouvertes.fr/');
    1720
    1821// Constante pour la redirection vers le site halv3 onglet recherche
     
    2932
    3033// Constante de Version USERAGENT
    31 define('version', '1.4.4');
     34define('version', '2.0');
  • hal/trunk/css/style.css

    r1372175 r1388189  
    136136}
    137137
     138.wphal-infocontact {
     139    margin-bottom : 15px;
     140}
     141
    138142.wphal-nbmetadata {
    139143    background-color: #BEBEBE;
  • hal/trunk/lang/wp-hal-en_US.po

    r1346646 r1388189  
    22msgstr ""
    33"Project-Id-Version: wp-hal\n"
    4 "POT-Creation-Date: 2016-02-05 13:41+0100\n"
    5 "PO-Revision-Date: 2016-02-05 14:04+0100\n"
     4"POT-Creation-Date: 2016-03-22 17:37+0100\n"
     5"PO-Revision-Date: 2016-03-22 17:39+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    2626"HAL and a widget of recent publications of an author or a structure. "
    2727
    28 #: wp-hal.php:43
     28#: wp-hal.php:44
    2929msgid "Paramètres"
    3030msgstr "Settings"
    3131
    32 #: wp-hal.php:113
     32#: wp-hal.php:138
    3333msgid "Publications"
    3434msgstr "Publications"
    3535
    36 #: wp-hal.php:115
     36#: wp-hal.php:140
    3737msgid "Filtres"
    3838msgstr "Metadata"
    3939
    40 #: wp-hal.php:118 wp-hal.php:163 wp-hal.php:1017
     40#: wp-hal.php:143 wp-hal.php:188 wp-hal.php:1063
    4141msgid "Contact"
    4242msgstr "Contact"
    4343
    44 #: wp-hal.php:122 wp-hal.php:188 wp-hal.php:1018
     44#: wp-hal.php:147 wp-hal.php:263 wp-hal.php:1064
    4545msgid "Disciplines"
    4646msgstr "Domains"
    4747
    48 #: wp-hal.php:126 wp-hal.php:221 wp-hal.php:1019
     48#: wp-hal.php:151 wp-hal.php:296 wp-hal.php:1065
    4949msgid "Mots-clefs"
    5050msgstr "Keywords"
    5151
    52 #: wp-hal.php:130 wp-hal.php:264 wp-hal.php:1020
     52#: wp-hal.php:155 wp-hal.php:339 wp-hal.php:1066
    5353msgid "Auteurs"
    5454msgstr "Authors"
    5555
    56 #: wp-hal.php:134 wp-hal.php:304 wp-hal.php:1021
     56#: wp-hal.php:159 wp-hal.php:379 wp-hal.php:1067
    5757msgid "Revues"
    5858msgstr "Journals"
    5959
    60 #: wp-hal.php:138 wp-hal.php:344 wp-hal.php:1022
     60#: wp-hal.php:163 wp-hal.php:419 wp-hal.php:1068
    6161msgid "Année de production"
    6262msgstr "Year of production"
    6363
    64 #: wp-hal.php:142 wp-hal.php:384 wp-hal.php:1023
     64#: wp-hal.php:167 wp-hal.php:459 wp-hal.php:1069
    6565msgid "Institutions"
    6666msgstr "Institutions"
    6767
    68 #: wp-hal.php:146 wp-hal.php:424 wp-hal.php:1024
     68#: wp-hal.php:171 wp-hal.php:499 wp-hal.php:1070
    6969msgid "Laboratoires"
    7070msgstr "Laboratories"
    7171
    72 #: wp-hal.php:150 wp-hal.php:465 wp-hal.php:1025
     72#: wp-hal.php:175 wp-hal.php:540 wp-hal.php:1071
    7373msgid "Départements"
    7474msgstr "Departments"
    7575
    76 #: wp-hal.php:154 wp-hal.php:505 wp-hal.php:1026
     76#: wp-hal.php:179 wp-hal.php:580 wp-hal.php:1072
    7777msgid "Équipes de recherche"
    7878msgstr "Research team"
    7979
    80 #: wp-hal.php:216 wp-hal.php:777
     80#: wp-hal.php:291 wp-hal.php:779
    8181msgid "Graphique"
    8282msgstr "Graph"
    8383
    84 #: wp-hal.php:259 wp-hal.php:298 wp-hal.php:338 wp-hal.php:378 wp-hal.php:418
    85 #: wp-hal.php:459 wp-hal.php:499 wp-hal.php:539 wp-hal.php:777
     84#: wp-hal.php:334 wp-hal.php:373 wp-hal.php:413 wp-hal.php:453 wp-hal.php:493
     85#: wp-hal.php:534 wp-hal.php:574 wp-hal.php:614 wp-hal.php:779
    8686msgid "Liste complète"
    8787msgstr "Full list"
    8888
    89 #: wp-hal.php:550 wp-hal.php:572
     89#: wp-hal.php:627 wp-hal.php:650
    9090msgid "documents"
    9191msgstr "documents"
    9292
    93 #: wp-hal.php:558
     93#: wp-hal.php:633
    9494msgid "document"
    9595msgstr "document"
    9696
    97 #: wp-hal.php:690
     97#: wp-hal.php:767
    9898msgid "Documents récupérés de l'archive ouverte HAL"
    9999msgstr "Powered by HAL"
    100100
    101 #: wp-hal.php:777
     101#: wp-hal.php:779
    102102msgid "Liste"
    103103msgstr "List"
    104104
    105 #: wp-hal.php:777
     105#: wp-hal.php:779
    106106msgid "Liste principale"
    107107msgstr "Main list"
    108108
    109 #: wp-hal.php:777
     109#: wp-hal.php:779
    110110msgid "Nuage de mots"
    111111msgstr "Word cloud"
    112112
    113 #: wp-hal.php:838
     113#: wp-hal.php:885
    114114msgid "Afficher les dernières publications d'un auteur ou d'une structure."
    115115msgstr "Display the lastest publications of an author or a structure."
    116116
    117 #: wp-hal.php:843 wp-hal.php:918
     117#: wp-hal.php:890 wp-hal.php:963
    118118msgid "Publications récentes"
    119119msgstr "Lastest publications"
    120120
    121 #: wp-hal.php:926 wp-hal.php:936
     121#: wp-hal.php:971 wp-hal.php:981
    122122msgid "Titre"
    123123msgstr "Title"
    124124
    125 #: wp-hal.php:930
     125#: wp-hal.php:975
    126126msgid "Nombre de documents affichés"
    127127msgstr "Number of documents to show"
    128128
    129 #: wp-hal.php:934
     129#: wp-hal.php:979
    130130msgid "Type d'affichage"
    131131msgstr "Display type"
    132132
    133 #: wp-hal.php:937
     133#: wp-hal.php:982
    134134msgid "Citation"
    135135msgstr "Citation"
    136136
    137 #: wp-hal.php:941 wp-hal.php:998
     137#: wp-hal.php:986 wp-hal.php:1044
    138138msgid "Type d'Id"
    139139msgstr "Type of Id"
    140140
    141 #: wp-hal.php:943 wp-hal.php:1000
     141#: wp-hal.php:988 wp-hal.php:1046
    142142msgid "(Exemple : laurent-capelli)"
    143143msgstr "(Example : laurent-capelli)"
    144144
    145 #: wp-hal.php:944 wp-hal.php:1001
     145#: wp-hal.php:989 wp-hal.php:1047
    146146msgid "(Exemple : 129)"
    147147msgstr "(Example : 129)"
    148148
    149 #: wp-hal.php:945 wp-hal.php:1002
     149#: wp-hal.php:990 wp-hal.php:1048
    150150msgid "(Exemple : 1646)"
    151151msgstr "(Example : 1646)"
    152152
    153 #: wp-hal.php:946 wp-hal.php:1003
     153#: wp-hal.php:991 wp-hal.php:1049
    154154msgid "(Exemple : 17877)"
    155155msgstr "(Example : 17877)"
    156156
    157 #: wp-hal.php:947 wp-hal.php:1004
     157#: wp-hal.php:992 wp-hal.php:1050
    158158msgid "(Exemple : TICE2014)"
    159159msgstr "(Example : TICE2014)"
    160160
    161 #: wp-hal.php:951
     161#: wp-hal.php:996
    162162msgid "Id"
    163163msgstr "Id"
    164164
    165 #: wp-hal.php:986
     165#: wp-hal.php:1032
    166166msgid "Plugin HAL"
    167167msgstr "Plugin HAL"
    168168
    169 #: wp-hal.php:995
     169#: wp-hal.php:1041
    170170msgid "Paramètre de la page :"
    171171msgstr "Page settings :"
    172172
    173 #: wp-hal.php:1010
     173#: wp-hal.php:1056
    174174msgid "Affichage des documents"
    175175msgstr "Display documents"
    176176
    177 #: wp-hal.php:1011
     177#: wp-hal.php:1057
    178178msgid "Documents avec pagination"
    179179msgstr "Documents with pagination"
    180180
    181 #: wp-hal.php:1012
     181#: wp-hal.php:1058
    182182msgid "Documents groupés par type"
    183183msgstr "Documents grouped by type"
    184184
    185 #: wp-hal.php:1016
     185#: wp-hal.php:1062
    186186msgid "Choix des éléments menu"
    187187msgstr "Choice menu item"
    188188
    189 #: wp-hal.php:1030
     189#: wp-hal.php:1076
    190190msgid "Contact :"
    191191msgstr "Contact :"
    192192
    193 #: wp-hal.php:1033
     193#: wp-hal.php:1079
     194msgid "Afficher les informations d'un chercheur ayant un IdHal ?"
     195msgstr "Show data for researchers who have an IdHal ?"
     196
     197#: wp-hal.php:1080
     198msgid "Oui"
     199msgstr "Yes"
     200
     201#: wp-hal.php:1081
     202msgid "Non"
     203msgstr "No"
     204
     205#: wp-hal.php:1084
    194206msgid "Email"
    195207msgstr "Email"
    196208
    197 #: wp-hal.php:1037
     209#: wp-hal.php:1088
    198210msgid "Téléphone"
    199211msgstr "Phone"
    200212
    201 #: wp-hal.php:1058
     213#: wp-hal.php:1109
    202214msgid "Enregistrer"
    203215msgstr "Save"
  • hal/trunk/lang/wp-hal-es_ES.po

    r1346646 r1388189  
    22msgstr ""
    33"Project-Id-Version: wp-hal\n"
    4 "POT-Creation-Date: 2016-02-04 15:35+0100\n"
    5 "PO-Revision-Date: 2016-02-04 15:36+0100\n"
     4"POT-Creation-Date: 2016-03-22 17:39+0100\n"
     5"PO-Revision-Date: 2016-03-22 17:42+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    2727"un autor o de una estructura."
    2828
    29 #: wp-hal.php:43
     29#: wp-hal.php:44
    3030msgid "Paramètres"
    3131msgstr "Parámetros"
    3232
    33 #: wp-hal.php:112 wp-hal.php:544
     33#: wp-hal.php:138
    3434msgid "Publications"
    3535msgstr "Publicaciones"
    3636
    37 #: wp-hal.php:114
     37#: wp-hal.php:140
    3838msgid "Filtres"
    3939msgstr "Metadatos"
    4040
    41 #: wp-hal.php:117 wp-hal.php:162 wp-hal.php:986
     41#: wp-hal.php:143 wp-hal.php:188 wp-hal.php:1063
    4242msgid "Contact"
    4343msgstr "Contacto"
    4444
    45 #: wp-hal.php:121 wp-hal.php:187 wp-hal.php:987
     45#: wp-hal.php:147 wp-hal.php:263 wp-hal.php:1064
    4646msgid "Disciplines"
    4747msgstr "Disciplinas"
    4848
    49 #: wp-hal.php:125 wp-hal.php:220 wp-hal.php:988
     49#: wp-hal.php:151 wp-hal.php:296 wp-hal.php:1065
    5050msgid "Mots-clefs"
    5151msgstr "Palabras clave"
    5252
    53 #: wp-hal.php:129 wp-hal.php:263 wp-hal.php:989
     53#: wp-hal.php:155 wp-hal.php:339 wp-hal.php:1066
    5454msgid "Auteurs"
    5555msgstr "Autores"
    5656
    57 #: wp-hal.php:133 wp-hal.php:303 wp-hal.php:990
     57#: wp-hal.php:159 wp-hal.php:379 wp-hal.php:1067
    5858msgid "Revues"
    5959msgstr "Revistas"
    6060
    61 #: wp-hal.php:137 wp-hal.php:343 wp-hal.php:991
     61#: wp-hal.php:163 wp-hal.php:419 wp-hal.php:1068
    6262msgid "Année de production"
    6363msgstr "Año de producción"
    6464
    65 #: wp-hal.php:141 wp-hal.php:383 wp-hal.php:992
     65#: wp-hal.php:167 wp-hal.php:459 wp-hal.php:1069
    6666msgid "Institutions"
    6767msgstr "Instituciones"
    6868
    69 #: wp-hal.php:145 wp-hal.php:423 wp-hal.php:993
     69#: wp-hal.php:171 wp-hal.php:499 wp-hal.php:1070
    7070msgid "Laboratoires"
    7171msgstr "Laboratorios"
    7272
    73 #: wp-hal.php:149 wp-hal.php:464 wp-hal.php:994
     73#: wp-hal.php:175 wp-hal.php:540 wp-hal.php:1071
    7474msgid "Départements"
    7575msgstr "Departamentos"
    7676
    77 #: wp-hal.php:153 wp-hal.php:504 wp-hal.php:995
     77#: wp-hal.php:179 wp-hal.php:580 wp-hal.php:1072
    7878msgid "Équipes de recherche"
    7979msgstr "Equipos de investigación"
    8080
    81 #: wp-hal.php:215 wp-hal.php:756
     81#: wp-hal.php:291 wp-hal.php:779
    8282msgid "Graphique"
    8383msgstr "Gráfico"
    8484
    85 #: wp-hal.php:258 wp-hal.php:297 wp-hal.php:337 wp-hal.php:377 wp-hal.php:417
    86 #: wp-hal.php:458 wp-hal.php:498 wp-hal.php:538 wp-hal.php:756
     85#: wp-hal.php:334 wp-hal.php:373 wp-hal.php:413 wp-hal.php:453 wp-hal.php:493
     86#: wp-hal.php:534 wp-hal.php:574 wp-hal.php:614 wp-hal.php:779
    8787msgid "Liste complète"
    8888msgstr "Lista completa "
    8989
    90 #: wp-hal.php:545
    91 msgid "Nombre de documents"
    92 msgstr "Número de documentos"
    93 
    94 #: wp-hal.php:559
     90#: wp-hal.php:627 wp-hal.php:650
     91msgid "documents"
     92msgstr ""
     93
     94#: wp-hal.php:633
    9595msgid "document"
    9696msgstr "documento"
    9797
    98 #: wp-hal.php:691
     98#: wp-hal.php:767
    9999msgid "Documents récupérés de l'archive ouverte HAL"
    100100msgstr "Respaldado por HAL"
    101101
    102 #: wp-hal.php:756
     102#: wp-hal.php:779
    103103msgid "Liste"
    104104msgstr "Lista"
    105105
    106 #: wp-hal.php:756
     106#: wp-hal.php:779
    107107msgid "Liste principale"
    108108msgstr "Lista principal"
    109109
    110 #: wp-hal.php:756
     110#: wp-hal.php:779
    111111msgid "Nuage de mots"
    112112msgstr "Nube de palabras"
    113113
    114 #: wp-hal.php:817
     114#: wp-hal.php:885
    115115msgid "Afficher les dernières publications d'un auteur ou d'une structure."
    116116msgstr "Mostrar las últimas publicaciones de un autor o de una estructura."
    117117
    118 #: wp-hal.php:822 wp-hal.php:894
     118#: wp-hal.php:890 wp-hal.php:963
    119119msgid "Publications récentes"
    120120msgstr "Últimas publicaciones"
    121121
    122 #: wp-hal.php:901 wp-hal.php:915
     122#: wp-hal.php:971 wp-hal.php:981
    123123msgid "Titre"
    124124msgstr "Titulo"
    125125
    126 #: wp-hal.php:906 wp-hal.php:969
     126#: wp-hal.php:975
     127msgid "Nombre de documents affichés"
     128msgstr "Número de documentos visualizado"
     129
     130#: wp-hal.php:979
     131msgid "Type d'affichage"
     132msgstr "Tipo de visualización"
     133
     134#: wp-hal.php:982
     135msgid "Citation"
     136msgstr "Cita"
     137
     138#: wp-hal.php:986 wp-hal.php:1044
     139msgid "Type d'Id"
     140msgstr "Clase de Id"
     141
     142#: wp-hal.php:988 wp-hal.php:1046
    127143msgid "(Exemple : laurent-capelli)"
    128144msgstr "(Ejemplo : laurent-capelli)"
    129145
    130 #: wp-hal.php:907 wp-hal.php:970
     146#: wp-hal.php:989 wp-hal.php:1047
    131147msgid "(Exemple : 129)"
    132148msgstr "(Ejemplo : 129)"
    133149
    134 #: wp-hal.php:908 wp-hal.php:971
     150#: wp-hal.php:990 wp-hal.php:1048
    135151msgid "(Exemple : 1646)"
    136152msgstr "(Ejemplo : 1646)"
    137153
    138 #: wp-hal.php:909 wp-hal.php:972
     154#: wp-hal.php:991 wp-hal.php:1049
    139155msgid "(Exemple : 17877)"
    140156msgstr "(Ejemplo : 17877)"
    141157
    142 #: wp-hal.php:910 wp-hal.php:973
     158#: wp-hal.php:992 wp-hal.php:1050
    143159msgid "(Exemple : TICE2014)"
    144160msgstr "(Ejemplo : TICE2014)"
    145161
    146 #: wp-hal.php:916
    147 msgid "Citation"
    148 msgstr "Cita"
    149 
    150 #: wp-hal.php:955
     162#: wp-hal.php:996
     163msgid "Id"
     164msgstr ""
     165
     166#: wp-hal.php:1032
    151167msgid "Plugin HAL"
    152168msgstr "Plugin HAL"
    153169
    154 #: wp-hal.php:964
     170#: wp-hal.php:1041
    155171msgid "Paramètre de la page :"
    156172msgstr "Parámetro página :"
    157173
    158 #: wp-hal.php:967
    159 msgid "Type d'Id"
    160 msgstr "Clase de Id"
    161 
    162 #: wp-hal.php:979
     174#: wp-hal.php:1056
    163175msgid "Affichage des documents"
    164176msgstr "Visualización de documentos"
    165177
    166 #: wp-hal.php:980
     178#: wp-hal.php:1057
    167179msgid "Documents avec pagination"
    168180msgstr "Documentos con paginación"
    169181
    170 #: wp-hal.php:981
     182#: wp-hal.php:1058
    171183msgid "Documents groupés par type"
    172184msgstr "Documentos agrupados por tipo"
    173185
    174 #: wp-hal.php:985
     186#: wp-hal.php:1062
    175187msgid "Choix des éléments menu"
    176188msgstr "Elección elementos del menu"
    177189
    178 #: wp-hal.php:999
     190#: wp-hal.php:1076
    179191msgid "Contact :"
    180192msgstr "Contacto :"
    181193
    182 #: wp-hal.php:1002
     194#: wp-hal.php:1079
     195msgid "Afficher les informations d'un chercheur ayant un IdHal ?"
     196msgstr ""
     197
     198#: wp-hal.php:1080
     199msgid "Oui"
     200msgstr "Si"
     201
     202#: wp-hal.php:1081
     203msgid "Non"
     204msgstr "No"
     205
     206#: wp-hal.php:1084
    183207msgid "Email"
    184208msgstr "Email"
    185209
    186 #: wp-hal.php:1006
     210#: wp-hal.php:1088
    187211msgid "Téléphone"
    188212msgstr "Teléfono"
    189213
    190 #: wp-hal.php:1044
     214#: wp-hal.php:1109
    191215msgid "Enregistrer"
    192216msgstr "Registrar"
    193217
     218#~ msgid "Nombre de documents"
     219#~ msgstr "Número de documentos"
     220
    194221#~ msgid "Titre :"
    195222#~ msgstr "Titulo :"
  • hal/trunk/lang/wp-hal-fr_FR.po

    r1346646 r1388189  
    22msgstr ""
    33"Project-Id-Version: wp-hal.php\n"
    4 "POT-Creation-Date: 2016-02-04 15:31+0100\n"
    5 "PO-Revision-Date: 2016-02-04 15:33+0100\n"
     4"POT-Creation-Date: 2016-03-22 17:36+0100\n"
     5"PO-Revision-Date: 2016-03-22 17:37+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    2727"d'une structure."
    2828
    29 #: wp-hal.php:43
     29#: wp-hal.php:44
    3030msgid "Paramètres"
    3131msgstr "Paramètres"
    3232
    33 #: wp-hal.php:112 wp-hal.php:544
     33#: wp-hal.php:138
    3434msgid "Publications"
    3535msgstr "Publications"
    3636
    37 #: wp-hal.php:114
     37#: wp-hal.php:140
    3838msgid "Filtres"
    3939msgstr "Métadonnées"
    4040
    41 #: wp-hal.php:117 wp-hal.php:162 wp-hal.php:986
     41#: wp-hal.php:143 wp-hal.php:188 wp-hal.php:1063
    4242msgid "Contact"
    4343msgstr "Contact"
    4444
    45 #: wp-hal.php:121 wp-hal.php:187 wp-hal.php:987
     45#: wp-hal.php:147 wp-hal.php:263 wp-hal.php:1064
    4646msgid "Disciplines"
    4747msgstr "Disciplines"
    4848
    49 #: wp-hal.php:125 wp-hal.php:220 wp-hal.php:988
     49#: wp-hal.php:151 wp-hal.php:296 wp-hal.php:1065
    5050msgid "Mots-clefs"
    5151msgstr "Mots-clefs"
    5252
    53 #: wp-hal.php:129 wp-hal.php:263 wp-hal.php:989
     53#: wp-hal.php:155 wp-hal.php:339 wp-hal.php:1066
    5454msgid "Auteurs"
    5555msgstr "Auteurs"
    5656
    57 #: wp-hal.php:133 wp-hal.php:303 wp-hal.php:990
     57#: wp-hal.php:159 wp-hal.php:379 wp-hal.php:1067
    5858msgid "Revues"
    5959msgstr "Revues"
    6060
    61 #: wp-hal.php:137 wp-hal.php:343 wp-hal.php:991
     61#: wp-hal.php:163 wp-hal.php:419 wp-hal.php:1068
    6262msgid "Année de production"
    6363msgstr "Année de production"
    6464
    65 #: wp-hal.php:141 wp-hal.php:383 wp-hal.php:992
     65#: wp-hal.php:167 wp-hal.php:459 wp-hal.php:1069
    6666msgid "Institutions"
    6767msgstr "Institutions"
    6868
    69 #: wp-hal.php:145 wp-hal.php:423 wp-hal.php:993
     69#: wp-hal.php:171 wp-hal.php:499 wp-hal.php:1070
    7070msgid "Laboratoires"
    7171msgstr "Laboratoires"
    7272
    73 #: wp-hal.php:149 wp-hal.php:464 wp-hal.php:994
     73#: wp-hal.php:175 wp-hal.php:540 wp-hal.php:1071
    7474msgid "Départements"
    7575msgstr "Départements"
    7676
    77 #: wp-hal.php:153 wp-hal.php:504 wp-hal.php:995
     77#: wp-hal.php:179 wp-hal.php:580 wp-hal.php:1072
    7878msgid "Équipes de recherche"
    7979msgstr "Équipes de recherche"
    8080
    81 #: wp-hal.php:215 wp-hal.php:756
     81#: wp-hal.php:291 wp-hal.php:779
    8282msgid "Graphique"
    8383msgstr "Graphique"
    8484
    85 #: wp-hal.php:258 wp-hal.php:297 wp-hal.php:337 wp-hal.php:377 wp-hal.php:417
    86 #: wp-hal.php:458 wp-hal.php:498 wp-hal.php:538 wp-hal.php:756
     85#: wp-hal.php:334 wp-hal.php:373 wp-hal.php:413 wp-hal.php:453 wp-hal.php:493
     86#: wp-hal.php:534 wp-hal.php:574 wp-hal.php:614 wp-hal.php:779
    8787msgid "Liste complète"
    8888msgstr "Liste complète"
    8989
    90 #: wp-hal.php:545
    91 msgid "Nombre de documents"
    92 msgstr "Nombre de documents"
    93 
    94 #: wp-hal.php:559
     90#: wp-hal.php:627 wp-hal.php:650
     91msgid "documents"
     92msgstr ""
     93
     94#: wp-hal.php:633
    9595msgid "document"
    9696msgstr "document"
    9797
    98 #: wp-hal.php:691
     98#: wp-hal.php:767
    9999msgid "Documents récupérés de l'archive ouverte HAL"
    100100msgstr "Documents récupérés de l'archive ouverte HAL"
    101101
    102 #: wp-hal.php:756
     102#: wp-hal.php:779
    103103msgid "Liste"
    104104msgstr "Liste"
    105105
    106 #: wp-hal.php:756
     106#: wp-hal.php:779
    107107msgid "Liste principale"
    108108msgstr "Liste principale"
    109109
    110 #: wp-hal.php:756
     110#: wp-hal.php:779
    111111msgid "Nuage de mots"
    112112msgstr "Nuage de mots"
    113113
    114 #: wp-hal.php:817
     114#: wp-hal.php:885
    115115msgid "Afficher les dernières publications d'un auteur ou d'une structure."
    116116msgstr "Afficher les dernières publications d'un auteur ou d'une structure."
    117117
    118 #: wp-hal.php:822 wp-hal.php:894
     118#: wp-hal.php:890 wp-hal.php:963
    119119msgid "Publications récentes"
    120120msgstr "Publications récentes"
    121121
    122 #: wp-hal.php:901 wp-hal.php:915
     122#: wp-hal.php:971 wp-hal.php:981
    123123msgid "Titre"
    124124msgstr "Titre"
    125125
    126 #: wp-hal.php:906 wp-hal.php:969
     126#: wp-hal.php:975
     127msgid "Nombre de documents affichés"
     128msgstr "Nombre de documents affichés"
     129
     130#: wp-hal.php:979
     131msgid "Type d'affichage"
     132msgstr "Type d'affichage"
     133
     134#: wp-hal.php:982
     135msgid "Citation"
     136msgstr "Citation"
     137
     138#: wp-hal.php:986 wp-hal.php:1044
     139msgid "Type d'Id"
     140msgstr "Type d'Id"
     141
     142#: wp-hal.php:988 wp-hal.php:1046
    127143msgid "(Exemple : laurent-capelli)"
    128144msgstr "(Exemple : laurent-capelli)"
    129145
    130 #: wp-hal.php:907 wp-hal.php:970
     146#: wp-hal.php:989 wp-hal.php:1047
    131147msgid "(Exemple : 129)"
    132148msgstr "(Exemple : 129)"
    133149
    134 #: wp-hal.php:908 wp-hal.php:971
     150#: wp-hal.php:990 wp-hal.php:1048
    135151msgid "(Exemple : 1646)"
    136152msgstr "(Exemple : 1646)"
    137153
    138 #: wp-hal.php:909 wp-hal.php:972
     154#: wp-hal.php:991 wp-hal.php:1049
    139155msgid "(Exemple : 17877)"
    140156msgstr "(Exemple : 17877)"
    141157
    142 #: wp-hal.php:910 wp-hal.php:973
     158#: wp-hal.php:992 wp-hal.php:1050
    143159msgid "(Exemple : TICE2014)"
    144160msgstr "(Exemple : TICE2014)"
    145161
    146 #: wp-hal.php:916
    147 msgid "Citation"
    148 msgstr "Citation"
    149 
    150 #: wp-hal.php:955
     162#: wp-hal.php:996
     163msgid "Id"
     164msgstr ""
     165
     166#: wp-hal.php:1032
    151167msgid "Plugin HAL"
    152168msgstr "Plugin HAL"
    153169
    154 #: wp-hal.php:964
     170#: wp-hal.php:1041
    155171msgid "Paramètre de la page :"
    156172msgstr "Paramètre page :"
    157173
    158 #: wp-hal.php:967
    159 msgid "Type d'Id"
    160 msgstr "Type d'Id"
    161 
    162 #: wp-hal.php:979
     174#: wp-hal.php:1056
    163175msgid "Affichage des documents"
    164176msgstr "Affichage des documents"
    165177
    166 #: wp-hal.php:980
     178#: wp-hal.php:1057
    167179msgid "Documents avec pagination"
    168180msgstr "Documents avec pagination"
    169181
    170 #: wp-hal.php:981
     182#: wp-hal.php:1058
    171183msgid "Documents groupés par type"
    172184msgstr "Documents groupés par type"
    173185
    174 #: wp-hal.php:985
     186#: wp-hal.php:1062
    175187msgid "Choix des éléments menu"
    176188msgstr "Choix des éléments menu"
    177189
    178 #: wp-hal.php:999
     190#: wp-hal.php:1076
    179191msgid "Contact :"
    180192msgstr "Contact :"
    181193
    182 #: wp-hal.php:1002
     194#: wp-hal.php:1079
     195msgid "Afficher les informations d'un chercheur ayant un IdHal ?"
     196msgstr "Afficher les informations d'un chercheur ayant un IdHal ?"
     197
     198#: wp-hal.php:1080
     199msgid "Oui"
     200msgstr "Oui"
     201
     202#: wp-hal.php:1081
     203msgid "Non"
     204msgstr "Non"
     205
     206#: wp-hal.php:1084
    183207msgid "Email"
    184208msgstr "Email"
    185209
    186 #: wp-hal.php:1006
     210#: wp-hal.php:1088
    187211msgid "Téléphone"
    188212msgstr "Téléphone"
    189213
    190 #: wp-hal.php:1044
     214#: wp-hal.php:1109
    191215msgid "Enregistrer"
    192216msgstr "Enregistrer"
     217
     218#~ msgid "Nombre de documents"
     219#~ msgstr "Nombre de documents"
  • hal/trunk/readme.txt

    r1373689 r1388189  
    44Requires at least: 4.0
    55Tested up to: 4.4.2
    6 Stable tag: 1.4.4
     6Stable tag: 2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050You need to create your own page with wordpress and put the shortcode [cv-hal] on the content.
     51
     52= What can i do to personalize my page ? =
     53
    5154You can display multiple page with different IDs with parameters on the shortcode, example : [cv-hal id=184 type=authStructId_i]
    5255
     
    5861* European Project Id = europeanProjectId_i
    5962* Collection Id = collCode_s
     63
     64You can add in the shortcode "contact=yes" or "contact=no" to recover HAL Contact.
     65
     66You can add a new shortcode [nb-doc] to display the number of documents.
    6067
    6168= Error Code =
     
    7077
    7178== Changelog ==
     79
     80= 2.0 =
     81*Release Date - 23 March 2016*
     82
     83General :
     84
     85* **New** Add a shortcode [nb-doc] who return number of documents (same utilisation as [cv-hal])
     86
     87Page :
     88
     89* Add possibility to display in "Contact" informations about a researcher with an IdHAL
     90
    7291
    7392= 1.4.4 =
  • hal/trunk/wp-hal.php

    r1373770 r1388189  
    44 * Plugin URI: http://www.ccsd.cnrs.fr
    55 * Description: Crée une page qui remonte les publications d'un auteur ou d'une structure en relation avec HAL et un widget des dernières publications d'un auteur ou d'une structure.
    6  * Version: 1.4.4
     6 * Version: 2.0
    77 * Author: Baptiste Blondelle
    88 * Author URI: http://www.ccsd.cnrs.fr
     
    2929// Création du shortcode ('nom du shortcode', 'fonction appelée')
    3030add_shortcode( 'cv-hal', 'cv_hal' );
     31add_shortcode( 'nb-doc', 'nb_doc' );
    3132
    3233
     
    5354
    5455/***********************************************************************************************************************
    55  * PLUGIN SHORTCODE
     56 * PLUGIN SHORTCODE ND-DOC
     57 **********************************************************************************************************************/
     58function nb_doc($param)
     59{
     60    $idhal = verifSolr(get_option('option_idhal'));
     61    extract(shortcode_atts(array(
     62        'type' => get_option('option_type'),
     63        'id' => $idhal
     64    ),
     65        $param
     66    ));
     67    $id = verifSolr($id);
     68
     69    $url = api . '?q=*:*&fq=' . $type . ':(' . urlencode($id) . ')&rows=0&wt=json';
     70    $ch = curl_init($url);
     71    // Options
     72    $options = array(
     73        CURLOPT_RETURNTRANSFER => true,
     74        CURLOPT_HTTPHEADER => array('Content-type: application/json'),
     75        CURLOPT_TIMEOUT => 10,
     76        CURLOPT_USERAGENT => "HAL Plugin Wordpress " . version
     77    );
     78
     79    // Bind des options et de l'objet cURL que l'on va utiliser
     80    curl_setopt_array($ch, $options);
     81    // Récupération du résultat JSON
     82    $json = json_decode(curl_exec($ch));
     83    curl_close($ch);
     84
     85    return $json->response->numFound;
     86}
     87/***********************************************************************************************************************
     88 * PLUGIN SHORTCODE CV-HAL
    5689 **********************************************************************************************************************/
    5790function cv_hal($param){
     
    6396            extract(shortcode_atts(array(
    6497                'type' => get_option('option_type'),
    65                 'id' => $idhal
     98                'id' => $idhal,
     99                'contact' => get_option('option_infocontact')
    66100            ),
    67101                $param
     
    156190
    157191            <ul id="wphal-cont" style="list-style-type: none;">';
     192
     193            if ($contact == 'yes' && $type == 'authIdHal_s') {
     194                $urlauthor = urlauthor.'?indent=true&fq=valid_s:VALID&fl=idref_s,url_s,email_s,fullName_s,arxiv_s,idHal_s,viaf_s,isni_s,orcid_s,hasCV_bool&q=idHal_s:'.urlencode($id);
     195                $ch = curl_init($urlauthor);
     196                // Options
     197                $options = array(
     198                    CURLOPT_RETURNTRANSFER => true,
     199                    CURLOPT_HTTPHEADER => array('Content-type: application/json'),
     200                    CURLOPT_TIMEOUT => 10,
     201                    CURLOPT_USERAGENT => "HAL Plugin Wordpress " . version
     202                );
     203
     204                // Bind des options et de l'objet cURL que l'on va utiliser
     205                curl_setopt_array($ch, $options);
     206                // Récupération du résultat JSON
     207                $jsonauthor = json_decode(curl_exec($ch));
     208                curl_close($ch);
     209
     210                for ($i = 0; $jsonauthor->response->docs[$i] != ''; $i++) {
     211                    $content .= '<div class="wphal-infocontact" id="wphal-infocontact'.$i.'">';
     212                    if ($jsonauthor->response->docs[$i]->fullName_s != '') {
     213                        $content .= '<li class="wphal-fullname"><span>Nom : </span><span>'. $jsonauthor->response->docs[$i]->fullName_s .'</span></li>';
     214                    }
     215                    if ($jsonauthor->response->docs[$i]->email_s != '') {
     216                        $content .= '<li class="wphal-email"><span>Email : </span><span><a href="mailto:'. $jsonauthor->response->docs[$i]->email_s .'">' . $jsonauthor->response->docs[$i]->email_s . '</a></span></li>';
     217                    }
     218                    if ($jsonauthor->response->docs[$i]->idHal_s != '') {
     219                        $content .= '<li class="wphal-idhal"><span>IdHAL : </span><span>' . $jsonauthor->response->docs[$i]->idHal_s . '</span></li>';
     220                    }
     221                    if ($jsonauthor->response->docs[$i]->hasCV_bool == true){
     222                        $content .= '<li class="wphal-cvhal"><span>CV HAL : </span><a href="'.cvhal. $jsonauthor->response->docs[$i]->idHal_s.'" target="_blank">CV de '.$jsonauthor->response->docs[$i]->fullName_s.'</a></li>';
     223                    }
     224                    if ($jsonauthor->response->docs[$i]->arxiv_s != '') {
     225                        $content .= '<li class="wphal-"><span>arXiv : </span><span><a href="' . $jsonauthor->response->docs[$i]->arxiv_s . '" target="_blank">' . substr(strrchr($jsonauthor->response->docs[$i]->arxiv_s, "/"), 1) . '</a></span></li>';
     226                    }
     227                    if ($jsonauthor->response->docs[$i]->idref_s != '') {
     228                        $content .= '<li class="wphal-"><span>IdRef : </span><span><a href="' . $jsonauthor->response->docs[$i]->idref_s . '" target="_blank">' . substr(strrchr($jsonauthor->response->docs[$i]->idref_s, "/"), 1) . '</a></span></li>';
     229                    }
     230                    if ($jsonauthor->response->docs[$i]->orcid_s != '') {
     231                        $content .= '<li class="wphal-"><span>ORCID : </span><span><a href="' . $jsonauthor->response->docs[$i]->orcid_s . '" target="_blank">' . substr(strrchr($jsonauthor->response->docs[$i]->orcid_s, "/"), 1) . '</a></span></li>';
     232                    }
     233                    if ($jsonauthor->response->docs[$i]->viaf_s != '') {
     234                        $content .= '<li class="wphal-"><span>VIAF : </span><span><a href="' . $jsonauthor->response->docs[$i]->viaf_s . '" target="_blank">' . substr(strrchr($jsonauthor->response->docs[$i]->viaf_s, "/"), 1) . '</a></span></li>';
     235                    }
     236                    if ($jsonauthor->response->docs[$i]->isni_s != '') {
     237                        $content .= '<li class="wphal-"><span>ISNI : </span><span><a href="' . $jsonauthor->response->docs[$i]->isni_s . '" target="_blank">' . substr(strrchr($jsonauthor->response->docs[$i]->isni_s, "/"), 1) . '</a></span></li>';
     238                    }
     239                    $content .= '</div>';
     240                }
     241            }
    158242            if (get_option('option_email') != '') {
    159243                $content .= '<li><img alt="mail" src=" ' . plugin_dir_url(__FILE__) . 'img/mail.svg" style=" width:16px; margin-left:2px; margin-right:2px;"/><a href="mailto:' . get_option('option_email') . '" target="_blank">' . get_option('option_email') . '</a></li>';
     
    163247            }
    164248            if (get_option('option_social0') != '') {
    165                 $content .= '<li><a href="http://www.facebook.com/' . get_option('option_social0') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/facebook.svg" style="width:32px; margin:4px;"/></a>';
     249                $content .= '<li><a href="http://www.facebook.com/' . get_option('option_social0') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/facebook.svg" style="width:32px; margin:4px;"/></a></li>';
    166250            }
    167251            if (get_option('option_social1') != '') {
    168                 $content .= '<a href="http://www.twitter.com/' . get_option('option_social1') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/twitter.svg" style="width:32px; margin:4px;"/></a>';
     252                $content .= '<li><a href="http://www.twitter.com/' . get_option('option_social1') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/twitter.svg" style="width:32px; margin:4px;"/></a></li>';
    169253            }
    170254            if (get_option('option_social2') != '') {
    171                 $content .= '<a href="https://plus.google.com/u/0/+' . get_option('option_social2') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/google-plus.svg" style="width:32px; margin:4px;"/></a>';
     255                $content .= '<li><a href="https://plus.google.com/u/0/+' . get_option('option_social2') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/google-plus.svg" style="width:32px; margin:4px;"/></a></li>';
    172256            }
    173257            if (get_option('option_social3') != '') {
    174                 $content .= '<a href="https://www.linkedin.com/in/' . get_option('option_social3') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/linkedin.svg" style="width:32px; margin:4px;"/></a></li>';
     258                $content .= '<li><a href="https://www.linkedin.com/in/' . get_option('option_social3') . '" target="_blank"><img src=" ' . plugin_dir_url(__FILE__) . 'img/linkedin.svg" style="width:32px; margin:4px;"/></a></li>';
    175259            }
    176260            $content .= '</ul>
     
    9241008    register_setting( 'wphal_option', 'option_idhal' );
    9251009    register_setting( 'wphal_option', 'option_lang' );
    926     register_setting( 'wphal_option', 'option_css' );
     1010    register_setting( 'wphal_option', 'option_infocontact' );
    9271011    register_setting( 'wphal_option', 'option_email' );
    9281012    register_setting( 'wphal_option', 'option_tel' );
     
    9921076                                <th scope="row" style="font-size: 18px;"><?php echo __('Contact :','wp-hal');?></th>
    9931077                            </tr>
    994                             <tr valign="top">
     1078                            <tr>
     1079                                <th scope="row"><?php echo __("Afficher les informations d'un chercheur ayant un IdHal ?",'wp-hal');?></th>
     1080                                <td><input type="radio" name="option_infocontact" id="wphal-yes" value="yes" <?php echo (get_option('option_infocontact') == "yes")?'checked':''; ?>><label for="wphal-yes"><?php echo __("Oui",'wp-hal')?></label><br>
     1081                                    <input type="radio" name="option_infocontact" id="wphal-no" value="no" <?php echo (get_option('option_infocontact') ==  "no")?'checked':''; ?>><label for="wphal-no"><?php echo __("Non",'wp-hal')?></label><br>
     1082                                </td>
     1083                            <tr>
    9951084                                <th scope="row"><?php echo __('Email','wp-hal');?></th>
    9961085                                <td><input type="text" style="width:300px;" placeholder="Exemple : [email protected]" name="option_email" id="option_email" value="<?php echo get_option('option_email'); ?>"/><img alt="email" src="<?php echo plugin_dir_url( __FILE__ )  ?>img/mail.svg" style="vertical-align:middle; width:32px; margin-left:2px; margin-right:2px;"/></td>
    9971086                            </tr>
    998                             <tr valign="top">
     1087                            <tr>
    9991088                                <th scope="row"><?php echo __('Téléphone','wp-hal');?></th>
    10001089                                <td><input type="text" style="width:300px;" placeholder="Exemple : 06-01-02-03-04" name="option_tel" id="option_tel" value="<?php echo get_option('option_tel');?>"/><img alt="phone" src="<?php echo plugin_dir_url( __FILE__ )  ?>img/phone.svg" style="vertical-align:middle; width:32px; margin-left:2px; margin-right:2px;"/></td>
     
    10431132    delete_option('option_idhal');
    10441133    delete_option('option_lang');
    1045     delete_option('option_css');
     1134    delete_option('option_infocontact');
    10461135    delete_option('option_email');
    10471136    delete_option('option_tel');
Note: See TracChangeset for help on using the changeset viewer.