Module:Authority control: Διαφορά μεταξύ των αναθεωρήσεων

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
Spiros790 (συζήτηση | Συνεισφορές)
Χωρίς σύνοψη επεξεργασίας
Nikosguard (συζήτηση | Συνεισφορές)
Χωρίς σύνοψη επεξεργασίας
 
Γραμμή 5:
local namespace = title.namespace
if namespace == 0 then
return '[[Category:ΛήμματαΠεριεχόμενο ΒικιπαίδειαςΒικιφθεγμάτων με αναγνωριστικά ' .. id .. ']]'
elseif namespace == 2 and not title.isSubpage then
return '[[Category:Σελίδες χρηστών με αναγνωριστικά ' .. id .. ']]'
Γραμμή 18:
end
return '[https://viaf.org/viaf/' .. id .. ' ' .. id .. ']' .. getCatForId( 'VIAF' )
end
 
local function BNeditionLink( id )
return '[http://www.biblionet.gr/main.asp?page=showbook&bookid=' .. id .. ' ' .. id .. ']' .. getCatForId( 'BiblioNet' )
end
 
local function BNpersonLink( id )
return '[http://www.biblionet.gr/main.asp?page=showauthor&personsid=' .. id .. ' ' .. id .. ']' .. getCatForId( 'BiblioNet' )
end
 
local function BNpublisherLink( id )
return '[http://www.biblionet.gr/com/' .. id .. ' ' .. id .. ']'.. getCatForId( 'BiblioNet' )
end
 
Γραμμή 190 ⟶ 202 :
return false
end
return '[http://isni-url.oclc.nl/isniorg/' .. id .. ' ' .. id:sub( 1, 4 ) .. ' ' .. id:sub( 5, 8 ) .. ' ' .. id:sub( 9, 12 ) .. ' ' .. id:sub( 13, 16 ) .. ']' .. getCatForId( 'ISNI' )
end
 
