יחידה:בקרת זהויות: הבדלים בין גרסאות בדף

אין תקציר עריכה
מ 3 גרסאות של הדף wikipedia:he:יחידה:בקרת_זהויות יובאו
 
(46 גרסאות ביניים של 10 משתמשים אינן מוצגות)
שורה 16: שורה 16:
return ''
return ''
    else
    else
return  
return ''
    end
    end
end
end
שורה 39: שורה 39:


local catName = 'ויקיפדיה: ערכים עם מזהה '..(specialCat or id)..' שגוי'
local catName = 'ויקיפדיה: ערכים עם מזהה '..(specialCat or id)..' שגוי'
return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[Category:'..catName..']]'..p.redCatLink(catName)..'\n'
return '* <span class="error">The '..id..' id '..rawValue..' is not valid.</span>[[Category:'..catName..']]'..'\n'
end
end


שורה 45: שורה 45:
--[[                      Property formatting functions                      ]]
--[[                      Property formatting functions                      ]]
--[[==========================================================================]]
--[[==========================================================================]]
function p.iciaLink( id )
--P1736's format regex: \d+ (e.g. 1)
if not id:match( '^%d+$' ) then
return false
end
return '[https://www.imj.org.il/artcenter/newsite/he/?artist='..id..' '..id..']'..p.getCatForId( 'ICIA' )
end


function p.aagLink( id )
function p.aagLink( id )
שורה 63: שורה 71:


function p.adbLink( id )
function p.adbLink( id )
--P1907's format regex: [a-z][-a-z]+-([1-2]\d|[1-9])\d{0,3} (e.g. barton-sir-edmund-toby-71)
--P1907's format regex: [a-z][-a-z]+-([1-3]\d|[1-9])\d{0,3} (e.g. barton-sir-edmund-toby-71)
if not id:match( '^[a-z][-a-z]+-[1-2]%d%d?%d?%d?$' ) and
if not id:match( '^[a-z][-a-z]+-[1-3]%d%d?%d?%d?$' ) and
  not id:match( '^[a-z][-a-z]+-[1-9]%d?%d?%d?$' ) then
  not id:match( '^[a-z][-a-z]+-[1-9]%d?%d?%d?$' ) then
return false
return false
שורה 259: שורה 267:
end
end


function p.iciaLink( id )
--P1736's format regex: \d+ (e.g. 1)
if not id:match( '^%d+$' ) then
return false
end
return '[https://www.imj.org.il/artcenter/newsite/he/?artist='..id..' '..id..']'..p.getCatForId( 'ICIA' )
end


function p.isniLink( id )
function p.isniLink( id )
שורה 463: שורה 464:
return '[http://uli.nli.org.il/F/?func=direct&doc_number='..id..'&local_base=nlx10'..' '..id..']'..p.getCatForId( 'NLI' )
return '[http://uli.nli.org.il/F/?func=direct&doc_number='..id..'&local_base=nlx10'..' '..id..']'..p.getCatForId( 'NLI' )
end
end
function p.nliLinkNew( id )
--P8189's format
if not id:match( '^9870[01]%d%d%d%d%d%d%d%d05171$' ) then
return false
end
return '[http://uli.nli.org.il/F/?func=find-b&local_base=NLX10&find_code=UID&request='..id..' '..id ..']'..p.getCatForId( 'J9U' )
end


function p.nlkLink( id )
function p.nlkLink( id )
--P5034's format regex: KA.(19|20).{7} (e.g. KAC201501465)
--P5034's format regex: (KAB|KAC|KSH)([0-9]{4}|[0-9]{4}[a-zA-Z])[0-9]{4,6} (e.g. KAC199616693, KAC2018L4645 or KSH1998000151)
if not id:match( '^KA.19.......$' ) and
if not id:match( '^KA[BC]%d%d%d%d[a-zA-Z]?%d%d%d%d%d?%d?$' ) and
  not id:match( '^KA.20.......$' ) then
  not id:match( '^KSH%d%d%d%d[a-zA-Z]?%d%d%d%d%d?%d?$' ) then
