« Module:Biblio/Références » : différence entre les versions

Contenu supprimé Contenu ajouté
Od1n (discussion | contributions)
sigle en majuscules, cf. RAR (format de fichier), Modèle:RAR
Ajout paramètre sbn (Service bibliothécaire national) ; trie des différentes fonctions de base de données externe par ordre alphabétique ; BNF déplacé dans Biblio
Ligne 273 :
end
 
-- fonctions liant des bases de données externes
 
local function databaseExterne( num, lienIinterne, lienExterne, complement, texteAffiche )
if Outils.notEmpty( num ) then
Ligne 305 :
end
 
function References.oclcarxiv( oclcarxiv )
if Outils.trim( arxiv ) then
return databaseExterne( oclc, '[[Online Computer Library Center|OCLC]]', 'worldcat.org/oclc/', '&lang=fr ' )
return databaseExterne( arxiv, '[[arXiv]]', 'arxiv.org/abs/' ):gsub( '%%2F', '/' )
end
end
 
function References.asin( asin )
return databaseExterne( asin, '[[Amazon Standard Identification Number|ASIN]]', 'www.amazon.fr/s/?url=search-alias&lang=fr&field-keywords=' )
end
 
function References.BNFbibcode( framebibcode )
return databaseExterne( zblbibcode, '[[Zentralblatt MATH|zbMATHBibcode]]', 'zbmathadsabs.orgharvard.edu/abs/?q=an:' )
end
 
Ligne 350 ⟶ 360 :
end
 
function References.dnb( dnb )
-- à transférer dans Biblio
return databaseExterne( dnb, '[[Bibliothèque nationale allemande|DNB]]', 'd-nb.info/' )
function References.BNF( frame )
return References.bnf( Outils.extractArgs( frame )[1] )
end
 
function References.lccndoi( lccndoi )
return databaseExterne( lccndoi, '[[NuméroDigital deObject contrôle de la Bibliothèque du CongrèsIdentifier|LCCNDOI]]', 'lccndx.locdoi.govorg/' )
end
 
function References.dnb( dnb )
return databaseExterne( dnb, '[[Bibliothèque nationale allemande|DNB]]', 'd-nb.info/' )
end
 
Ligne 367 ⟶ 372 :
end
 
function References.pmidlccn( pmidlccn )
return databaseExterne( pmidlccn, '[[PubMedNuméro de contrôle de la Bibliothèque du Congrès|PMIDLCCN]]', 'www.ncbi.nlmlccn.nihloc.gov/pubmed/' )
end
 
function References.pmcidmathreviews( pmcidmathreviews )
return databaseExterne( pmcidmathreviews, '[[PubMedMathematical CentralReviews|PMCIDMath Reviews]]', 'www.ncbiams.nlm.nih.gov/pmc/articlesorg/mathscinet-getitem?mr=' )
end
 
function References.doioclc( doioclc )
return databaseExterne( doioclc, '[[DigitalOnline ObjectComputer IdentifierLibrary Center|DOIOCLC]]', 'dx.doiworldcat.org/oclc/', '&lang=fr ' )
end
 
function References.bibcodepmcid( bibcodepmcid )
return databaseExterne( bibcodepmcid, '[[BibcodePubMed Central|PMCID]]', 'adsabswww.harvardncbi.edunlm.nih.gov/pmc/absarticles/' )
end
 
function References.mathreviewspmid( mathreviewspmid )
return databaseExterne( mathreviewspmid, '[[Mathematical ReviewsPubMed|Math ReviewsPMID]]', 'www.amsncbi.orgnlm.nih.gov/pubmed/mathscinet-getitem?mr=' )
end
 
function References.zblsbn( zblsbn )
local id = ( sbn or '' ):upper():gsub( '\\', '' ):gsub( '^ITICCU', '' )
return databaseExterne( zbl, '[[Zentralblatt MATH|zbMATH]]', 'zbmath.org/?q=an:' )
return databaseExterne( id, '[[Service bibliothécaire national]]', 'opac.sbn.it/bid/' )
end
 
function References.arxiv( arxiv )
if Outils.trim( arxiv ) then
return databaseExterne( arxiv, '[[arXiv]]', 'arxiv.org/abs/' ):gsub( '%%2F', '/' )
end
end
 
function References.asin( asin )
return databaseExterne( asin, '[[Amazon Standard Identification Number|ASIN]]', 'www.amazon.fr/s/?url=search-alias&lang=fr&field-keywords=' )
end
 
Ligne 409 ⟶ 405 :
return '[[s:' .. wikisource .. '|lire sur Wikisource]]'
end
end
 
function References.arxivzbl( arxivzbl )
return databaseExterne( oclczbl, '[[OnlineZentralblatt Computer Library CenterMATH|OCLCzbMATH]]', 'worldcatzbmath.org/oclc/', '&lang?q=fr an:' )
end
 
Ligne 459 :
References.oclc( args.oclc ),
References.bnf ( args.bnf ),
References.sbn ( args.sbn ),
References.lccn( args.lccn ),
References.dnb ( args.dnb ),