Modulo:Citazione/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
Nessun oggetto della modifica
OAdoi semplice come da discussione
Riga 1 103:
 
local ID_list = extract_ids( args );
 
ID_list = build_id_list( ID_list, {DoiBroken = DoiBroken, IgnoreISBN = IgnoreISBN} );
 
local Station = A['Station'];
if ( isPubblicazione ) then
if not is_set(URL) andthen
if is_set(ID_list['PMC']) then
local Embargo = A['Embargo'];
if is_set(Embargo) then
local lang = mw.getContentLanguage();
local good1, result1, good2, result2;
good1, result1 = pcall( lang.formatDate, lang, 'U', Embargo );
good2, result2 = pcall( lang.formatDate, lang, 'U' );
 
if good1 and good2 and tonumber( result1 ) < tonumber( result2 ) then
URL = "http://www.ncbi.nlm.nih.gov/pmc/articles/PMC" .. ID_list['PMC'];
URLorigin = cfg.id_handlers['PMC'].parameters[1];
end
else
URL = "http://www.ncbi.nlm.nih.gov/pmc/articles/PMC" .. ID_list['PMC'];
URLorigin = cfg.id_handlers['PMC'].parameters[1];
end
elseif is_set(ID_list['DOI']) then
else
URL = "httphttps://wwwoadoi.ncbi.nlm.nih.gov/pmc/articlesorg/PMC" .. ID_list['PMCDOI'];
URLorigin = cfg.id_handlers['PMCDOI'].parameters[1];
end
end
end
ID_list = build_id_list( ID_list, {DoiBroken = DoiBroken, IgnoreISBN = IgnoreISBN} );
 
local Station = A['Station'];
if is_set(Station) then
local wkStation = A['StationLink']