Hopp til innhold

Modul:External links/conf/Autoritetsdata

Fra Wikipedia, den frie encyklopedi


local function bibsys_formatter( id )
	-- return 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&cql=bs.autid+%3D+' .. id .. '&feltselect=bs.autid'
	return 'http://bibsys-almaprimo.hosted.exlibrisgroup.com/primo_library/libweb/action/dlSearch.do?institution=BIBSYS&vid=BIBSYS&search_scope=blended_scope&query=lsr39,exact,' .. id:gsub('^x0*', '')
end

local function snl_formatter( id )
	return "https://snl.no/" .. id
end

local function sde_formatter( id )
	return "https://denstoredanske.lex.dk/" .. id
end

--Returns the ISNI check digit isni must be a string where the 15 first elements are digits
local function getIsniCheckDigit( isni )
	local total = 0
	for i = 1, 15 do
		local digit = isni:byte( i ) - 48 --Get integer value
		total = (total + digit) * 2
	end
	local remainder = total % 11
	local result = (12 - remainder) % 11
	if result == 10 then
		return "X"
	end
	return tostring( result )
end

--Validate ISNI (and ORCID) and retuns it as a 16 characters string or returns false if it's invalid
--See http://support.orcid.org/knowledgebase/articles/116780-structure-of-the-orcid-identifier
local function validateIsni( id )
	id = id:gsub( '[ %-]', '' ):upper()
	if not id:match( '^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d[%dX]$' ) then
		return false
	end
	if getIsniCheckDigit( id ) ~= string.char( id:byte( 16 ) ) then
		return false
	end
	return id
end

local function isni_formatter( id )
	id = validateIsni( id )
	if not id then
		return false
	end
	return 'http://isni.org/' .. id
end

local function bnfdata_formatter( id )
	--Add cb prefix if it has been removed
	if not string.match( id, '^cb.+$' ) then
		id = 'cb' .. id
	end

	return 'http://data.bnf.fr/ark:/12148/' .. id
end

local function nkr_formatter( id )
	return id
end

