Diferencia entre revisiones de «Módulo:Citas»

Contenido eliminado Contenido añadido
Xaosflux (discusión · contribs.)
m El filtro no permite guardar una página que posea "amazon.com", enlace el cual genera el parámetro "asin", no me parece necesario ya que es inutilizable.)
Línea 248:
end
return table.concat({ "[", URL, " ", safeforurl( label ), "]", error_str });
end
 
-- Formats a link to Amazon
function amazon(id, domain)
if not is_set(domain) then
domain = "com"
elseif ( "jp" == domain or "uk" == domain ) then
domain = "co." .. domain
end
local handler = cfg.id_handlers['ASIN'];
return externallinkid({link = handler.link,
label=handler.label , prefix="http://www.amazon."..domain.."/dp/",id=id,
encode=handler.encode, separator = handler.separator})
end
 
Línea 800 ⟶ 787:
elseif k == 'DOI' then
table.insert( new_list, {handler.label, doi( v, options.DoiBroken ) } );
elseif k == 'ASIN' then
table.insert( new_list, {handler.label, amazon( v, options.ASINTLD ) } );
elseif k == 'LCCN' then
table.insert( new_list, {handler.label, lccn( v ) } );
Línea 1197 ⟶ 1182:
local DoiBroken = A['DoiBroken'];
local ID = A['ID'];
local ASINTLD = A['ASINTLD'];
local IgnoreISBN = A['IgnoreISBN'];
local Embargo = A['Embargo'];
Línea 1951 ⟶ 1935:
end
 
Lista_Identificadores_Formateados = buildidlist( ID_list, {DoiBroken = DoiBroken, ASINTLD = ASINTLD, IgnoreISBN = IgnoreISBN, Embargo=Embargo, ISBNCorrecto = ISBNCorrecto, ISBNSugerido = ISBNSugerido} );
if is_set(URL) then