Γραμμή 293 ⟶ 305 :
--In this order: name of the parameter, label, propertyId in Wikidata, formatting function
local conf = {
{ 'VIAF', '[[w:el:Virtual International Authority File|VIAF]]', 214, viafLink },
{ 'LCCNBNed', '[[Library of Congress Control Numberw:el:BiblioNet|LCCNBiblioNet]]', 2442187, lccnLinkBNeditionLink },
{ 'ISNIBNper', '[[International Standard Name Identifierw:el:BiblioNet|ISNIBiblioNet]]', 2132188, isniLinkBNpersonLink },
{ 'ORCIDBNpub', '[[ORCIDw:el:BiblioNet|BiblioNet]]', 4962189, orcidLinkBNpublisherLink },
{ 'GNDLCCN', '[[Integratedw:el:Library Authorityof FileCongress Control Number|GNDLCCN]]', 227244, gndLinklccnLink },
{ 'SELIBRISNI', '[[LIBRISw:el:International Standard Name Identifier|SELIBRISNI]]', 906213, selibrLinkisniLink },
{ 'SUDOCORCID', '[[Système universitaire de documentation|SUDOCw:el:ORCID]]', 269496, sudocLinkorcidLink },
{ 'BNFGND', '[[Bibliothèquew:el:Integrated nationaleAuthority de FranceFile|BNFGND]]', 268227, bnfLinkgndLink },
{ 'BPNSELIBR', '[[Biografisch Portaalw:el:LIBRIS|BPNSELIBR]]', 651906, bpnLinkselibrLink },
{ 'RIDSUDOC', '[[ResearcherIDw:el:Système universitaire de documentation|SUDOC]]', 1053269, ridLinksudocLink },
{ 'BIBSYSBNF', '[[BIBSYSw:el:Bibliothèque nationale de France|BNF]]', 1015268, bibsysLinkbnfLink },
{ 'ULANBPN', '[[Unionw:el:Biografisch List of Artist NamesPortaal|ULANBPN]]', 245651, ulanLinkbpnLink },
{ 'HDSRID', '[[Historical Dictionary of Switzerland|HDSw:el:ResearcherID]]', 9021053, hlsLinkridLink },
{ 'LIRBIBSYS', '[[Historical Dictionary of Switzerland#Lexicon_Istoric_Retic|LIRw:el:BIBSYS]]', 8861015, lirLinkbibsysLink },
{ 'MBAULAN', '[[MusicBrainzw:el:Union List of Artist Names|ULAN]]', 434245, mbLinkulanLink },
{ 'MGPHDS', '[[Mathematicsw:el:Historical GenealogyDictionary Projectof Switzerland|MGPHDS]]', 549902, mgpLinkhlsLink },
{ 'NLALIR', '[[Nationalw:el:Historical LibraryDictionary of AustraliaSwitzerland#Lexicon_Istoric_Retic|NLALIR]]', 409886, nlaLinklirLink },
{ 'NDLMBA', '[[National Diet Libraryw:el:MusicBrainz|NDLMusicBrainz]]', 349434, ndlLinkmbLink },
{ 'NCLMGP', '[[Nationalw:el:Mathematics CentralGenealogy LibraryProject|NCLMGP]]', 1048549, nclLinkmgpLink },
{ 'NKCNLA', '[[Nationalw:el:Εθνική LibraryΒιβλιοθήκη ofτης the Czech RepublicΑυστραλίας|NKCNLA]]', 691409, nkcLinknlaLink },
{ 'NDL', '[[w:el:National Diet Library|NDL]]', 349, ndlLink },
{ 'NCL', '[[w:el:National Central Library|NCL]]', 1048, nclLink },
{ 'NKC', '[[w:el:National Library of the Czech Republic|NKC]]', 691, nkcLink },
{ 'Léonore', '[[:fr:Base Léonore|Léonore]]', 640, leonoreLink },
{ 'SBN', '[[w:el:Istituto Centrale per il Catalogo Unico|ICCU]]', 396, sbnLink },
{ 'RLS', '[[w:el:Russian State Library|RLS]]', 947, rslLink },
{ 'Botanist', '[[w:en:Author citation (botany)|Botanist]]', 428, botanistLink },
{ 'NARA-person', '[[w:el:National Archives and Records Administration|NARA]]', 1222, narapersonLink },
{ 'NARA-organization', '[[w:el:National Archives and Records Administration|NARA]]', 1223, naraorganizationLink },
{ 'USCongress', '[[w:el:Biographical Directory of the United States Congress|US Congress]]', 1157, uscongressLink },
{ 'BNE', '[[Bibliotecaw:el:Εθνική NacionalΒιβλιοθήκη deτης EspañaΙσπανίας|BNE]]', 950, bneLink },
{ 'CINII', '[[w:el:CiNii]]', 271, ciniiLink },
{ 'TLS', '[[Theaterlexikon der Schweiz|TLS]]', 01362, tlsLink },
{ 'SIKART', '[[w:el:SIKART]]', 781, sikartLink },
{ 'KULTURNAV', '[[w:el:KulturNav]]', 1248, kulturnavLink },
{ 'RKDartists', '[[w:el:Ολλανδικό Ινστιτούτο Ιστορίας της Τέχνης|RKD]]', 650, rkdartistsLink },
}
 
Γραμμή 334 ⟶ 349 :
 
function p.authorityControl( frame )
local parentArgs = frame:getParent().args{}
--Create rows
local elements = {}
 
--redirect PND to GND
if (parentArgs.GND == nil or parentArgs.GND == '') and parentArgs.PND ~= nil and parentArgs.PND ~= '' then
parentArgs.GND = parentArgs.PND
end
 
--Wikidata fallback if requested
Γραμμή 389 ⟶ 399 :
local elementscats = ''
if rct > 13 then
elementscats = '[[Category:AC withμε ' .. rct .. ' elementsστοιχεία]]'
end
Γραμμή 396 ⟶ 406 :
name = 'Authority control',
bodyclass = 'hlist',
group1 = 'Σύνδεσμοι σε [[w:el:Κατάλογος καθιερωμένων όρων|καταλόγους καθιερωμένων όρων]]' .. elementscats,
list1 = table.concat( elements )
} )