יחידה:בקרת זהויות: הבדלים בין גרסאות בדף
אין תקציר עריכה |
מ 3 גרסאות של הדף wikipedia:he:יחידה:בקרת_זהויות יובאו |
||
| (39 גרסאות ביניים של 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..']]' | 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- | --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- | 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.isniLink( id ) | function p.isniLink( id ) | ||
| שורה 462: | שורה 463: | ||
end | end | ||
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 | |||
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 | end | ||
function p.nlkLink( id ) | function p.nlkLink( id ) | ||
--P5034's format regex: | --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 | if not id:match( '^KA[BC]%d%d%d%d[a-zA-Z]?%d%d%d%d%d?%d?$' ) and | ||
not id:match( '^ | 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 | 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: | --P396's format regex: \D{2}[A-Z0-3]V\d{6} (e.g. CUBV039952) | ||
if not id:match( '^ | if not id:match( '^%u%u[A-Z0-3]V%d%d%d%d%d%d' ) then | ||
return false | return false | ||
end | end | ||
return '[https://opac.sbn.it/ | 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 = { | ||
{ 'ICIA', '[[מרכז המידע לאמנות ישראלית|ICIA]]', 1736, p.iciaLink }, | |||
{ 'NLIj9u', '[[הספרייה הלאומית|NLI]]', 8189, p.nliLinkNew }, | |||
{ 'NLI', '[[הספרייה הלאומית|NLI]]', 949, p.nliLink }, | |||
{ 'AAG', '[[גלריית האומנות טואי או טאמאקי באוקלנד|AAG]]', 3372, p.aagLink }, | { '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 }, | ||
| שורה 875: | שורה 886: | ||
{ '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', '[[ | { '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', '[[התאחדות האתלטיקה | { 'IAAF', '[[התאחדות האתלטיקה הבין-לאומית|World Athletics]]', 1146, p.iaafLink }, | ||
{ 'ICCU', '[[המכון המרכזי לקטלוג אחיד|ICCU]]', 396, p.iccuLink }, --formerly SBN | { 'ICCU', '[[המכון המרכזי לקטלוג אחיד|ICCU]]', 396, p.iccuLink }, --formerly SBN | ||
{ 'ISNI', '[[תקן בין-לאומי למזהי שמות|ISNI]]', 213, p.isniLink }, | |||
{ 'ISNI', '[[תקן | |||
{ 'Joconde', '[[Joconde]]' , 347, p.jocondeLink }, | { 'Joconde', '[[Joconde]]' , 347, p.jocondeLink }, | ||
{ 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink }, | { 'KULTURNAV', '[[KulturNav]]', 1248, p.kulturnavLink }, | ||
| שורה 905: | שורה 915: | ||
{ 'NLA', '[[הספרייה הלאומית של אוסטרליה|NLA]]', 409, p.nlaLink }, | { 'NLA', '[[הספרייה הלאומית של אוסטרליה|NLA]]', 409, p.nlaLink }, | ||
{ 'NLG', '[[הספרייה הלאומית של יוון|NLG]]', 3348, p.nlgLink }, | { 'NLG', '[[הספרייה הלאומית של יוון|NLG]]', 3348, p.nlgLink }, | ||
{ 'NLK', '[[הספרייה הלאומית של קוריאה|NLK]]', 5034, p.nlkLink }, | { 'NLK', '[[הספרייה הלאומית של קוריאה|NLK]]', 5034, p.nlkLink }, | ||
{ 'NLP', '[[הספרייה הלאומית של פולין|NLP]]', 1695, p.nlpLink }, | { 'NLP', '[[הספרייה הלאומית של פולין|NLP]]', 1695, p.nlpLink }, | ||
| שורה 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', '[[ | { 'TDVİA', '[[האנציקלופדיה של האסלאם|TDVİA]]', 7314, p.tdviaLink }, | ||
{ 'TE', '[[Terminologia Embryologica|TE]]', 1693, p.teLink }, | { 'TE', '[[Terminologia Embryologica|TE]]', 1693, p.teLink }, | ||
{ 'TePapa', '[[המוזיאון של ניו זילנד טה פאפה טונגרווה|TePapa]]', 3544, p.tepapaLink }, | { 'TePapa', '[[המוזיאון של ניו זילנד טה פאפה טונגרווה|TePapa]]', 3544, p.tepapaLink }, | ||
| שורה 1,009: | שורה 1,018: | ||
--experiment as requested in מזנון | --experiment as requested in מזנון | ||
if (parentArgs['purple'] == 'yes') then | if (parentArgs['purple'] == 'yes') then | ||
itemId = parentArgs['qid'] | |||
end | end | ||
| שורה 1,032: | שורה 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,042: | שורה 1,057: | ||
end | end | ||
end | end | ||
--WorldCat | --WorldCat | ||
local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID'] | local worldcatId = parentArgs['worldcatid'] or parentArgs['WORLDCATID'] | ||
| שורה 1,072: | שורה 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,081: | שורה 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 = '' | ||
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 = 'בקרת זהויות', | ||