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

Contenu supprimé Contenu ajouté
160655602 et 189858890 ne devraient plus être nécessaires à la suite de 194575434 dans le Module:Biblio/Ouvrage ; refs discussion
Metamorforme42 (discuter | contributions)
m la typo de dernière minute (pourtant j’avais testé…)
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 178 :
for _, isbn in pairs(getStringStatementValues(entity, 'P957')) do
table.insert(isbns, isbn)
end
if journalEntity then
for _, isbnpublishedin in pairs(getStringStatementValues(journalEntity, 'P212')) do
table.insert(isbns, isbnpublishedin)
end
for _, isbnpublishedin in pairs(getStringStatementValues(journalEntity, 'P957')) do
table.insert(isbns, isbnpublishedin)
end
end
local issns = {}
Ligne 200 ⟶ 208 :
local publisher = wd.formatStatements{entity = entity, property = 'P123', defaultlink = '-'}
local journal = wd.formatStatements{entity = entity , property = 'P1433', defaultlink = '-'}
 
--TODO fix local journalnumber = wd.formatStatements{entity = entity, property = 'P433'}
local numero = ''
--TODO fix local volume = wd.formatStatements{entity = entity, property = 'P478'}
if journalClaims and wd.hasQualifier(journalClaims[1], 'P433') then
numero = wd.getFormattedQualifiers(journalClaims[1], 'P433')
else
local numero = getStringStatementValue(entity, 'P433')
end
 
local volume = ''
if journalClaims and wd.hasQualifier(journalClaims[1], 'P478') then
volume = wd.getFormattedQualifiers(journalClaims[1], 'P478')
else
local volume = getStringStatementValue(entity, 'P478')
end
 
local chapter = ''
if journalClaims and wd.hasQualifier(journalClaims[1], 'P792') then
chapter = wd.getFormattedQualifiers(journalClaims[1], 'P792')
else
local page chapter = getStringStatementValue(entity, 'P304P792')
end
 
local page = ''
if journalClaims and wd.hasQualifier(journalClaims[1], 'P304') then
page = wd.getFormattedQualifiers(journalClaims[1], 'P304')
else
page = getStringStatementValue(entity, 'P304')
end
 
local publishdate = wd.formatStatements{entity = entity, property = 'P577', linktopic = '-'}
Ligne 252 ⟶ 286 :
originalTitle = wd.formatStatements{entity = workEntity, property = 'P1476', numval = 1 } or workEntity:getLabel(originalLanguage)
end
 
local page = getStringStatementValue(entity, 'P304')
local numero = getStringStatementValue(entity, 'P433')
local volume = getStringStatementValue(entity, 'P478')
local citation = wd.formatStatements{entity = entity, property = 'P1683'}
 
Ligne 293 ⟶ 325 :
elseif refType.isArticle[entitytype] then -- article
funtype = cite.article
elseif refType.isChapitre[entitytype] then -- chapitre
funtype = cite.chapitre
else -- default: output a very simple display
local parameters = authors
Ligne 332 ⟶ 366 :
['titre'] = title,
['sous-titre'] = subtitle,
--['volume'] = volume,
['date'] = publishdate,
['lieu'] = publishplace,
['périodique'] = journal,
--['numéro'] = journalnumber,
["numéro d'édition"] = ednumber,
['éditeur'] = publisher,
Ligne 361 ⟶ 393 :
['plume'] = options['plume']
}
if refType.isChapitre[entitytype] and journalClaims then -- chapitre
parameters['titre'] = journal
parameters['sous-titre'] = '' -- TODO
parameters['lien titre'] = '' -- TODO
parameters['auteurs ouvrage'] = '' --TODO
parameters['numéro chapitre'] = chapter
parameters['titre chapitre'] = title
parameters['sous-titre chapitre'] = subtitle
parameters['traduction titre chapitre'] = '' -- TODO
 
 
end
isbns = remove_same_isbn(isbns)