Modulo:Controllo di autorità/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
riordinate le funzioni in base alla configurazione, commentate le inutilizzate
casi da string.format
Riga 13:
return false
end
return string.format( '[http://viaf.org/viaf/%s %s]' .., id .. ' ' .., id .. ']')
end
 
Riga 48:
if not id then
return false
end
return string.format( '[http://isni.org/isni/'%s ..%s id%s ..%s %s]', ' ..id, id:sub( 1, 4 ) .. ' ' .., id:sub( 5, 8 ) .. ' ' .., id:sub( 9, 12 ) .. ' ' .., id:sub( 13, 16 ) .. ']')
end
 
Riga 56:
return false
end
return string.format( '[http://opac.sbn.it/opacsbn/opac/iccu/scheda_authority.jsp?bid=%s %s]' .., id .. ' ' .., id .. ']')
end
 
Riga 83:
local lccnType = parts[1] ~= 'sh' and 'names' or 'subjects'
id = parts[1] .. parts[2] .. append( parts[3], '0', 6 )
return string.format( '[http://id.loc.gov/authorities/%s/%s %s]' .., lccnType .. '/' .., id .. ' ' .., id .. ']')
end
 
Riga 92:
end
id = id:sub( 1, 4 ) .. '-' .. id:sub( 5, 8 ) .. '-' .. id:sub( 9, 12 ) .. '-' .. id:sub( 13, 16 )
return string.format( '[http://orcid.org/%s %s]' .., id .. ' ' .., id .. ']')
end
 
local function gndLink( id )
return string.format( '[http://d-nb.info/gnd/%s %s]' .., id .. ' ' .., id .. ']')
end
 
Riga 105:
end
 
return string.format( '[http://catalogue.bnf.fr/ark:/12148/'%s .. id .. ' ' .. id .. '%s] [http://data.bnf.fr/ark:/12148/%s (data)]', ..id, id, ..id ' (data)]'
end
 
local function ulanLink( id )
return string.format( '[//www.getty.edu/vow/ULANFullDisplay?find=&role=&nation=&subjectid=%s %s]' .., id .. ' ' .., id .. ']')
end
 
local function nlaLink( id )
return string.format( '[//nla.gov.au/anbd.aut-an%s %s]' .., id .. ' ' .., id .. ']')
end
 
Riga 127:
return false
end
return string.format( '[http://thesaurus.cerl.org/record/%s %s]' .., id .. ' ' .., id .. ']')
end