Valider 3bfb9659 rédigé par florence.henry's avatar florence.henry
Parcourir les fichiers

Merge pull request 'anglais et ADS' (#1) from feature/ads-and-en into master

parents cf8cf52f 8d7ea7cb
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+4 −1
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -48,6 +48,7 @@
.hal-ref {}
.hal-hal, 
.hal-doi, 
.hal-ads, 
.hal-arxiv {display:inline-block;}

.hal-ref span {display:none;}
@@ -58,3 +59,5 @@
.hal-doi a:hover {background:transparent url(../img/picto_doi_on.png) no-repeat;}
.hal-arxiv a {background:transparent url(../img/picto_arxiv.png) no-repeat;}
.hal-arxiv a:hover {background:transparent url(../img/picto_arxiv_on.png) no-repeat;}
.hal-ads a {background:transparent url(../img/picto_ads.png) no-repeat;}
.hal-ads a:hover {background:transparent url(../img/picto_ads_on.png) no-repeat;}
 No newline at end of file

img/picto_ads.png

0 → 100644
+2,57 ko
Chargement de la diff d'image…

img/picto_ads_on.png

0 → 100644
+2,66 ko
Chargement de la diff d'image…

lang/hal_pub_en.php

0 → 100644
+68 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
<?php
// This is a SPIP language file  --  Ceci est un fichier langue de SPIP

if (!defined('_ECRIRE_INC_VERSION')) return;

$GLOBALS[$GLOBALS['idx_lang']] = array(


	// B
	'but_rechercher' => 'Search',

	// C
	'cfg_titre_parametrages' => 'HAL Configuration',

	// E
	'explication_champs' => '(Optionnal)<br />Fields (coma separated list) to be returned by the HAL request<br />
	<br />If not specified, this list is used: title_s,authFullName_s,docid,label_xml,arxivId_s,halId_s,doiId_s,uri_s,docType_s,submittedDateY_i',
	'explication_types_document' => '(Optionnal)<br />Restrict to these document types (coma separated list)<br />Example: ART,OUV,DOUV,COUV<br />
	<br />If not specified, all types are returned',
	'explication_url_depot' => '(Optionnal)<br />Example:<br /><a href="https://api.archives-ouvertes.fr/search/CPT/">https://api.archives-ouvertes.fr/search/CPT/</a><br />
	<br />If not specified, the generic HAL URL is used <a href="https://api.archives-ouvertes.fr/search/">https://api.archives-ouvertes.fr/search/</a>',
	'explication_pagination' => 'Number of publications displayed per page.',

	// F
	'filtre_annee' => 'Year',
	'filtre_annee_intro' => 'All years',
	'filtre_pub' => 'Type of publication',
	'filtre_pub_intro' => 'All types',
	'filtre_equipe' => 'Team',
	'filtre_equipe_intro' => 'All teams',

	// H
	'hal_pub_titre' => 'HAL Publications',

	// L
	'label_champs' => 'Fields to be returned',
	'label_pagination' => 'Pagination',
	'label_types_document' => 'Document types',
	'label_url_depot' => 'URL of your HAL repository',

	// R
	'recherche_0' => 'No results',
	'recherche_1' => '1 resultat',
	'recherche_plus' => '@nb@ results',

	// T
	'titre_page_configurer_hal_pub' => 'HAL parameters',
	'type_pub_ART' => 'Article',
	'type_pub_COMM' => 'Proceedings',
	'type_pub_COUV' => 'Book section',
	'type_pub_DOUV' => 'Book direction',
	'type_pub_HDR' => 'HDR',
	'type_pub_LECTURE' => 'Lecture',
	'type_pub_MEM' => 'Student reports',
	'type_pub_OTHER' => 'Other',
	'type_pub_OUV' => 'Book',
	'type_pub_PATENT' => 'Patent',
	'type_pub_POSTER' => 'Poster',
	'type_pub_REPORT' => 'Report',
	'type_pub_THESE' => 'Thesis',
	'type_pub_UNDEFINED' => 'Preprint',
	'type_pub_VIDEO' => 'Vidoo',

);



+2 −1
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -37,7 +37,7 @@
#SET{url_depot,#GET{url_depot}|concat{&sort=producedDate_tdate%20desc}

[(#REM))<!-- etape 4: ajout des champs que l'on souhaite lister -->]
#SET{fields, #CONFIG{hal_pub/champs}|sinon{'title_s,authFullName_s,docid,label_xml,arxivId_s,halId_s,doiId_s,uri_s,docType_s,submittedDateY_i'}}
#SET{fields, #CONFIG{hal_pub/champs}|sinon{'title_s,authFullName_s,docid,label_xml,arxivId_s,halId_s,doiId_s,bibcodeId_s,uri_s,docType_s,submittedDateY_i'}}
[(#SET{url_depot,#GET{url_depot}|concat{&fl=#GET{fields}}})]

<!-- Requete generee:  #GET{url_depot} -->
@@ -114,6 +114,7 @@
		  [<div class="hal-hal"><a href="(#VALEUR{uri_s})"><span>HAL</span></a></div>]
		  [<div class="hal-doi"><a href="http://dx.doi.org/(#VALEUR{doiId_s})"><span>DOI</span></a></div>]
		  [<div class="hal-arxiv"><a href="http://arxiv.org/abs/(#VALEUR{arxivId_s})"><span>arXiv</span></a></div>]
		  [<div class="hal-ads"><a href="https://ui.adsabs.harvard.edu/abs/(#VALEUR{bibcodeId_s}|table_valeur{0})"><span>ADS</span></a></div>]
	  </div>
	</div>
	</BOUCLE_doc>