local configured_claims = {}
configured_claims['nb'] = {
	{ prop='P4342',  message ="$3 [$2 ''$1''] i Store norske leksikon", short="[$2 Store norske leksikon]", langcode ='no', genitiv = true, url_f=snl_formatter }, -- if this exist, then we must make sure it is included
	{ prop='P5080',  message ="$3 [$2 ''$1''] i Norsk biografisk leksikon", short="[$2 Norsk biografisk leksikon]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5081',  message ="$3 [$2 ''$1''] i Norsk kunstnerleksikon", short="[$2 Norsk kunstnerleksikon]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5082',  message ="$3 [$2 ''$1''] i Store medisinske leksikon", short="[$2 Store medisinske leksikon]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P10217',  message ="$3 [$2 ''$1''] i Oslo Byleksikon", short="[$2 Oslo Byleksikon]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P10323',  message ="$3 [$2 ''$1''] i Bergen byleksikon", short="[$2 Bergen byleksikon]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P10436',  message ="$3 [$2 ''$1''] i Drammen byleksikon", short="[$2 Drammen byleksikon]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P10231',  message ="$3 [$2 ''$1''] i Wikistrinda", short="[$2 Wikistrinda]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P6520',  message ="$3 [$2 ''$1''] i Lokalhistoriewiki", short="[$2 Lokalhistoriewiki]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P9121',  message ="$3 [$2 ''$1''] hos Nasjonalmuseet ", short="[$2 Nasjonalmuseet]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P8313',  message ="$3 [$2 ''$1''] i Store Danske Encyklopædi", short="[$2 Store Danske Encyklopædi]", langcode ='da', genitiv = true, url_f=sde_formatter }, -- if this exist, then we must make sure it is included
	{ prop='P8341',  message ="$3 [$2 ''$1''] i Dansk biografisk leksikon", short="[$2 Dansk biografisk leksikon]", langcode ='da', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P7939',  message ="$3 [$2 ''$1''] i Dansk kvindebiografisk leksikon", short="[$2 Dansk kvindebiografisk leksikon]", langcode ='da', genitiv = true }, -- if this exist, then we must make sure it is included

	{ prop='P9466',  message ="$3 [$2 ''$1''] i Gyldendals Teaterleksikon", short="[$2 Gyldendals Teaterleksikon]", langcode ='da', genitiv = true }, -- if this exist, then we must make sure it is included

	{ prop='P3217',  message ="$3 [$2 ''$1''] i Svenskt biografiskt lexikon", short="[$2 Svenskt biografiskt lexikon]", langcode ='sv', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P4963',  message ="$3 [$2 ''$1''] i Svenskt kvinnobiografiskt lexikon", short="[$2 Svenskt kvinnobiografiskt lexikon]", langcode ='sv', genitiv = true }, -- if this exist, then we must make sure it is included

	{ prop='P5147',  message ="$3 [$2 ''$1''] hos Svenskt översättarlexikon", short="[$2 Svenskt översättarlexikon]", langcode ='sv', genitiv = true }, -- if this exist, then we must make sure it is included

	{ prop='P5101',  message ="$3 [$2 ''$1''] hos Svenske Litteraturbanken", short="[$2 Svenske Litteraturbanken]", langcode ='sv', genitiv = true }, -- if this exist, then we must make sure it is included

	{ prop='P4854',  message ="$3 [$2 ''$1''] i Uppslagsverket Finland", short="[$2 Uppslagsverket Finland]", langcode ='sv', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P3595',  message ="$3 [$2 ''$1''] i Biografiskt lexikon för Finland", short="[$2 Biografiskt lexikon för Finland]", langcode ='sv', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P1417',  message ="$3 [$2 ''$1''] hos Encyclopædia Britannica", short="[$2 Encyclopædia Britannica]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included

	{ prop='P9000',  message ="$3 [$2 ''$1''] hos World History Encyclopedia", short="[$2 World History Encyclopedia]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included

	{ prop='P3123',  message ="$3 [$2 ''$1''] hos Stanford Encyclopedia of Philosophy", short="[$2 Stanford Encyclopedia of Philosophy]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P5395',  message ="$3 [$2 ''$1''] hos Canadian Encyclopedia", short="[$2 Canadian Encyclopedia]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P4228',  message ="$3 [$2 ''$1''] hos Encyclopedia of Australian Science", short="[$2 Encyclopedia of Australian Science]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P1907',  message ="$3 [$2 ''$1''] hos Australian Dictionary of Biography", short="[$2 Australian Dictionary of Biography]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P6829',  message ="$3 [$2 ''$1''] hos Dictionary of Irish Biography", short="[$2 Dictionary of Irish Biography]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P2745',  message ="$3 [$2 ''$1''] hos Dictionary of New Zealand", short="[$2 Dictionary of New Zealand]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included

	{ prop='P3368',  message ="$3 [$2 ''$1''] hos Prabook", short="[$2 Prabook]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included

	{ prop='P1563',  message ="$3 [$2 ''$1''] hos MacTutor", short="[$2 MacTutor]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P2812',  message ="$3 [$2 ''$1''] hos MathWorld", short="[$2 MathWorld]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P7349',  message ="$3 [$2 ''$1''] hos Gazetteer for Scotland", short="[$2 Gazetteer for Scotland]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P3616',  message ="$3 [$2 ''$1''] hos Vision of Britain", short="[$2 Vision of Britain]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P1047',  message ="$3 [$2 ''$1''] hos Catholic-Hierarchy", short="[$2 Catholic-Hierarchy]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included

	{ prop='P5306',  message ="$3 [$2 ''$1''] hos Folkeforbundet", short="[$2 Folkeforbundet]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included

	{ prop='P5456',  message ="$3 [$2 ''$1''] hos TasteAtlas", short="[$2 TasteAtlas]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P4255',  message ="$3 [$2 ''$1''] hos Banglapedia", short="[$2 Banglapedia]", langcode ='en', genitiv = false }, -- if this exist, then we must make sure it is included
	{ prop='P5019',  message ="$3 [$2 ''$1''] i Brockhaus Enzyklopädie", short="[$2 Brockhaus Enzyklopädie]", langcode ='de', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P7902',  message ="$3 [$2 ''$1''] i Deutsche Biographie", short="[$2 Deutsche Biographie]", langcode ='de', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P1710',  message ="$3 [$2 ''$1''] i Sächsische Biografie", short="[$2 Sächsische Biografie]", langcode ='de', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P8432',  message ="$3 [$2 ''$1''] i Österreichisches Musiklexikon", short="[$2 Österreichisches Musiklexikon]", langcode ='de', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P3219',  message ="$3 [$2 ''$1''] hos Encyclopædia Universalis", short="[$2 Encyclopædia Universalis]", langcode ='fr', genitiv = false },
	{ prop='P3222',  message ="$3 [$2 ''$1''] hos Nationalencyklopedin", short="[$2 Nationalencyklopedin]", langcode ='sv', genitiv = false },
	{ prop='P4574',  message ="$3 [$2 ''$1''] i Historisk befolkningsregister", short="[$2 Historisk befolkningsregister]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5165',  message ="$3 [$2 ''$1''] hos Norsk pop- og rock leksikon", short="[$2 NPRL]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5171',  message ="$3 [$2 ''$1''] hos Rockipedia (album)", short="[$2 Rockipedia (album)]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5172',  message ="$3 [$2 ''$1''] hos Rockipedia (artist)", short="[$2 Rockipedia]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5173',  message ="$3 [$2 ''$1''] hos Rockipedia (area)", short="[$2 Rockipedia (area)]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5174',  message ="$3 [$2 ''$1''] hos Rockipedia (label)", short="[$2 Rockipedia (label)]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P1015',  message ="$3 [$2 ''$1''] hos BIBSYS", short="[$2 BIBSYS]", langcode ='nb', genitiv = false, url_f=bibsys_formatter },
	{ prop='P1847',  message ="$3 [$2 ''$1''] hos nb.no (nmff)", short="[$2 NMFF]", langcode ='nb', genitiv = false },
	{ prop='P3072',  message ="$3 [$2 ''$1''] hos Stortinget", short="[$2 Stortinget]", langcode ='nb', genitiv = false },

	{ prop='P359',  message ="$3 [$2 ''$1''] hos Rijksmonument", short="[$2 Rijksmonument]", langcode ='nb', genitiv = false },

	{ prop='P1138',  message ="$3 [$2 ''$1''] hos Kunstindeks Danmark", short="[$2 Kunstindeks Danmark]", langcode ='nb', genitiv = false },

	{ prop='P2600',  message ="$3 [$2 ''$1''] hos Geni.com", short="[$2 Geni]", langcode ='en', genitiv = false },
	{ prop='P2949',  message ="$3 [$2 ''$1''] hos WikiTree", short="[$2 WikiTree]", langcode ='en', genitiv = false },

	{ prop='P214',  message ="$3 [$2 ''$1''] hos VIAF", short="[$2 VIAF]", langcode ='en', genitiv = false },
	{ prop='P243',  message ="$3 [$2 ''$1''] hos WorldCat", short="[$2 OCLC]", langcode ='en', genitiv = false },
	{ prop='P227',  message ="$3 [$2 ''$1''] hos GND", short="[$2 GND]", langcode ='de', genitiv = false },
	{ prop='P244',  message ="$3 [$2 ''$1''] hos LCCN", short="[$2 LCCN]", langcode ='en', genitiv = false },
	{ prop='P236',  message ="$3 [$2 ''$1''] hos ISSN", short="[$2 ISSN]", langcode ='en', genitiv = false },
	{ prop='P213',  message ="$3 [$2 ''$1''] hos ISNI", short="[$2 ISNI]", langcode ='en', genitiv = false, url_f=isni_formatter },
	{ prop='P268',  message ="$3 [$2 ''$1''] hos BNF", short="[$2 BNF]", langcode ='fr', genitiv = false },
	{ prop='P268',  message ="$3 [$2 ''$1''] hos BNF2", short="[$2 BNF (data)]", langcode ='fr', genitiv = false, url_f=bnfdata_formatter },
	{ prop='P496',  message ="$3 [$2 ''$1''] hos ORCID", short="[$2 ORCID]", langcode ='en', genitiv = false },
	{ prop='P5587',  message ="$3 [$2 ''$1''] hos LIBRIS", short="[$2 LIBRIS]", langcode ='sv', genitiv = false },
	{ prop='P269',  message ="$3 [$2 ''$1''] hos SUDOC", short="[$2 SUDOC]", langcode ='fr', genitiv = false },
	{ prop='P651',  message ="$3 [$2 ''$1''] hos BPN", short="[$2 BPN]", langcode ='en', genitiv = false },
	{ prop='P1053',  message ="$3 [$2 ''$1''] hos ResearcherID", short="[$2 ResearcherID]", langcode ='en', genitiv = false },
	{ prop='P245',  message ="$3 [$2 ''$1''] hos ULAN", short="[$2 ULAN]", langcode ='en', genitiv = false },
	{ prop='P902',  message ="$3 [$2 ''$1''] hos HDS", short="[$2 HDS]", langcode ='en', genitiv = false },
	{ prop='P886',  message ="$3 [$2 ''$1''] hos LIR", short="[$2 LIR]", langcode ='en', genitiv = false },
	{ prop='P549',  message ="$3 [$2 ''$1''] hos MGP", short="[$2 MGP]", langcode ='en', genitiv = false },
	{ prop='P409',  message ="$3 [$2 ''$1''] hos NLA", short="[$2 NLA]", langcode ='en', genitiv = false },
	{ prop='P349',  message ="$3 [$2 ''$1''] hos NDL", short="[$2 NDL]", langcode ='en', genitiv = false },
	{ prop='P1048',  message ="$3 [$2 ''$1''] hos NCL", short="[$2 NCL]", langcode ='en', genitiv = false },
	{ prop='P691',  message ="$3 [$2 ''$1''] hos NKC", short="[$2 NKC]", langcode ='en', genitiv = false },
	{ prop='P640',  message ="$3 [$2 ''$1''] hos Léonore", short="[$2 Léonore]", langcode ='en', genitiv = false },
	{ prop='P396',  message ="$3 [$2 ''$1''] hos ICCU", short="[$2 ICCU]", langcode ='en', genitiv = false },
	{ prop='P947',  message ="$3 [$2 ''$1''] hos RLS", short="[$2 RLS]", langcode ='en', genitiv = false },
	{ prop='P428',  message ="$3 [$2 ''$1''] hos Botanist", short="[$2 Botanist]", langcode ='en', genitiv = false },
	{ prop='P1222',  message ="$3 [$2 ''$1''] hos NARA", short="[$2 NARA]", langcode ='en', genitiv = false },
	{ prop='P1223',  message ="$3 [$2 ''$1''] hos NARA", short="[$2 NARA]", langcode ='en', genitiv = false },
	{ prop='P1157',  message ="$3 [$2 ''$1''] hos US Congress", short="[$2 US Congress]", langcode ='en', genitiv = false },
	{ prop='P950',  message ="$3 [$2 ''$1''] hos BNE", short="[$2 BNE]", langcode ='en', genitiv = false },
	{ prop='P271',  message ="$3 [$2 ''$1''] hos CiNii", short="[$2 CiNii]", langcode ='en', genitiv = false },
	{ prop='P1362',  message ="$3 [$2 ''$1''] hos TLS", short="[$2 TLS]", langcode ='en', genitiv = false },
	{ prop='P781',  message ="$3 [$2 ''$1''] hos SIKART", short="[$2 SIKART]", langcode ='en', genitiv = false },
--	{ prop='P646',  message ="$3 [$2 ''$1''] hos Freebase", short="[$2 Freebase]", langcode ='en', genitiv = false },
	{ prop='P1248',  message ="$3 [$2 ''$1''] hos KulturNav", short="[$2 KulturNav]", langcode ='en', genitiv = false },
	{ prop='P2287',  message ="$3 [$2 ''$1''] hos CRIStin", short="[$2 CRIStin]", langcode ='en', genitiv = false },
	{ prop='P1566',  message ="$3 [$2 ''$1''] hos GeoNames", short="[$2 GeoNames]", langcode ='en', genitiv = false },

	{ prop='P758',  message ="$3 [$2 ''$1''] hos Riksantikvaren kulturminne", short="[$2 Riksantikvaren kulturminne]", langcode ='en', genitiv = false },

	{ prop='P1850',  message ="$3 [$2 ''$1''] hos Sentralt stedsnavnregister", short="[$2 Sentralt stedsnavnregister]", langcode ='en', genitiv = false },
	{ prop='P761',  message ="$3 [$2 ''$1''] hos Vatteninformationssystem Sverige", short="[$2 VISS]", langcode ='en', genitiv = false },
	{ prop='P1732',  message ="$3 [$2 ''$1''] hos Naturbase", short="[$2 Naturbase]", langcode ='en', genitiv = false },
	{ prop='P2525',  message ="$3 [$2 ''$1''] hos Ramsar Sites Information Service", short="[$2 Ramsar]", langcode ='en', genitiv = false },
	{ prop='P1866',  message ="$3 [$2 ''$1''] hos CatolicDiocese", short="[$2 CatolicDiocese]", langcode ='en', genitiv = false },
	{ prop='P1305',  message ="$3 [$2 ''$1''] hos SkyscraperCenter", short="[$2 SkyscraperCenter]", langcode ='en', genitiv = false },
	{ prop='P1617',  message ="$3 [$2 ''$1''] hos BBC Things", short="[$2 BBC Things]", langcode ='en', genitiv = false },
	{ prop='P7898',  message ="$3 [$2 ''$1''] hos National Aviation Hall of Fame", short="[$2 National Aviation Hall of Fame]", langcode ='en', genitiv = false },
	{ prop='P9201',  message ="$3 [$2 ''$1''] hos Forvaltningsdatabasen", short="[$2 Forvaltningsdatabasen]", langcode ='no', genitiv = false },

	{ prop='P8545',  message ="$3 [$2 ''$1''] i Nasjonalt skoleregister", short="[$2 Nasjonalt skoleregister]", langcode ='en', genitiv = false },
	{ prop='P5580',  message ="$3 [$2 ''$1''] i Nasjonal vegdatabank", short="[$2 Nasjonal vegdatabank]", langcode ='no', genitiv = false },
	{ prop='P11362',  message ="$3 [$2 ''$1''] i Nasjonalt stoppestedsregister", short="[$2 Nasjonalt stoppestedsregister]", langcode ='no', genitiv = false },
	{ prop='P11369',  message ="$3 [$2 ''$1''] i Bane NOR Network Statement", short="[$2 Network Statement]", langcode ='no', genitiv = false },

	{ prop='P2333',  message ="$3 [$2 ''$1''] hos BR orgnr", short="[$2 Brønnøysundregistrene]", langcode ='en', genitiv = false },
	{ prop='P3608',  message ="$3 [$2 ''$1''] hos EU mva-nummer", short="[$2 EU mva-nr.]", langcode ='en', genitiv = false },
	{ prop='P2355',  message ="$3 [$2 ''$1''] hos UNESCO lang", short="[$2 UNESCO lang]", langcode ='en', genitiv = false },
	{ prop='P1284',  message ="$3 [$2 ''$1''] hos Munzinger (iba)", short="[$2 Munzinger (iba)]", langcode ='en', genitiv = false },
	{ prop='P1285',  message ="$3 [$2 ''$1''] hos Munzinger (sport)", short="[$2 Munzinger (sport)]", langcode ='en', genitiv = false },
	{ prop='P1286',  message ="$3 [$2 ''$1''] hos Munzinger (pop)", short="[$2 Munzinger]", langcode ='en', genitiv = false },
	{ prop='P434',  message ="$3 [$2 ''$1''] hos MusicBrainz (artist)", short="[$2 MusicBrainz]", langcode ='en', genitiv = false },
	{ prop='P436',  message ="$3 [$2 ''$1''] hos MusicBrainz (release-group)", short="[$2 MusicBrainz]", langcode ='en', genitiv = false },
	{ prop='P966',  message ="$3 [$2 ''$1''] hos MusicBrainz (label)", short="[$2 MusicBrainz]", langcode ='en', genitiv = false },
	{ prop='P982',  message ="$3 [$2 ''$1''] hos MusicBrainz (area)", short="[$2 MusicBrainz]", langcode ='en', genitiv = false },
	{ prop='P1953',  message ="$3 [$2 ''$1''] hos Discogs (artist)", short="[$2 Discogs]", langcode ='en', genitiv = false },
	{ prop='P1955',  message ="$3 [$2 ''$1''] hos Discogs (label)", short="[$2 Discogs]", langcode ='en', genitiv = false },
	{ prop='P1728',  message ="$3 [$2 ''$1''] hos AllMusic (artist)", short="[$2 AllMusic]", langcode ='en', genitiv = false },
	{ prop='P804',  message ="$3 [$2 ''$1''] hos US Geological Survey's Geographic Names Information System", short="[$2 GNIS]", langcode ='en', genitiv = false },
	{ prop='P590',  message ="$3 [$2 ''$1''] hos US Geological Survey's Geographic Names Information System", short="[$2 GNIS]", langcode ='en', genitiv = false },
	{ prop='P3230',  message ="$3 [$2 ''$1''] i SCAR Composite Gazetteer of Antarctica", short="[$2 SCAR]", langcode ='en', genitiv = false, track = true },
	{ prop='P2038',  message ="$3 [$2 ''$1''] i ResearchGate", short="[$2 ResearchGate]", langcode ='en', genitiv = false },
	{ prop='P4972',  message ="$3 [$2 ''$1''] i Norsk krigsseilerregister", short="[$2 Krigsseilerregisteret]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P5156',  message ="$3 [$2 ''$1''] i Norsk krigsseilerregister skip", short="[$2 Krigsseilerregisteret]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P7626',  message ="$3 [$2 ''$1''] i NVE vannkraftdatabase", short="[$2 NVE-ID]", langcode ='no', genitiv = true }, -- if this exist, then we must make sure it is included
	{ prop='P8269',  message ="$3 [$2 ''$1''] hos Norsk fangeregister", short="[$2 Fangeregisteret]", langcode ='no', genitiv = false, track = true },
	{ prop='P7717',  message ="$3 [$2 ''$1''] hos Våre falne", short="[$2 Våre falne]", langcode ='no', genitiv = false, track = true },
	{ prop='P1960',  message ="$3 [$2 ''$1''] i Google Scholar", short="[$2 Google Scholar]", langcode ='no', genitiv = false, track = true },
	{ prop='P5391',  message ="$3 [$2 ''$1''] hos Norsk polarinstitutt", short="[$2 Norsk polarinstitutt]", langcode ='en', genitiv = false},
	
	{ prop='P11675',  message ="$3 [$2 ''$1''] i Sjøhistorisk database", short="[$2 Sjøhistorisk database]", langcode ='no', genitiv = true },
	{ prop='P10078',  message ="$3 [$2 ''$1''] i Maritime Business Directory", short="[$2 Maritime Business Directory]", langcode ='no', genitiv = true },
	{ prop='P3601',  message ="$3 [$2 ''$1''] i MarineTraffic Lighthouse", short="[$2 MarineTraffic]", langcode ='no', genitiv = true },
	{ prop='P1624',  message ="$3 [$2 ''$1''] i MarineTraffic Port", short="[$2 MarineTraffic]", langcode ='no', genitiv = true },
	{ prop='P6300',  message ="$3 [$2 ''$1''] hos Hymnary.org", short="[$2 Hymnary]", langcode ='en', genitiv = true },
	{ prop='P12429', message ="$3 [$2 ''$1''] hos UT.no", short="[$2 UT.no]", langcode ='no', genitiv = false },
}
local messages_conf = {}
messages_conf['nb'] = {
	['short-list-separator'] = " '''·''' ",
	['no-data-cat'] = '[[Kategori:Artikler uten autoritetsdatalenker fra Wikidata]]',
	['with-data-cat'] = '[[Kategori:Artikler med autoritetsdatalenker fra Wikidata]]',
	['with-local-cat'] = '[[Kategori:Artikler med autoritetsdatalenker fra lokale verdier]]',
	['no-data-text'] = "''Artikkelen har ingen egenskaper for autoritetsdata i Wikidata''",
	['no-wikilink'] = "''Artikkelen mangler oppslag i Wikidata''",
	['no-wikilink-cat'] = "[[Kategori:Artikler med autoritetsdatalenker og uten kobling til Wikidata]]",
	['track-cat-wd-wd'] = '[[Kategori:Artikler med autoritetsdatalenker for $1 fra Wikidata]]',
	['track-cat-local-local'] = '[[Kategori:Artikler med autoritetsdatalenker for $1 lokalt]]',
	['track-cat-wd-local'] = '[[Kategori:Artikler med autoritetsdatalenker med $1 fra Wikidata men verdi lokalt]]',
	['track-cat-local-wd'] = '[[Kategori:Artikler med autoritetsdatalenker med $1 definert lokalt men verdi fra Wikidata]]',
	['track-cat-local-wd-equal'] = '[[Kategori:Artikler med autoritetsdatalenker hvor $1 sin verdi lokalt er lik med Wikidata]]',
	['track-cat-local-wd-unequal'] = '[[Kategori:Artikler med autoritetsdatalenker hvor $1 sin verdi lokalt er ulik Wikidata]]',
}
local limits = {
	['links-shown'] = 25,		-- maximum number of links shown in the article.
}


local p = {}

function p.getConfiguredClaims (self, lang)
	return configured_claims[lang]
end

function p.getMessage (self, lang, msg)
	return messages_conf[lang][msg] 
end

function p.getLimits (self)
	return limits
end

-- metatable for the export
local mt = {
	-- adjust the installation of the module
	['__call'] = function (self, lang)
		self.configured_claims = configured_claims[lang]
		self.messages_conf = messages_conf[lang]
		return self
	end
}

-- install the metatable
setmetatable(p, mt)

return p