return false
return false
end
end
return '[https://nl.go.kr/authorities/resource/'..id..' '..id..']'..p.getCatForId( 'NLK' )
return '[https://lod.nl.go.kr/resource/'..id..' '..id..']'..p.getCatForId( 'NLK' )
end
end


שורה 564: שורה 573:


function p.iccuLink( id )
function p.iccuLink( id )
--P396's format regex: IT\\ICCU\\(\d{10}|\D\D[\D\d]\D\\\d{6}) (e.g. IT\ICCU\CFIV\000163)
--P396's format regex: \D{2}[A-Z0-3]V\d{6} (e.g. CUBV039952)
if not id:match( '^IT\\ICCU\\%d%d%d%d%d%d%d%d%d%d$' ) and
if not id:match( '^%u%u[A-Z0-3]V%d%d%d%d%d%d' ) then
  not id:match( '^IT\\ICCU\\%u%u[%u%d]%u\\%d%d%d%d%d%d$' ) then --legacy: %u used here instead of %D (but the faulty ID cat is empty, out of ~12k uses)
return false
return false
end
end
return '[https://opac.sbn.it/opacsbn/opac/iccu/scheda_authority.jsp?bid='..id..' '..id..']'..p.getCatForId( 'ICCU' ) end
return '[https://opac.sbn.it/nome/'..id..' '..id..']'..p.getCatForId( 'ICCU' ) end


