Changeset 1388189
- Timestamp:
- 04/06/2016 12:42:17 PM (10 years ago)
- Location:
- hal/trunk
- Files:
-
- 10 edited
-
constantes.php (modified) (2 diffs)
-
css/style.css (modified) (1 diff)
-
lang/wp-hal-en_US.mo (modified) (previous)
-
lang/wp-hal-en_US.po (modified) (2 diffs)
-
lang/wp-hal-es_ES.mo (modified) (previous)
-
lang/wp-hal-es_ES.po (modified) (2 diffs)
-
lang/wp-hal-fr_FR.mo (modified) (previous)
-
lang/wp-hal-fr_FR.po (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
wp-hal.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hal/trunk/constantes.php
r1373689 r1388189 13 13 define('api', 'http://api.archives-ouvertes.fr/search/hal/'); 14 14 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é 16 define('urlauthor', 'http://api.archives-ouvertes.fr/ref/author/'); 17 18 // Constante pour le CV HAL d'un auteur ayant un IdHAl 19 define('cvhal', 'http://cv.archives-ouvertes.fr/'); 17 20 18 21 // Constante pour la redirection vers le site halv3 onglet recherche … … 29 32 30 33 // Constante de Version USERAGENT 31 define('version', ' 1.4.4');34 define('version', '2.0'); -
hal/trunk/css/style.css
r1372175 r1388189 136 136 } 137 137 138 .wphal-infocontact { 139 margin-bottom : 15px; 140 } 141 138 142 .wphal-nbmetadata { 139 143 background-color: #BEBEBE; -
hal/trunk/lang/wp-hal-en_US.po
r1346646 r1388189 2 2 msgstr "" 3 3 "Project-Id-Version: wp-hal\n" 4 "POT-Creation-Date: 2016-0 2-05 13:41+0100\n"5 "PO-Revision-Date: 2016-0 2-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" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 26 26 "HAL and a widget of recent publications of an author or a structure. " 27 27 28 #: wp-hal.php:4 328 #: wp-hal.php:44 29 29 msgid "Paramètres" 30 30 msgstr "Settings" 31 31 32 #: wp-hal.php:1 1332 #: wp-hal.php:138 33 33 msgid "Publications" 34 34 msgstr "Publications" 35 35 36 #: wp-hal.php:1 1536 #: wp-hal.php:140 37 37 msgid "Filtres" 38 38 msgstr "Metadata" 39 39 40 #: wp-hal.php:1 18 wp-hal.php:163 wp-hal.php:101740 #: wp-hal.php:143 wp-hal.php:188 wp-hal.php:1063 41 41 msgid "Contact" 42 42 msgstr "Contact" 43 43 44 #: wp-hal.php:1 22 wp-hal.php:188 wp-hal.php:101844 #: wp-hal.php:147 wp-hal.php:263 wp-hal.php:1064 45 45 msgid "Disciplines" 46 46 msgstr "Domains" 47 47 48 #: wp-hal.php:1 26 wp-hal.php:221 wp-hal.php:101948 #: wp-hal.php:151 wp-hal.php:296 wp-hal.php:1065 49 49 msgid "Mots-clefs" 50 50 msgstr "Keywords" 51 51 52 #: wp-hal.php:1 30 wp-hal.php:264 wp-hal.php:102052 #: wp-hal.php:155 wp-hal.php:339 wp-hal.php:1066 53 53 msgid "Auteurs" 54 54 msgstr "Authors" 55 55 56 #: wp-hal.php:1 34 wp-hal.php:304 wp-hal.php:102156 #: wp-hal.php:159 wp-hal.php:379 wp-hal.php:1067 57 57 msgid "Revues" 58 58 msgstr "Journals" 59 59 60 #: wp-hal.php:1 38 wp-hal.php:344 wp-hal.php:102260 #: wp-hal.php:163 wp-hal.php:419 wp-hal.php:1068 61 61 msgid "Année de production" 62 62 msgstr "Year of production" 63 63 64 #: wp-hal.php:1 42 wp-hal.php:384 wp-hal.php:102364 #: wp-hal.php:167 wp-hal.php:459 wp-hal.php:1069 65 65 msgid "Institutions" 66 66 msgstr "Institutions" 67 67 68 #: wp-hal.php:1 46 wp-hal.php:424 wp-hal.php:102468 #: wp-hal.php:171 wp-hal.php:499 wp-hal.php:1070 69 69 msgid "Laboratoires" 70 70 msgstr "Laboratories" 71 71 72 #: wp-hal.php:1 50 wp-hal.php:465 wp-hal.php:102572 #: wp-hal.php:175 wp-hal.php:540 wp-hal.php:1071 73 73 msgid "Départements" 74 74 msgstr "Departments" 75 75 76 #: wp-hal.php:1 54 wp-hal.php:505 wp-hal.php:102676 #: wp-hal.php:179 wp-hal.php:580 wp-hal.php:1072 77 77 msgid "Équipes de recherche" 78 78 msgstr "Research team" 79 79 80 #: wp-hal.php:2 16 wp-hal.php:77780 #: wp-hal.php:291 wp-hal.php:779 81 81 msgid "Graphique" 82 82 msgstr "Graph" 83 83 84 #: wp-hal.php: 259 wp-hal.php:298 wp-hal.php:338 wp-hal.php:378 wp-hal.php:41885 #: wp-hal.php: 459 wp-hal.php:499 wp-hal.php:539 wp-hal.php:77784 #: 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 86 86 msgid "Liste complète" 87 87 msgstr "Full list" 88 88 89 #: wp-hal.php: 550 wp-hal.php:57289 #: wp-hal.php:627 wp-hal.php:650 90 90 msgid "documents" 91 91 msgstr "documents" 92 92 93 #: wp-hal.php: 55893 #: wp-hal.php:633 94 94 msgid "document" 95 95 msgstr "document" 96 96 97 #: wp-hal.php: 69097 #: wp-hal.php:767 98 98 msgid "Documents récupérés de l'archive ouverte HAL" 99 99 msgstr "Powered by HAL" 100 100 101 #: wp-hal.php:77 7101 #: wp-hal.php:779 102 102 msgid "Liste" 103 103 msgstr "List" 104 104 105 #: wp-hal.php:77 7105 #: wp-hal.php:779 106 106 msgid "Liste principale" 107 107 msgstr "Main list" 108 108 109 #: wp-hal.php:77 7109 #: wp-hal.php:779 110 110 msgid "Nuage de mots" 111 111 msgstr "Word cloud" 112 112 113 #: wp-hal.php:8 38113 #: wp-hal.php:885 114 114 msgid "Afficher les dernières publications d'un auteur ou d'une structure." 115 115 msgstr "Display the lastest publications of an author or a structure." 116 116 117 #: wp-hal.php:8 43 wp-hal.php:918117 #: wp-hal.php:890 wp-hal.php:963 118 118 msgid "Publications récentes" 119 119 msgstr "Lastest publications" 120 120 121 #: wp-hal.php:9 26 wp-hal.php:936121 #: wp-hal.php:971 wp-hal.php:981 122 122 msgid "Titre" 123 123 msgstr "Title" 124 124 125 #: wp-hal.php:9 30125 #: wp-hal.php:975 126 126 msgid "Nombre de documents affichés" 127 127 msgstr "Number of documents to show" 128 128 129 #: wp-hal.php:9 34129 #: wp-hal.php:979 130 130 msgid "Type d'affichage" 131 131 msgstr "Display type" 132 132 133 #: wp-hal.php:9 37133 #: wp-hal.php:982 134 134 msgid "Citation" 135 135 msgstr "Citation" 136 136 137 #: wp-hal.php:9 41 wp-hal.php:998137 #: wp-hal.php:986 wp-hal.php:1044 138 138 msgid "Type d'Id" 139 139 msgstr "Type of Id" 140 140 141 #: wp-hal.php:9 43 wp-hal.php:1000141 #: wp-hal.php:988 wp-hal.php:1046 142 142 msgid "(Exemple : laurent-capelli)" 143 143 msgstr "(Example : laurent-capelli)" 144 144 145 #: wp-hal.php:9 44 wp-hal.php:1001145 #: wp-hal.php:989 wp-hal.php:1047 146 146 msgid "(Exemple : 129)" 147 147 msgstr "(Example : 129)" 148 148 149 #: wp-hal.php:9 45 wp-hal.php:1002149 #: wp-hal.php:990 wp-hal.php:1048 150 150 msgid "(Exemple : 1646)" 151 151 msgstr "(Example : 1646)" 152 152 153 #: wp-hal.php:9 46 wp-hal.php:1003153 #: wp-hal.php:991 wp-hal.php:1049 154 154 msgid "(Exemple : 17877)" 155 155 msgstr "(Example : 17877)" 156 156 157 #: wp-hal.php:9 47 wp-hal.php:1004157 #: wp-hal.php:992 wp-hal.php:1050 158 158 msgid "(Exemple : TICE2014)" 159 159 msgstr "(Example : TICE2014)" 160 160 161 #: wp-hal.php:9 51161 #: wp-hal.php:996 162 162 msgid "Id" 163 163 msgstr "Id" 164 164 165 #: wp-hal.php: 986165 #: wp-hal.php:1032 166 166 msgid "Plugin HAL" 167 167 msgstr "Plugin HAL" 168 168 169 #: wp-hal.php: 995169 #: wp-hal.php:1041 170 170 msgid "Paramètre de la page :" 171 171 msgstr "Page settings :" 172 172 173 #: wp-hal.php:10 10173 #: wp-hal.php:1056 174 174 msgid "Affichage des documents" 175 175 msgstr "Display documents" 176 176 177 #: wp-hal.php:10 11177 #: wp-hal.php:1057 178 178 msgid "Documents avec pagination" 179 179 msgstr "Documents with pagination" 180 180 181 #: wp-hal.php:10 12181 #: wp-hal.php:1058 182 182 msgid "Documents groupés par type" 183 183 msgstr "Documents grouped by type" 184 184 185 #: wp-hal.php:10 16185 #: wp-hal.php:1062 186 186 msgid "Choix des éléments menu" 187 187 msgstr "Choice menu item" 188 188 189 #: wp-hal.php:10 30189 #: wp-hal.php:1076 190 190 msgid "Contact :" 191 191 msgstr "Contact :" 192 192 193 #: wp-hal.php:1033 193 #: wp-hal.php:1079 194 msgid "Afficher les informations d'un chercheur ayant un IdHal ?" 195 msgstr "Show data for researchers who have an IdHal ?" 196 197 #: wp-hal.php:1080 198 msgid "Oui" 199 msgstr "Yes" 200 201 #: wp-hal.php:1081 202 msgid "Non" 203 msgstr "No" 204 205 #: wp-hal.php:1084 194 206 msgid "Email" 195 207 msgstr "Email" 196 208 197 #: wp-hal.php:10 37209 #: wp-hal.php:1088 198 210 msgid "Téléphone" 199 211 msgstr "Phone" 200 212 201 #: wp-hal.php:1 058213 #: wp-hal.php:1109 202 214 msgid "Enregistrer" 203 215 msgstr "Save" -
hal/trunk/lang/wp-hal-es_ES.po
r1346646 r1388189 2 2 msgstr "" 3 3 "Project-Id-Version: wp-hal\n" 4 "POT-Creation-Date: 2016-0 2-04 15:35+0100\n"5 "PO-Revision-Date: 2016-0 2-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" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 27 27 "un autor o de una estructura." 28 28 29 #: wp-hal.php:4 329 #: wp-hal.php:44 30 30 msgid "Paramètres" 31 31 msgstr "Parámetros" 32 32 33 #: wp-hal.php:1 12 wp-hal.php:54433 #: wp-hal.php:138 34 34 msgid "Publications" 35 35 msgstr "Publicaciones" 36 36 37 #: wp-hal.php:1 1437 #: wp-hal.php:140 38 38 msgid "Filtres" 39 39 msgstr "Metadatos" 40 40 41 #: wp-hal.php:1 17 wp-hal.php:162 wp-hal.php:98641 #: wp-hal.php:143 wp-hal.php:188 wp-hal.php:1063 42 42 msgid "Contact" 43 43 msgstr "Contacto" 44 44 45 #: wp-hal.php:1 21 wp-hal.php:187 wp-hal.php:98745 #: wp-hal.php:147 wp-hal.php:263 wp-hal.php:1064 46 46 msgid "Disciplines" 47 47 msgstr "Disciplinas" 48 48 49 #: wp-hal.php:1 25 wp-hal.php:220 wp-hal.php:98849 #: wp-hal.php:151 wp-hal.php:296 wp-hal.php:1065 50 50 msgid "Mots-clefs" 51 51 msgstr "Palabras clave" 52 52 53 #: wp-hal.php:1 29 wp-hal.php:263 wp-hal.php:98953 #: wp-hal.php:155 wp-hal.php:339 wp-hal.php:1066 54 54 msgid "Auteurs" 55 55 msgstr "Autores" 56 56 57 #: wp-hal.php:1 33 wp-hal.php:303 wp-hal.php:99057 #: wp-hal.php:159 wp-hal.php:379 wp-hal.php:1067 58 58 msgid "Revues" 59 59 msgstr "Revistas" 60 60 61 #: wp-hal.php:1 37 wp-hal.php:343 wp-hal.php:99161 #: wp-hal.php:163 wp-hal.php:419 wp-hal.php:1068 62 62 msgid "Année de production" 63 63 msgstr "Año de producción" 64 64 65 #: wp-hal.php:1 41 wp-hal.php:383 wp-hal.php:99265 #: wp-hal.php:167 wp-hal.php:459 wp-hal.php:1069 66 66 msgid "Institutions" 67 67 msgstr "Instituciones" 68 68 69 #: wp-hal.php:1 45 wp-hal.php:423 wp-hal.php:99369 #: wp-hal.php:171 wp-hal.php:499 wp-hal.php:1070 70 70 msgid "Laboratoires" 71 71 msgstr "Laboratorios" 72 72 73 #: wp-hal.php:1 49 wp-hal.php:464 wp-hal.php:99473 #: wp-hal.php:175 wp-hal.php:540 wp-hal.php:1071 74 74 msgid "Départements" 75 75 msgstr "Departamentos" 76 76 77 #: wp-hal.php:1 53 wp-hal.php:504 wp-hal.php:99577 #: wp-hal.php:179 wp-hal.php:580 wp-hal.php:1072 78 78 msgid "Équipes de recherche" 79 79 msgstr "Equipos de investigación" 80 80 81 #: wp-hal.php:2 15 wp-hal.php:75681 #: wp-hal.php:291 wp-hal.php:779 82 82 msgid "Graphique" 83 83 msgstr "Gráfico" 84 84 85 #: wp-hal.php: 258 wp-hal.php:297 wp-hal.php:337 wp-hal.php:377 wp-hal.php:41786 #: wp-hal.php: 458 wp-hal.php:498 wp-hal.php:538 wp-hal.php:75685 #: 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 87 87 msgid "Liste complète" 88 88 msgstr "Lista completa " 89 89 90 #: wp-hal.php: 54591 msgid " Nombre dedocuments"92 msgstr " Número de documentos"93 94 #: wp-hal.php: 55990 #: wp-hal.php:627 wp-hal.php:650 91 msgid "documents" 92 msgstr "" 93 94 #: wp-hal.php:633 95 95 msgid "document" 96 96 msgstr "documento" 97 97 98 #: wp-hal.php: 69198 #: wp-hal.php:767 99 99 msgid "Documents récupérés de l'archive ouverte HAL" 100 100 msgstr "Respaldado por HAL" 101 101 102 #: wp-hal.php:7 56102 #: wp-hal.php:779 103 103 msgid "Liste" 104 104 msgstr "Lista" 105 105 106 #: wp-hal.php:7 56106 #: wp-hal.php:779 107 107 msgid "Liste principale" 108 108 msgstr "Lista principal" 109 109 110 #: wp-hal.php:7 56110 #: wp-hal.php:779 111 111 msgid "Nuage de mots" 112 112 msgstr "Nube de palabras" 113 113 114 #: wp-hal.php:8 17114 #: wp-hal.php:885 115 115 msgid "Afficher les dernières publications d'un auteur ou d'une structure." 116 116 msgstr "Mostrar las últimas publicaciones de un autor o de una estructura." 117 117 118 #: wp-hal.php:8 22 wp-hal.php:894118 #: wp-hal.php:890 wp-hal.php:963 119 119 msgid "Publications récentes" 120 120 msgstr "Últimas publicaciones" 121 121 122 #: wp-hal.php:9 01 wp-hal.php:915122 #: wp-hal.php:971 wp-hal.php:981 123 123 msgid "Titre" 124 124 msgstr "Titulo" 125 125 126 #: wp-hal.php:906 wp-hal.php:969 126 #: wp-hal.php:975 127 msgid "Nombre de documents affichés" 128 msgstr "Número de documentos visualizado" 129 130 #: wp-hal.php:979 131 msgid "Type d'affichage" 132 msgstr "Tipo de visualización" 133 134 #: wp-hal.php:982 135 msgid "Citation" 136 msgstr "Cita" 137 138 #: wp-hal.php:986 wp-hal.php:1044 139 msgid "Type d'Id" 140 msgstr "Clase de Id" 141 142 #: wp-hal.php:988 wp-hal.php:1046 127 143 msgid "(Exemple : laurent-capelli)" 128 144 msgstr "(Ejemplo : laurent-capelli)" 129 145 130 #: wp-hal.php:9 07 wp-hal.php:970146 #: wp-hal.php:989 wp-hal.php:1047 131 147 msgid "(Exemple : 129)" 132 148 msgstr "(Ejemplo : 129)" 133 149 134 #: wp-hal.php:9 08 wp-hal.php:971150 #: wp-hal.php:990 wp-hal.php:1048 135 151 msgid "(Exemple : 1646)" 136 152 msgstr "(Ejemplo : 1646)" 137 153 138 #: wp-hal.php:9 09 wp-hal.php:972154 #: wp-hal.php:991 wp-hal.php:1049 139 155 msgid "(Exemple : 17877)" 140 156 msgstr "(Ejemplo : 17877)" 141 157 142 #: wp-hal.php:9 10 wp-hal.php:973158 #: wp-hal.php:992 wp-hal.php:1050 143 159 msgid "(Exemple : TICE2014)" 144 160 msgstr "(Ejemplo : TICE2014)" 145 161 146 #: wp-hal.php:9 16147 msgid " Citation"148 msgstr " Cita"149 150 #: wp-hal.php: 955162 #: wp-hal.php:996 163 msgid "Id" 164 msgstr "" 165 166 #: wp-hal.php:1032 151 167 msgid "Plugin HAL" 152 168 msgstr "Plugin HAL" 153 169 154 #: wp-hal.php: 964170 #: wp-hal.php:1041 155 171 msgid "Paramètre de la page :" 156 172 msgstr "Parámetro página :" 157 173 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 163 175 msgid "Affichage des documents" 164 176 msgstr "Visualización de documentos" 165 177 166 #: wp-hal.php: 980178 #: wp-hal.php:1057 167 179 msgid "Documents avec pagination" 168 180 msgstr "Documentos con paginación" 169 181 170 #: wp-hal.php: 981182 #: wp-hal.php:1058 171 183 msgid "Documents groupés par type" 172 184 msgstr "Documentos agrupados por tipo" 173 185 174 #: wp-hal.php: 985186 #: wp-hal.php:1062 175 187 msgid "Choix des éléments menu" 176 188 msgstr "Elección elementos del menu" 177 189 178 #: wp-hal.php: 999190 #: wp-hal.php:1076 179 191 msgid "Contact :" 180 192 msgstr "Contacto :" 181 193 182 #: wp-hal.php:1002 194 #: wp-hal.php:1079 195 msgid "Afficher les informations d'un chercheur ayant un IdHal ?" 196 msgstr "" 197 198 #: wp-hal.php:1080 199 msgid "Oui" 200 msgstr "Si" 201 202 #: wp-hal.php:1081 203 msgid "Non" 204 msgstr "No" 205 206 #: wp-hal.php:1084 183 207 msgid "Email" 184 208 msgstr "Email" 185 209 186 #: wp-hal.php:10 06210 #: wp-hal.php:1088 187 211 msgid "Téléphone" 188 212 msgstr "Teléfono" 189 213 190 #: wp-hal.php:1 044214 #: wp-hal.php:1109 191 215 msgid "Enregistrer" 192 216 msgstr "Registrar" 193 217 218 #~ msgid "Nombre de documents" 219 #~ msgstr "Número de documentos" 220 194 221 #~ msgid "Titre :" 195 222 #~ msgstr "Titulo :" -
hal/trunk/lang/wp-hal-fr_FR.po
r1346646 r1388189 2 2 msgstr "" 3 3 "Project-Id-Version: wp-hal.php\n" 4 "POT-Creation-Date: 2016-0 2-04 15:31+0100\n"5 "PO-Revision-Date: 2016-0 2-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" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 27 27 "d'une structure." 28 28 29 #: wp-hal.php:4 329 #: wp-hal.php:44 30 30 msgid "Paramètres" 31 31 msgstr "Paramètres" 32 32 33 #: wp-hal.php:1 12 wp-hal.php:54433 #: wp-hal.php:138 34 34 msgid "Publications" 35 35 msgstr "Publications" 36 36 37 #: wp-hal.php:1 1437 #: wp-hal.php:140 38 38 msgid "Filtres" 39 39 msgstr "Métadonnées" 40 40 41 #: wp-hal.php:1 17 wp-hal.php:162 wp-hal.php:98641 #: wp-hal.php:143 wp-hal.php:188 wp-hal.php:1063 42 42 msgid "Contact" 43 43 msgstr "Contact" 44 44 45 #: wp-hal.php:1 21 wp-hal.php:187 wp-hal.php:98745 #: wp-hal.php:147 wp-hal.php:263 wp-hal.php:1064 46 46 msgid "Disciplines" 47 47 msgstr "Disciplines" 48 48 49 #: wp-hal.php:1 25 wp-hal.php:220 wp-hal.php:98849 #: wp-hal.php:151 wp-hal.php:296 wp-hal.php:1065 50 50 msgid "Mots-clefs" 51 51 msgstr "Mots-clefs" 52 52 53 #: wp-hal.php:1 29 wp-hal.php:263 wp-hal.php:98953 #: wp-hal.php:155 wp-hal.php:339 wp-hal.php:1066 54 54 msgid "Auteurs" 55 55 msgstr "Auteurs" 56 56 57 #: wp-hal.php:1 33 wp-hal.php:303 wp-hal.php:99057 #: wp-hal.php:159 wp-hal.php:379 wp-hal.php:1067 58 58 msgid "Revues" 59 59 msgstr "Revues" 60 60 61 #: wp-hal.php:1 37 wp-hal.php:343 wp-hal.php:99161 #: wp-hal.php:163 wp-hal.php:419 wp-hal.php:1068 62 62 msgid "Année de production" 63 63 msgstr "Année de production" 64 64 65 #: wp-hal.php:1 41 wp-hal.php:383 wp-hal.php:99265 #: wp-hal.php:167 wp-hal.php:459 wp-hal.php:1069 66 66 msgid "Institutions" 67 67 msgstr "Institutions" 68 68 69 #: wp-hal.php:1 45 wp-hal.php:423 wp-hal.php:99369 #: wp-hal.php:171 wp-hal.php:499 wp-hal.php:1070 70 70 msgid "Laboratoires" 71 71 msgstr "Laboratoires" 72 72 73 #: wp-hal.php:1 49 wp-hal.php:464 wp-hal.php:99473 #: wp-hal.php:175 wp-hal.php:540 wp-hal.php:1071 74 74 msgid "Départements" 75 75 msgstr "Départements" 76 76 77 #: wp-hal.php:1 53 wp-hal.php:504 wp-hal.php:99577 #: wp-hal.php:179 wp-hal.php:580 wp-hal.php:1072 78 78 msgid "Équipes de recherche" 79 79 msgstr "Équipes de recherche" 80 80 81 #: wp-hal.php:2 15 wp-hal.php:75681 #: wp-hal.php:291 wp-hal.php:779 82 82 msgid "Graphique" 83 83 msgstr "Graphique" 84 84 85 #: wp-hal.php: 258 wp-hal.php:297 wp-hal.php:337 wp-hal.php:377 wp-hal.php:41786 #: wp-hal.php: 458 wp-hal.php:498 wp-hal.php:538 wp-hal.php:75685 #: 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 87 87 msgid "Liste complète" 88 88 msgstr "Liste complète" 89 89 90 #: wp-hal.php: 54591 msgid " Nombre dedocuments"92 msgstr " Nombre de documents"93 94 #: wp-hal.php: 55990 #: wp-hal.php:627 wp-hal.php:650 91 msgid "documents" 92 msgstr "" 93 94 #: wp-hal.php:633 95 95 msgid "document" 96 96 msgstr "document" 97 97 98 #: wp-hal.php: 69198 #: wp-hal.php:767 99 99 msgid "Documents récupérés de l'archive ouverte HAL" 100 100 msgstr "Documents récupérés de l'archive ouverte HAL" 101 101 102 #: wp-hal.php:7 56102 #: wp-hal.php:779 103 103 msgid "Liste" 104 104 msgstr "Liste" 105 105 106 #: wp-hal.php:7 56106 #: wp-hal.php:779 107 107 msgid "Liste principale" 108 108 msgstr "Liste principale" 109 109 110 #: wp-hal.php:7 56110 #: wp-hal.php:779 111 111 msgid "Nuage de mots" 112 112 msgstr "Nuage de mots" 113 113 114 #: wp-hal.php:8 17114 #: wp-hal.php:885 115 115 msgid "Afficher les dernières publications d'un auteur ou d'une structure." 116 116 msgstr "Afficher les dernières publications d'un auteur ou d'une structure." 117 117 118 #: wp-hal.php:8 22 wp-hal.php:894118 #: wp-hal.php:890 wp-hal.php:963 119 119 msgid "Publications récentes" 120 120 msgstr "Publications récentes" 121 121 122 #: wp-hal.php:9 01 wp-hal.php:915122 #: wp-hal.php:971 wp-hal.php:981 123 123 msgid "Titre" 124 124 msgstr "Titre" 125 125 126 #: wp-hal.php:906 wp-hal.php:969 126 #: wp-hal.php:975 127 msgid "Nombre de documents affichés" 128 msgstr "Nombre de documents affichés" 129 130 #: wp-hal.php:979 131 msgid "Type d'affichage" 132 msgstr "Type d'affichage" 133 134 #: wp-hal.php:982 135 msgid "Citation" 136 msgstr "Citation" 137 138 #: wp-hal.php:986 wp-hal.php:1044 139 msgid "Type d'Id" 140 msgstr "Type d'Id" 141 142 #: wp-hal.php:988 wp-hal.php:1046 127 143 msgid "(Exemple : laurent-capelli)" 128 144 msgstr "(Exemple : laurent-capelli)" 129 145 130 #: wp-hal.php:9 07 wp-hal.php:970146 #: wp-hal.php:989 wp-hal.php:1047 131 147 msgid "(Exemple : 129)" 132 148 msgstr "(Exemple : 129)" 133 149 134 #: wp-hal.php:9 08 wp-hal.php:971150 #: wp-hal.php:990 wp-hal.php:1048 135 151 msgid "(Exemple : 1646)" 136 152 msgstr "(Exemple : 1646)" 137 153 138 #: wp-hal.php:9 09 wp-hal.php:972154 #: wp-hal.php:991 wp-hal.php:1049 139 155 msgid "(Exemple : 17877)" 140 156 msgstr "(Exemple : 17877)" 141 157 142 #: wp-hal.php:9 10 wp-hal.php:973158 #: wp-hal.php:992 wp-hal.php:1050 143 159 msgid "(Exemple : TICE2014)" 144 160 msgstr "(Exemple : TICE2014)" 145 161 146 #: wp-hal.php:9 16147 msgid " Citation"148 msgstr " Citation"149 150 #: wp-hal.php: 955162 #: wp-hal.php:996 163 msgid "Id" 164 msgstr "" 165 166 #: wp-hal.php:1032 151 167 msgid "Plugin HAL" 152 168 msgstr "Plugin HAL" 153 169 154 #: wp-hal.php: 964170 #: wp-hal.php:1041 155 171 msgid "Paramètre de la page :" 156 172 msgstr "Paramètre page :" 157 173 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 163 175 msgid "Affichage des documents" 164 176 msgstr "Affichage des documents" 165 177 166 #: wp-hal.php: 980178 #: wp-hal.php:1057 167 179 msgid "Documents avec pagination" 168 180 msgstr "Documents avec pagination" 169 181 170 #: wp-hal.php: 981182 #: wp-hal.php:1058 171 183 msgid "Documents groupés par type" 172 184 msgstr "Documents groupés par type" 173 185 174 #: wp-hal.php: 985186 #: wp-hal.php:1062 175 187 msgid "Choix des éléments menu" 176 188 msgstr "Choix des éléments menu" 177 189 178 #: wp-hal.php: 999190 #: wp-hal.php:1076 179 191 msgid "Contact :" 180 192 msgstr "Contact :" 181 193 182 #: wp-hal.php:1002 194 #: wp-hal.php:1079 195 msgid "Afficher les informations d'un chercheur ayant un IdHal ?" 196 msgstr "Afficher les informations d'un chercheur ayant un IdHal ?" 197 198 #: wp-hal.php:1080 199 msgid "Oui" 200 msgstr "Oui" 201 202 #: wp-hal.php:1081 203 msgid "Non" 204 msgstr "Non" 205 206 #: wp-hal.php:1084 183 207 msgid "Email" 184 208 msgstr "Email" 185 209 186 #: wp-hal.php:10 06210 #: wp-hal.php:1088 187 211 msgid "Téléphone" 188 212 msgstr "Téléphone" 189 213 190 #: wp-hal.php:1 044214 #: wp-hal.php:1109 191 215 msgid "Enregistrer" 192 216 msgstr "Enregistrer" 217 218 #~ msgid "Nombre de documents" 219 #~ msgstr "Nombre de documents" -
hal/trunk/readme.txt
r1373689 r1388189 4 4 Requires at least: 4.0 5 5 Tested up to: 4.4.2 6 Stable tag: 1.4.46 Stable tag: 2.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 You 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 51 54 You can display multiple page with different IDs with parameters on the shortcode, example : [cv-hal id=184 type=authStructId_i] 52 55 … … 58 61 * European Project Id = europeanProjectId_i 59 62 * Collection Id = collCode_s 63 64 You can add in the shortcode "contact=yes" or "contact=no" to recover HAL Contact. 65 66 You can add a new shortcode [nb-doc] to display the number of documents. 60 67 61 68 = Error Code = … … 70 77 71 78 == Changelog == 79 80 = 2.0 = 81 *Release Date - 23 March 2016* 82 83 General : 84 85 * **New** Add a shortcode [nb-doc] who return number of documents (same utilisation as [cv-hal]) 86 87 Page : 88 89 * Add possibility to display in "Contact" informations about a researcher with an IdHAL 90 72 91 73 92 = 1.4.4 = -
hal/trunk/wp-hal.php
r1373770 r1388189 4 4 * Plugin URI: http://www.ccsd.cnrs.fr 5 5 * 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.46 * Version: 2.0 7 7 * Author: Baptiste Blondelle 8 8 * Author URI: http://www.ccsd.cnrs.fr … … 29 29 // Création du shortcode ('nom du shortcode', 'fonction appelée') 30 30 add_shortcode( 'cv-hal', 'cv_hal' ); 31 add_shortcode( 'nb-doc', 'nb_doc' ); 31 32 32 33 … … 53 54 54 55 /*********************************************************************************************************************** 55 * PLUGIN SHORTCODE 56 * PLUGIN SHORTCODE ND-DOC 57 **********************************************************************************************************************/ 58 function 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 56 89 **********************************************************************************************************************/ 57 90 function cv_hal($param){ … … 63 96 extract(shortcode_atts(array( 64 97 'type' => get_option('option_type'), 65 'id' => $idhal 98 'id' => $idhal, 99 'contact' => get_option('option_infocontact') 66 100 ), 67 101 $param … … 156 190 157 191 <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 } 158 242 if (get_option('option_email') != '') { 159 243 $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>'; … … 163 247 } 164 248 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>'; 166 250 } 167 251 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>'; 169 253 } 170 254 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>'; 172 256 } 173 257 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>'; 175 259 } 176 260 $content .= '</ul> … … 924 1008 register_setting( 'wphal_option', 'option_idhal' ); 925 1009 register_setting( 'wphal_option', 'option_lang' ); 926 register_setting( 'wphal_option', 'option_ css' );1010 register_setting( 'wphal_option', 'option_infocontact' ); 927 1011 register_setting( 'wphal_option', 'option_email' ); 928 1012 register_setting( 'wphal_option', 'option_tel' ); … … 992 1076 <th scope="row" style="font-size: 18px;"><?php echo __('Contact :','wp-hal');?></th> 993 1077 </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> 995 1084 <th scope="row"><?php echo __('Email','wp-hal');?></th> 996 1085 <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> 997 1086 </tr> 998 <tr valign="top">1087 <tr> 999 1088 <th scope="row"><?php echo __('Téléphone','wp-hal');?></th> 1000 1089 <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> … … 1043 1132 delete_option('option_idhal'); 1044 1133 delete_option('option_lang'); 1045 delete_option('option_ css');1134 delete_option('option_infocontact'); 1046 1135 delete_option('option_email'); 1047 1136 delete_option('option_tel');
Note: See TracChangeset
for help on using the changeset viewer.