function p.selibrLink( id )
function p.selibrLink( id )
שורה 856: שורה 864:
-- Parameter format: { 'parameter name', 'label', propertyId # in Wikidata, formatting/validation function }
-- Parameter format: { 'parameter name', 'label', propertyId # in Wikidata, formatting/validation function }
p.conf = {
p.conf = {
{ 'AAG', '[[Auckland Art Gallery Toi o Tāmaki|AAG]]', 3372, p.aagLink },
{ 'ICIA', '[[מרכז המידע לאמנות ישראלית|ICIA]]', 1736, p.iciaLink },
{ 'NLIj9u', '[[הספרייה הלאומית|NLI]]', 8189, p.nliLinkNew },
{ 'NLI', '[[הספרייה הלאומית|NLI]]', 949, p.nliLink },
{ 'AAG', '[[גלריית האומנות טואי או טאמאקי באוקלנד|AAG]]', 3372, p.aagLink },
{ 'ACM-DL', '[[Association for Computing Machinery#Portal and Digital Library|ACM DL]]', 864, p.acmLink },
{ 'ACM-DL', '[[Association for Computing Machinery#Portal and Digital Library|ACM DL]]', 864, p.acmLink },
{ 'ADB', '[[Australian Dictionary of Biography|ADB]]', 1907, p.adbLink },
{ 'ADB', '[[Australian Dictionary of Biography|ADB]]', 1907, p.adbLink },
שורה 870: שורה 881:
{ 'Botanist', '[[Author citation (botany)|Botanist]]', 428, p.botanistLink },
{ 'Botanist', '[[Author citation (botany)|Botanist]]', 428, p.botanistLink },
{ 'BPN', '[[Biografisch Portaal|BPN]]', 651, p.bpnLink },
{ 'BPN', '[[Biografisch Portaal|BPN]]', 651, p.bpnLink },
{ 'CANTIC', '[[Name and Title Authority File of Catalonia|CANTIC]]', 1273, p.canticLink },
{ 'CANTIC', '[[מיון השמות והתארים של קטלוניה|CANTIC]]', 1273, p.canticLink },
{ 'CINII', '[[CiNii]]', 271, p.ciniiLink },
{ 'CINII', '[[CiNii]]', 271, p.ciniiLink },
{ 'CWGC', '[[CWGC (identifier)|CWGC]]', 1908, p.cwgcLink },
{ 'CWGC', '[[CWGC (identifier)|CWGC]]', 1908, p.cwgcLink },
{ 'DAAO', '[[Dictionary of Australian Artists|DAAO]]', 1707, p.daaoLink },
{ 'DAAO', '[[Dictionary of Australian Artists|DAAO]]', 1707, p.daaoLink },
{ 'DBLP', '[[DBLP]]', 2456, p.dblpLink },
{ 'DBLP', '[[DBLP]]', 2456, p.dblpLink },
{ 'DSI', '[[Stuttgart Database of Scientific Illustrators 1450–1950|DSI]]', 2349, p.dsiLink },
{ 'DSI', '[[מאגר המאיירים המדעיים של שטוטגרט 1450–1950|DSI]]', 2349, p.dsiLink },
{ 'FNZA', '[[:d:Property:P6792|FNZA]]', 6792, p.fnzaLink },
{ 'FNZA', '[[:d:Property:P6792|FNZA]]', 6792, p.fnzaLink },
{ 'GND', '[[קובץ בקרה משולב|GND]]', 227, p.gndLink },
{ 'GND', '[[קובץ בקרה משולב|GND]]', 227, p.gndLink },
{ 'HDS', '[[מילון היסטורי של שווייץ|HDS]]', 902, p.hdsLink },
{ 'HDS', '[[מילון היסטורי של שווייץ|HDS]]', 902, p.hdsLink },
{ 'IAAF', '[[התאחדות האתלטיקה הבינלאומית|World Athletics]]', 1146, p.iaafLink },
{ 'IAAF', '[[התאחדות האתלטיקה הבין-לאומית|World Athletics]]', 1146, p.iaafLink },
{ 'ICCU', '[[ICCU]]', 396, p.iccuLink }, --formerly SBN
{ 'ICCU', '[[המכון המרכזי לקטלוג אחיד|ICCU]]', 396, p.iccuLink }, --formerly SBN
{ 'ICIA', '[[מרכז המידע לאמנות ישראלית|ICIA]]', 1736, p.iciaLink },
{ 'ISNI', '[[תקן בין-לאומי למזהי שמות|ISNI]]', 213, p.isniLink },
{ 'ISNI', '[[תקן בינלאומי למזהי שמות|ISNI]]', 213, p.isniLink },
{ 'Joconde', '[[Joconde]]' , 347, p.jocondeLink },
{ 'Joconde', '[[Joconde]]' , 347, p.jocondeLink },
{ 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink },
{ 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink },
{ 'LCCN', '[[שיטת ספריית הקונגרס|LCCN]]', 244, p.lccnLink },
{ 'LCCN', '[[שיטת ספריית הקונגרס|LCCN]]', 244, p.lccnLink },
{ 'LIR', '[[מילון היסטורי של שווייץ|LIR]]', 886, p.lirLink },
{ 'LIR', '[[מילון היסטורי של שווייץ|LIR]]', 886, p.lirLink },
{ 'LNB', '[[הספרייה הלאומית של Latvia|LNB]]', 1368, p.lnbLink },
{ 'LNB', '[[הספרייה הלאומית של לטביה|LNB]]', 1368, p.lnbLink },
{ 'Léonore', '[[Base Léonore|Léonore]]', 640, p.leonoreLink },
{ 'Léonore', '[[Base Léonore|Léonore]]', 640, p.leonoreLink },
{ 'MBA', '[[MusicBrainz]]', 434, p.mbaLink, category = 'MusicBrainz' }, --special category name
{ 'MBA', '[[MusicBrainz]]', 434, p.mbaLink, category = 'MusicBrainz' }, --special category name
שורה 901: שורה 911:
{ 'NCL', '[[National Central Library|NCL]]', 1048, p.nclLink },
{ 'NCL', '[[National Central Library|NCL]]', 1048, p.nclLink },
{ 'NDL', '[[ספריית הדיאט הלאומית|NDL]]', 349, p.ndlLink },
{ 'NDL', '[[ספריית הדיאט הלאומית|NDL]]', 349, p.ndlLink },
{ 'NGV', '[[National Gallery of Victoria|NGV]]', 2041, p.ngvLink },
{ 'NGV', '[[הגלריה הלאומית של ויקטוריה|NGV]]', 2041, p.ngvLink },
{ 'NKC', '[[הספרייה הלאומית של צ&#39;כיה|NKC]]', 691, p.nkcLink },
{ 'NKC', '[[הספרייה הלאומית של צ&#39;כיה|NKC]]', 691, p.nkcLink },
{ 'NLA', '[[הספרייה הלאומית של אוסטרליה|NLA]]', 409, p.nlaLink },
{ 'NLA', '[[הספרייה הלאומית של אוסטרליה|NLA]]', 409, p.nlaLink },
{ 'NLG', '[[הספרייה הלאומית של יוון|NLG]]', 3348, p.nlgLink },
{ 'NLG', '[[הספרייה הלאומית של יוון|NLG]]', 3348, p.nlgLink },
{ 'NLI', '[[הספרייה הלאומית|NLI]]', 949, p.nliLink },
{ 'NLK', '[[הספרייה הלאומית של קוריאה|NLK]]', 5034, p.nlkLink },
{ 'NLK', '[[הספרייה הלאומית של קוריאה|NLK]]', 5034, p.nlkLink },
{ 'NLP', '[[הספרייה הלאומית של פולין|NLP]]', 1695, p.nlpLink },
{ 'NLP', '[[הספרייה הלאומית של פולין|NLP]]', 1695, p.nlpLink },
שורה 914: שורה 923:
{ 'PIC', '[[:d:Q23892012|PIC]]', 2750, p.picLink },
{ 'PIC', '[[:d:Q23892012|PIC]]', 2750, p.picLink },
{ 'RID', '[[ResearcherID]]', 1053, p.ridLink },
{ 'RID', '[[ResearcherID]]', 1053, p.ridLink },
{ 'RERO', '[[RERO (Library Network of Western Switzerland)|RERO]]', 3065, p.reroLink },
{ 'RERO', '[[רשת הספריות של מערב שווייץ|RERO]]', 3065, p.reroLink },
{ 'RKDartists', '[[המכון ההולנדי להיסטוריה של האמנות|RKD]]', 650, p.rkdartistsLink },
{ 'RKDartists', '[[המכון ההולנדי להיסטוריה של האמנות|RKD]]', 650, p.rkdartistsLink },
{ 'RKDID', '[[המכון ההולנדי להיסטוריה של האמנות|RKDimages ID]]', 350, p.rkdidLink },
{ 'RKDID', '[[המכון ההולנדי להיסטוריה של האמנות|RKDimages ID]]', 350, p.rkdidLink },
שורה 924: שורה 933:
{ 'S2AuthorId', '[[Semantic Scholar|S2AuthorId]]', 4012, p.s2authoridLink, category = 'Semantic Scholar author' }, --special category name
{ 'S2AuthorId', '[[Semantic Scholar|S2AuthorId]]', 4012, p.s2authoridLink, category = 'Semantic Scholar author' }, --special category name
{ 'TA98', '[[Terminologia Anatomica|TA98]]', 1323, p.ta98Link },
{ 'TA98', '[[Terminologia Anatomica|TA98]]', 1323, p.ta98Link },
{ 'TDVİA', '[[İslâm Ansiklopedisi|TDVİA]]', 7314, p.tdviaLink },
{ 'TDVİA', '[[האנציקלופדיה של האסלאם|TDVİA]]', 7314, p.tdviaLink },
{ 'TE', '[[Terminologia Embryologica|TE]]', 1693, p.teLink },
{ 'TE', '[[Terminologia Embryologica|TE]]', 1693, p.teLink },
{ 'TePapa', '[[Museum of New Zealand Te Papa Tongarewa|TePapa]]', 3544, p.tepapaLink },
{ 'TePapa', '[[המוזיאון של ניו זילנד טה פאפה טונגרווה|TePapa]]', 3544, p.tepapaLink },
{ 'TH', '[[Terminologia Histologica|TH]]', 1694, p.thLink },
{ 'TH', '[[Terminologia Histologica|TH]]', 1694, p.thLink },
{ 'TLS', '[[Theaterlexikon der Schweiz|TLS]]', 1362, p.tlsLink },
{ 'TLS', '[[Theaterlexikon der Schweiz|TLS]]', 1362, p.tlsLink },
שורה 933: שורה 942:
{ 'ULAN', '[[Union List of Artist Names|ULAN]]', 245, p.ulanLink },
{ 'ULAN', '[[Union List of Artist Names|ULAN]]', 245, p.ulanLink },
{ 'USCongress', '[[המדריך הביוגרפי של הקונגרס של ארצות הברית|US Congress]]', 1157, p.uscongressLink },
{ 'USCongress', '[[המדריך הביוגרפי של הקונגרס של ארצות הברית|US Congress]]', 1157, p.uscongressLink },
{ 'VcBA', '[[VcBA]]', 8034, p.vcbaLink },
{ 'VcBA', '[[ספריית הוותיקן|VcBA]]', 8034, p.vcbaLink },
{ 'VIAF', '[[VIAF]]', 214, p.viafLink },
{ 'VIAF', '[[VIAF]]', 214, p.viafLink },
{ 'WORLDCATID', '[[WorldCat]]', 7859, nil },
{ 'WORLDCATID', '[[WorldCat]]', 7859, nil },
שורה 1,005: שורה 1,014:
else
else
itemId = mw.wikibase.getEntityIdForCurrentPage()
itemId = mw.wikibase.getEntityIdForCurrentPage()
end
--experiment as requested in מזנון
if (parentArgs['purple'] == 'yes') then
itemId = parentArgs['qid']
end
end
שורה 1,027: שורה 1,041:
parentArgs[params[1]] = wikidataIds[1]
parentArgs[params[1]] = wikidataIds[1]
end end end end end end end
end end end end end end end
-- dont show both NLI and NLIj9u
if parentArgs.NLI and parentArgs.NLIj9u then
parentArgs.NLI = ''
end
--Configured rows
--Configured rows
שורה 1,037: שורה 1,057:
end
end
end
end
 
--WorldCat
--WorldCat
local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID']
local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID']
שורה 1,067: שורה 1,087:
local Navbox = require('Module:Navbox')
local Navbox = require('Module:Navbox')
local elementsCat = ''
local elementsCat = ''
if rct == 0 or rct >= 25 then
if (rct == 0 or rct >= 25) and (namespace == 0) then
local eCat = 'בקרת זהויות עם '..rct..' פריטים'
local eCat = 'בקרת זהויות עם '..rct..' פריטים'
elementsCat  = '[[Category:'..eCat..']]'..p.redCatLink(eCat)
elementsCat  = '[[Category:'..eCat..']]'..p.redCatLink(eCat)
שורה 1,076: שורה 1,096:
local args = { pid = 'identifiers' } -- #target the list of identifiers
local args = { pid = 'identifiers' } -- #target the list of identifiers
if testcases and itemId then args = { pid = 'identifiers', qid = itemId } end --expensive
if testcases and itemId then args = { pid = 'identifiers', qid = itemId } end --expensive
local pencilLink = mw.title.makeTitle( 0, itemId, '', 'wikidata' ):fullUrl('uselang=he')
local pencil = ''
local pencil = mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', pencilLink)
if itemId then
local pencilLink = mw.title.makeTitle( 0, itemId, '', 'wikidata' ):fullUrl('uselang=he')
pencil = mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', pencilLink)
end
outString = Navbox._navbox( {
outString = Navbox._navbox( {
name  = 'בקרת זהויות',
name  = 'בקרת זהויות',