<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://bard-wiki.net/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AWDSource</id>
	<title>Модуль:WDSource - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://bard-wiki.net/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AWDSource"/>
	<link rel="alternate" type="text/html" href="https://bard-wiki.net/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:WDSource&amp;action=history"/>
	<updated>2026-11-08T08:31:38Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://bard-wiki.net/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:WDSource&amp;diff=6698&amp;oldid=prev</id>
		<title>Admin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="https://bard-wiki.net/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:WDSource&amp;diff=6698&amp;oldid=prev"/>
		<updated>2023-06-21T15:36:54Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 18:36, 21 июня 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://bard-wiki.net/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:WDSource&amp;diff=6697&amp;oldid=prev</id>
		<title>ru&gt;D6194c-1cc: Добавлено получение флага выпуска</title>
		<link rel="alternate" type="text/html" href="https://bard-wiki.net/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:WDSource&amp;diff=6697&amp;oldid=prev"/>
		<updated>2023-06-13T08:08:26Z</updated>

		<summary type="html">&lt;p&gt;Добавлено получение флага выпуска&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local wikidata = require(&amp;#039;Модуль:WDCommon&amp;#039;)&lt;br /&gt;
local wdLang = require(&amp;#039;Модуль:WDLang&amp;#039;)&lt;br /&gt;
local backend = require(&amp;#039;Модуль:WDBackend&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local cache = require(&amp;#039;Модуль:WDSource/Cache&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local langCache = cache.LangCache&lt;br /&gt;
local idCache = cache.IdCache&lt;br /&gt;
&lt;br /&gt;
local P_SPECIFIED_AS = &amp;#039;P1932&amp;#039;&lt;br /&gt;
local P_NAMED_AS = &amp;#039;P1810&amp;#039;&lt;br /&gt;
local P_LANG_CODE = &amp;#039;P218&amp;#039;&lt;br /&gt;
local P_WORK_LANG = &amp;#039;P407&amp;#039;&lt;br /&gt;
local P_SUBCLASS_OF = &amp;#039;P279&amp;#039;&lt;br /&gt;
local P_INSTANCE_OF = &amp;#039;P31&amp;#039;&lt;br /&gt;
local P_TITLE = &amp;#039;P1476&amp;#039;&lt;br /&gt;
local P_SUBTITLE = &amp;#039;P1680&amp;#039;&lt;br /&gt;
local P_EDITION_AS_STR = &amp;#039;P9767&amp;#039;&lt;br /&gt;
local P_GENRE = &amp;#039;P136&amp;#039;&lt;br /&gt;
local P_WORK_FORM = &amp;#039;P7937&amp;#039;&lt;br /&gt;
local P_INSCRIPTION = &amp;#039;P1684&amp;#039;&lt;br /&gt;
local P_INSCRIPTION_MENTIONS = &amp;#039;P6568&amp;#039;&lt;br /&gt;
local P_TRANSLATION_OF = &amp;#039;P9745&amp;#039;&lt;br /&gt;
local P_PARTS_COUNT = &amp;#039;P2635&amp;#039;&lt;br /&gt;
local P_AUTHORS = &amp;#039;P50&amp;#039;&lt;br /&gt;
local P_AUTHORS_AS_STR = &amp;#039;P2093&amp;#039;&lt;br /&gt;
local P_ILLUSTRATORS = &amp;#039;P110&amp;#039;&lt;br /&gt;
local P_EDITOR_IN_CHIEF = &amp;#039;P5769&amp;#039;&lt;br /&gt;
local P_EDITORS = &amp;#039;P98&amp;#039;&lt;br /&gt;
local P_TRANSLATORS = &amp;#039;P655&amp;#039;&lt;br /&gt;
local P_CONTAINS = &amp;#039;P4330&amp;#039;&lt;br /&gt;
local P_DATE = &amp;#039;P577&amp;#039;&lt;br /&gt;
local P_START_DATE = &amp;#039;P580&amp;#039;&lt;br /&gt;
local P_END_DATE = &amp;#039;P582&amp;#039;&lt;br /&gt;
local P_URL = &amp;#039;P953&amp;#039;&lt;br /&gt;
local P_URL_STATUS = &amp;#039;P6954&amp;#039;&lt;br /&gt;
local P_ARCHIVE_URL = &amp;#039;P1065&amp;#039;&lt;br /&gt;
local P_ARCHIVE_DATE = &amp;#039;P2960&amp;#039;&lt;br /&gt;
local P_URL_MASK = &amp;#039;P1630&amp;#039;&lt;br /&gt;
local P_SEARCH_URL_MASK = &amp;#039;P4354&amp;#039;&lt;br /&gt;
local P_ISSN = &amp;#039;P236&amp;#039;&lt;br /&gt;
local P_ISBN_13 = &amp;#039;P212&amp;#039;&lt;br /&gt;
local P_ISBN_10 = &amp;#039;P957&amp;#039;&lt;br /&gt;
local P_PUBLISHED_IN = &amp;#039;P1433&amp;#039;&lt;br /&gt;
local P_VOLUME = &amp;#039;P478&amp;#039;&lt;br /&gt;
local P_ISSUE = &amp;#039;P433&amp;#039;&lt;br /&gt;
local P_PAGES = &amp;#039;P304&amp;#039;&lt;br /&gt;
local P_PAGES_COUNT = &amp;#039;P1104&amp;#039;&lt;br /&gt;
local P_PUBLISHER = &amp;#039;P123&amp;#039;&lt;br /&gt;
local P_LOCATION = &amp;#039;P291&amp;#039;&lt;br /&gt;
local P_ARTICLE_ID = &amp;#039;P2322&amp;#039;&lt;br /&gt;
local P_DOI = &amp;#039;P356&amp;#039;&lt;br /&gt;
local P_S2SIC = &amp;#039;P8299&amp;#039;&lt;br /&gt;
local P_OCLC = &amp;#039;P243&amp;#039;&lt;br /&gt;
local P_EDITION_OF = &amp;#039;P629&amp;#039;&lt;br /&gt;
local P_PART_OF = &amp;#039;P361&amp;#039;&lt;br /&gt;
local P_OF_SERIES = &amp;#039;P179&amp;#039;&lt;br /&gt;
local P_GOOGLE_BOOKS_ID = &amp;#039;P675&amp;#039;&lt;br /&gt;
local P_PMID = &amp;#039;P698&amp;#039;&lt;br /&gt;
local P_PMC_ID = &amp;#039;P932&amp;#039;&lt;br /&gt;
local P_PRODUCES = &amp;#039;P1056&amp;#039;&lt;br /&gt;
local P_ROLE = &amp;#039;P2868&amp;#039;&lt;br /&gt;
local P_DEDICATED_TO = &amp;#039;P825&amp;#039;&lt;br /&gt;
local P_FAMILY_NAME = &amp;#039;P734&amp;#039;&lt;br /&gt;
local P_GIVEN_NAME = &amp;#039;P735&amp;#039;&lt;br /&gt;
local P_ANCESTOR_NAME = &amp;#039;P5056&amp;#039;&lt;br /&gt;
local P_WIKIDATA_PROP = &amp;#039;P1687&amp;#039;&lt;br /&gt;
&lt;br /&gt;
local contentTypeEntities = { &amp;#039;Q30070675&amp;#039;, &amp;#039;Q108676767&amp;#039;, &amp;#039;Q478798&amp;#039;, &amp;#039;Q60533375&amp;#039;, &amp;#039;Q11424&amp;#039;, &amp;#039;Q187947&amp;#039;, &amp;#039;Q2376293&amp;#039; }&lt;br /&gt;
&lt;br /&gt;
local contributorComponentsMap = {&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;familyName&amp;#039;,&lt;br /&gt;
		property = P_FAMILY_NAME,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		isLocal = true,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;givenName&amp;#039;,&lt;br /&gt;
		property = P_GIVEN_NAME,&lt;br /&gt;
		isLocal = true,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;ancestorName&amp;#039;,&lt;br /&gt;
		property = P_ANCESTOR_NAME,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		isLocal = true,&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local exactQualifier = {&lt;br /&gt;
	property = P_SPECIFIED_AS,&lt;br /&gt;
	overwriteValue = true,&lt;br /&gt;
	exact = true,&lt;br /&gt;
	max = 1,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local publishedInOriginLang = {&lt;br /&gt;
	name = &amp;#039;publishedInOriginLang&amp;#039;,&lt;br /&gt;
	property = P_WORK_LANG,&lt;br /&gt;
	get = {&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;publishedInOriginLangCode&amp;#039;,&lt;br /&gt;
			property = P_LANG_CODE,&lt;br /&gt;
			cache = langCache,&lt;br /&gt;
			max = 1,&lt;br /&gt;
			elseGet = {&lt;br /&gt;
				-- for ethnolects determine parent language&lt;br /&gt;
				{&lt;br /&gt;
					name = &amp;#039;publishedInOriginLang&amp;#039;,&lt;br /&gt;
					property = P_SUBCLASS_OF,&lt;br /&gt;
					overwrite = true,&lt;br /&gt;
					max = 1,&lt;br /&gt;
					get = {&lt;br /&gt;
						{&lt;br /&gt;
							name = &amp;#039;publishedInOriginLangCode&amp;#039;,&lt;br /&gt;
							property = P_LANG_CODE,&lt;br /&gt;
							cache = langCache,&lt;br /&gt;
							overwrite = true,&lt;br /&gt;
							max = 1,&lt;br /&gt;
						},&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local publishedInMap = {&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedIn&amp;#039;,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInSubtitle&amp;#039;,&lt;br /&gt;
		property = P_SUBTITLE,&lt;br /&gt;
		filter = wikidata.base.tryFilterStatementsByLang,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;edition&amp;#039;,&lt;br /&gt;
		property = P_EDITION_AS_STR,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInWorkType&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q1404878&amp;#039;, &amp;#039;Q83790&amp;#039;, &amp;#039;Q2250844&amp;#039;, &amp;#039;Q13136&amp;#039;, &amp;#039;Q23622&amp;#039;, &amp;#039;Q5292&amp;#039;, &amp;#039;Q615699&amp;#039;, &amp;#039;Q5633421&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInIsHosting&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q559856&amp;#039;, &amp;#039;Q15590336&amp;#039;, &amp;#039;Q3220391&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInIsHosting&amp;#039;,&lt;br /&gt;
		property = P_PRODUCES,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q559856&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInEditionType&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q3331189&amp;#039;, &amp;#039;Q1238720&amp;#039;, &amp;#039;Q571&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInWorkType&amp;#039;,&lt;br /&gt;
		property = P_WORK_FORM,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInIsPeriodic&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q5633421&amp;#039;, &amp;#039;Q847906&amp;#039;, &amp;#039;Q41298&amp;#039;, &amp;#039;Q11032&amp;#039;, &amp;#039;Q1110794&amp;#039;, &amp;#039;Q737498&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInAuthors&amp;#039;,&lt;br /&gt;
		properties = { P_AUTHORS, P_AUTHORS_AS_STR },&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInIllustrators&amp;#039;,&lt;br /&gt;
		property = P_ILLUSTRATORS,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;isLikeBook&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q571&amp;#039;, &amp;#039;Q128093&amp;#039;, &amp;#039;Q5292&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		property = P_PRODUCES,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;contentType&amp;#039;,&lt;br /&gt;
				property = P_CONTAINS,&lt;br /&gt;
				allowedEntities = contentTypeEntities,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;contentType&amp;#039;,&lt;br /&gt;
		property = P_CONTAINS,&lt;br /&gt;
		allowedEntities = contentTypeEntities,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInOrigin&amp;#039;,&lt;br /&gt;
		property = P_TRANSLATION_OF,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
		get = {&lt;br /&gt;
			publishedInOriginLang&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInOrigin&amp;#039;,&lt;br /&gt;
		property = P_EDITION_OF,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
		get = {&lt;br /&gt;
			publishedInOriginLang&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;idType&amp;#039;,&lt;br /&gt;
		property = P_WIKIDATA_PROP,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;urlMask&amp;#039;,&lt;br /&gt;
				property = P_URL_MASK,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;urlMask&amp;#039;,&lt;br /&gt;
		property = P_SEARCH_URL_MASK,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInUrl&amp;#039;,&lt;br /&gt;
		property = P_URL,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;publishedInArchiveUrl&amp;#039;,&lt;br /&gt;
				property = P_ARCHIVE_URL,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;publishedInArchiveDate&amp;#039;,&lt;br /&gt;
				property = P_ARCHIVE_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;publishedInUrlStatus&amp;#039;,&lt;br /&gt;
				property = P_URL_STATUS,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInTranslators&amp;#039;,&lt;br /&gt;
		property = P_TRANSLATORS,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInEditorInChief&amp;#039;,&lt;br /&gt;
		property = P_EDITOR_IN_CHIEF,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInEditors&amp;#039;,&lt;br /&gt;
		property = P_EDITORS,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;isbn&amp;#039;,&lt;br /&gt;
		property = P_ISBN_13,&lt;br /&gt;
		match = true,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;date&amp;#039;,&lt;br /&gt;
				property = P_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;location&amp;#039;,&lt;br /&gt;
				property = P_LOCATION,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;publisher&amp;#039;,&lt;br /&gt;
				property = P_PUBLISHER,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;pagesCount&amp;#039;,&lt;br /&gt;
				property = P_PAGES_COUNT,&lt;br /&gt;
				defaultUnit = &amp;#039;Q1069725&amp;#039;,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
		elseGet = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;isbn&amp;#039;,&lt;br /&gt;
				property = P_ISBN_10,&lt;br /&gt;
				qualifiers = {&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;date&amp;#039;,&lt;br /&gt;
						property = P_DATE,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;location&amp;#039;,&lt;br /&gt;
						property = P_LOCATION,&lt;br /&gt;
					},&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;publisher&amp;#039;,&lt;br /&gt;
						property = P_PUBLISHER,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;pagesCount&amp;#039;,&lt;br /&gt;
						property = P_PAGES_COUNT,&lt;br /&gt;
						defaultUnit = &amp;#039;Q1069725&amp;#039;,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;oclc&amp;#039;,&lt;br /&gt;
		property = P_OCLC,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;date&amp;#039;,&lt;br /&gt;
		property = P_DATE,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;location&amp;#039;,&lt;br /&gt;
		property = P_LOCATION,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publisher&amp;#039;,&lt;br /&gt;
		property = P_PUBLISHER,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				property = P_SPECIFIED_AS,&lt;br /&gt;
				overwriteValue = true,&lt;br /&gt;
				exact = true,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;pagesCount&amp;#039;,&lt;br /&gt;
		property = P_PAGES_COUNT,&lt;br /&gt;
		defaultUnit = &amp;#039;Q1069725&amp;#039;,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;issn&amp;#039;,&lt;br /&gt;
		property = P_ISSN,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedInPartsCount&amp;#039;,&lt;br /&gt;
		property = P_PARTS_COUNT,&lt;br /&gt;
		allowedUnits = { &amp;#039;Q1238720&amp;#039; },&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local workMap = {&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;detectedInfo&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q1404878&amp;#039;, &amp;#039;Q83790&amp;#039;, &amp;#039;Q2250844&amp;#039;, &amp;#039;Q13136&amp;#039;, &amp;#039;Q23622&amp;#039;, &amp;#039;Q5292&amp;#039;, &amp;#039;Q615699&amp;#039;, &amp;#039;Q5633421&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;detectedInfo&amp;#039;,&lt;br /&gt;
		property = P_GENRE,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q1404878&amp;#039;, &amp;#039;Q83790&amp;#039;, &amp;#039;Q2250844&amp;#039;, &amp;#039;Q13136&amp;#039;, &amp;#039;Q23622&amp;#039;, &amp;#039;Q5292&amp;#039;, &amp;#039;Q615699&amp;#039;, &amp;#039;Q5633421&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local workVersionMap = {&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;isArticle&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q13442814&amp;#039;, &amp;#039;Q191067&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;isIssue&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q28869365&amp;#039;, &amp;#039;Q60534442&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;isVolume&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q1238720&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;contentType&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = contentTypeEntities,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;workType&amp;#039;,&lt;br /&gt;
		property = P_INSTANCE_OF,&lt;br /&gt;
		allowedEntities = { &amp;#039;Q1404878&amp;#039;, &amp;#039;Q83790&amp;#039;, &amp;#039;Q2250844&amp;#039;, &amp;#039;Q13136&amp;#039;, &amp;#039;Q23622&amp;#039;, &amp;#039;Q5292&amp;#039;, &amp;#039;Q615699&amp;#039;, &amp;#039;Q5633421&amp;#039; },&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;workType&amp;#039;,&lt;br /&gt;
		property = P_WORK_FORM,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;isbn&amp;#039;,&lt;br /&gt;
		property = P_ISBN_13,&lt;br /&gt;
		match = true,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;date&amp;#039;,&lt;br /&gt;
				property = P_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;location&amp;#039;,&lt;br /&gt;
				property = P_LOCATION,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;publisher&amp;#039;,&lt;br /&gt;
				property = P_PUBLISHER,&lt;br /&gt;
				qualifiers = {&lt;br /&gt;
					{&lt;br /&gt;
						property = P_SPECIFIED_AS,&lt;br /&gt;
						overwriteValue = true,&lt;br /&gt;
						exact = true,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;pagesCount&amp;#039;,&lt;br /&gt;
				property = P_PAGES_COUNT,&lt;br /&gt;
				defaultUnit = &amp;#039;Q1069725&amp;#039;,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
		elseGet = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;isbn&amp;#039;,&lt;br /&gt;
				property = P_ISBN_10,&lt;br /&gt;
				qualifiers = {&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;date&amp;#039;,&lt;br /&gt;
						property = P_DATE,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;location&amp;#039;,&lt;br /&gt;
						property = P_LOCATION,&lt;br /&gt;
					},&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;publisher&amp;#039;,&lt;br /&gt;
						property = P_PUBLISHER,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;pagesCount&amp;#039;,&lt;br /&gt;
						property = P_PAGES_COUNT,&lt;br /&gt;
						defaultUnit = &amp;#039;Q1069725&amp;#039;,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;authors&amp;#039;,&lt;br /&gt;
		properties = { P_AUTHORS, P_AUTHORS_AS_STR },&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;illustrators&amp;#039;,&lt;br /&gt;
		property = P_ILLUSTRATORS,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;title&amp;#039;,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;subtitle&amp;#039;,&lt;br /&gt;
		property = P_SUBTITLE,&lt;br /&gt;
		filter = wikidata.base.tryFilterStatementsByLang,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;edition&amp;#039;,&lt;br /&gt;
		property = P_EDITION_AS_STR,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;info&amp;#039;,&lt;br /&gt;
		property = P_INSCRIPTION,&lt;br /&gt;
		has = {&lt;br /&gt;
			{ property=P_ROLE, value=&amp;#039;Q116158574&amp;#039; },&lt;br /&gt;
		},&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				property = P_INSCRIPTION_MENTIONS,&lt;br /&gt;
				overwriteEntity = true,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;editorInChief&amp;#039;,&lt;br /&gt;
		property = P_EDITOR_IN_CHIEF,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;editors&amp;#039;,&lt;br /&gt;
		property = P_EDITORS,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		qualifiers = { exactQualifier },&lt;br /&gt;
		skipGetIf = { exact = true },&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;translators&amp;#039;,&lt;br /&gt;
		property = P_TRANSLATORS,&lt;br /&gt;
		isArray = true,&lt;br /&gt;
		get = contributorComponentsMap,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;volume&amp;#039;,&lt;br /&gt;
		property = P_VOLUME,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;partTitle&amp;#039;,&lt;br /&gt;
				property = P_TITLE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;volumeTitle&amp;#039;,&lt;br /&gt;
				property = P_TITLE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;issue&amp;#039;,&lt;br /&gt;
		property = P_ISSUE,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;date&amp;#039;,&lt;br /&gt;
		property = P_DATE,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;startDate&amp;#039;,&lt;br /&gt;
				property = P_START_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;endDate&amp;#039;,&lt;br /&gt;
				property = P_END_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;pages&amp;#039;,&lt;br /&gt;
		property = P_PAGES,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;pagesCount&amp;#039;,&lt;br /&gt;
		property = P_PAGES_COUNT,&lt;br /&gt;
		defaultUnit = &amp;#039;Q1069725&amp;#039;,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;articleId&amp;#039;,&lt;br /&gt;
		property = P_ARTICLE_ID,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;url&amp;#039;,&lt;br /&gt;
		property = P_URL,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;archiveUrl&amp;#039;,&lt;br /&gt;
				property = P_ARCHIVE_URL,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;archiveDate&amp;#039;,&lt;br /&gt;
				property = P_ARCHIVE_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;urlStatus&amp;#039;,&lt;br /&gt;
				property = P_URL_STATUS,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;location&amp;#039;,&lt;br /&gt;
		property = P_LOCATION,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publisher&amp;#039;,&lt;br /&gt;
		property = P_PUBLISHER,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				property = P_SPECIFIED_AS,&lt;br /&gt;
				overwriteValue = true,&lt;br /&gt;
				exact = true,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;origin&amp;#039;,&lt;br /&gt;
		property = P_TRANSLATION_OF,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;originLang&amp;#039;,&lt;br /&gt;
				property = P_WORK_LANG,&lt;br /&gt;
				get = {&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;langCode&amp;#039;,&lt;br /&gt;
						property = P_LANG_CODE,&lt;br /&gt;
						cache = langCache,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					}&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;originSubtitle&amp;#039;,&lt;br /&gt;
				property = P_SUBTITLE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;originVolume&amp;#039;,&lt;br /&gt;
				property = P_VOLUME,&lt;br /&gt;
				max = 1,&lt;br /&gt;
				qualifiers = {&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;originVolumeTitle&amp;#039;,&lt;br /&gt;
						property = P_TITLE,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;origin&amp;#039;,&lt;br /&gt;
		property = P_EDITION_OF,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;originLang&amp;#039;,&lt;br /&gt;
				property = P_WORK_LANG,&lt;br /&gt;
				get = {&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;langCode&amp;#039;,&lt;br /&gt;
						property = P_LANG_CODE,&lt;br /&gt;
						cache = langCache,&lt;br /&gt;
						max = 1,&lt;br /&gt;
					}&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;partsCount&amp;#039;,&lt;br /&gt;
		property = P_PARTS_COUNT,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;dedicatedTo&amp;#039;,&lt;br /&gt;
		property = P_DEDICATED_TO,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;doi&amp;#039;,&lt;br /&gt;
		property = P_DOI,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;oclc&amp;#039;,&lt;br /&gt;
		property = P_OCLC,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;pmid&amp;#039;,&lt;br /&gt;
		property = P_PMID,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;pmc&amp;#039;,&lt;br /&gt;
		property = P_PMC_ID,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;urlMask&amp;#039;,&lt;br /&gt;
				entity = P_PMC_ID,&lt;br /&gt;
				property = P_URL_MASK,&lt;br /&gt;
				cache = idCache,&lt;br /&gt;
				max = 1,&lt;br /&gt;
				isLocal = true,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;s2sic&amp;#039;,&lt;br /&gt;
		property = P_S2SIC,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedIn&amp;#039;,&lt;br /&gt;
		property = P_PUBLISHED_IN,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			-- probably, wrong way, different publications must have different items&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;volume&amp;#039;,&lt;br /&gt;
				property = P_VOLUME,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;issue&amp;#039;,&lt;br /&gt;
				property = P_ISSUE,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;date&amp;#039;,&lt;br /&gt;
				property = P_DATE,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;startDate&amp;#039;,&lt;br /&gt;
				property = P_START_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;endDate&amp;#039;,&lt;br /&gt;
				property = P_END_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;pages&amp;#039;,&lt;br /&gt;
				property = P_PAGES,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;articleId&amp;#039;,&lt;br /&gt;
				property = P_ARTICLE_ID,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;work&amp;#039;,&lt;br /&gt;
		property = P_EDITION_OF,&lt;br /&gt;
		max = 1,&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;publishedIn&amp;#039;,&lt;br /&gt;
		property = P_PART_OF,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;partsCount&amp;#039;,&lt;br /&gt;
				property = P_PARTS_COUNT,&lt;br /&gt;
				allowedUnits = { &amp;#039;Q1238720&amp;#039; },&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;series&amp;#039;,&lt;br /&gt;
		property = P_OF_SERIES,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;seriesIssue&amp;#039;,&lt;br /&gt;
				property = P_ISSUE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local topicMap = {&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;id&amp;#039;,&lt;br /&gt;
		propertyPath = { &amp;#039;idType&amp;#039;, &amp;#039;entity&amp;#039; },&lt;br /&gt;
		max = 1,&lt;br /&gt;
		qualifiers = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;title&amp;#039;,&lt;br /&gt;
				property = P_NAMED_AS,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;date&amp;#039;,&lt;br /&gt;
				property = P_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;archiveUrl&amp;#039;,&lt;br /&gt;
				property = P_ARCHIVE_URL,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;archiveDate&amp;#039;,&lt;br /&gt;
				property = P_ARCHIVE_DATE,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;authors&amp;#039;,&lt;br /&gt;
				property = P_AUTHORS_AS_STR,&lt;br /&gt;
				isArray = true,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		-- if P1810 id qualifier is not specified&lt;br /&gt;
		name = &amp;#039;title&amp;#039;,&lt;br /&gt;
		getValue = wikidata.name,&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local alternativeUrl = {&lt;br /&gt;
	{&lt;br /&gt;
		name = &amp;#039;id&amp;#039;,&lt;br /&gt;
		property = P_GOOGLE_BOOKS_ID,&lt;br /&gt;
		max = 1,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;urlMask&amp;#039;,&lt;br /&gt;
				entity = P_GOOGLE_BOOKS_ID,&lt;br /&gt;
				property = P_URL_MASK,&lt;br /&gt;
				cache = idCache,&lt;br /&gt;
				max = 1,&lt;br /&gt;
				overwrite = true,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local function fetchUrl(f, source)&lt;br /&gt;
	if source.url then&lt;br /&gt;
		if source.urlStatus and source.urlStatus.entity == &amp;#039;Q1193907&amp;#039; then&lt;br /&gt;
			source.url = nil&lt;br /&gt;
		else&lt;br /&gt;
			return&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local idTable = f:safeField(source, &amp;#039;id&amp;#039;)&lt;br /&gt;
	if idTable.value and source.urlMask then&lt;br /&gt;
		source.url = { value = source.urlMask.value:gsub(&amp;#039;%$1&amp;#039;, idTable.value) }&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local pmcTable = f:safeField(source, &amp;#039;pmc&amp;#039;)&lt;br /&gt;
	if pmcTable.value and pmcTable.components and pmcTable.components.urlMask then&lt;br /&gt;
		source.url = {&lt;br /&gt;
			value = pmcTable.components.urlMask.value:gsub(&amp;#039;%$1&amp;#039;, pmcTable.value)&lt;br /&gt;
		}&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function fetchPublishedInUrl(f, source)&lt;br /&gt;
	if source.publishedInUrl then&lt;br /&gt;
		if source.publishedInUrlStatus and source.publishedInUrlStatus.entity == &amp;#039;Q1193907&amp;#039; then&lt;br /&gt;
			source.publishedInUrl = nil&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getLangCode(source)&lt;br /&gt;
	local langCode = source.langCode&lt;br /&gt;
	if type(langCode) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		langCode = langCode.value&lt;br /&gt;
	end&lt;br /&gt;
	return langCode&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function fetchLang(f, source)&lt;br /&gt;
	local publishedInTable = source.publishedIn&lt;br /&gt;
&lt;br /&gt;
	local langMapItem = {&lt;br /&gt;
		name = &amp;#039;lang&amp;#039;,&lt;br /&gt;
		property = P_WORK_LANG,&lt;br /&gt;
		get = {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;langCode&amp;#039;,&lt;br /&gt;
				property = P_LANG_CODE,&lt;br /&gt;
				cache = langCache,&lt;br /&gt;
				max = 1,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	}&lt;br /&gt;
	if not source.langCode then&lt;br /&gt;
		f:fetch(source, {&lt;br /&gt;
			{&lt;br /&gt;
				name = &amp;#039;workVersion&amp;#039;,&lt;br /&gt;
				get = {&lt;br /&gt;
					langMapItem,&lt;br /&gt;
					{&lt;br /&gt;
						name = &amp;#039;publishedIn&amp;#039;,&lt;br /&gt;
						property = P_PUBLISHED_IN,&lt;br /&gt;
						getValue = wikidata.name,&lt;br /&gt;
						max = 1,&lt;br /&gt;
						get = {&lt;br /&gt;
							langMapItem,&lt;br /&gt;
						},&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	f:fetch(source, {&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;publishedIn&amp;#039;,&lt;br /&gt;
			get = {&lt;br /&gt;
				{&lt;br /&gt;
					name = &amp;#039;publishedInLang&amp;#039;,&lt;br /&gt;
					property = P_WORK_LANG,&lt;br /&gt;
					max = 1,&lt;br /&gt;
					get = {&lt;br /&gt;
						{&lt;br /&gt;
							name = &amp;#039;publishedInLangCode&amp;#039;,&lt;br /&gt;
							property = P_LANG_CODE,&lt;br /&gt;
							cache = langCache,&lt;br /&gt;
							max = 1,&lt;br /&gt;
							elseGet = {&lt;br /&gt;
								-- for ethnolects determine parent language&lt;br /&gt;
								{&lt;br /&gt;
									name = &amp;#039;publishedInLang&amp;#039;,&lt;br /&gt;
									property = P_SUBCLASS_OF,&lt;br /&gt;
									overwrite = true,&lt;br /&gt;
									max = 1,&lt;br /&gt;
									get = {&lt;br /&gt;
										{&lt;br /&gt;
											name = &amp;#039;publishedInLangCode&amp;#039;,&lt;br /&gt;
											property = P_LANG_CODE,&lt;br /&gt;
											cache = langCache,&lt;br /&gt;
											overwrite = true,&lt;br /&gt;
											max = 1,&lt;br /&gt;
										},&lt;br /&gt;
									},&lt;br /&gt;
								},&lt;br /&gt;
							},&lt;br /&gt;
						},&lt;br /&gt;
					},&lt;br /&gt;
				},&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
	})&lt;br /&gt;
&lt;br /&gt;
	if not source.langCode then&lt;br /&gt;
		if source.publishedInLang then&lt;br /&gt;
			source.lang = source.publishedInLang&lt;br /&gt;
		end&lt;br /&gt;
		if source.publishedInLangCode then&lt;br /&gt;
			source.langCode = source.publishedInLangCode&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not source.langCode then&lt;br /&gt;
		f:ensureLang()&lt;br /&gt;
		source.langCode = { value = f.lang }&lt;br /&gt;
	else&lt;br /&gt;
		f.lang = getLangCode(source)&lt;br /&gt;
	end&lt;br /&gt;
	if not source.lang then&lt;br /&gt;
		source.lang = {&lt;br /&gt;
			entity = wdLang.langEntity(f.lang),&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- publishedIn field need to be empty to get its qualifiers later&lt;br /&gt;
	if publishedInTable == nil then&lt;br /&gt;
		source.publishedIn = nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Remove all duplicates from inscriptions of a book&lt;br /&gt;
local function removeInfoDuplicates(source)&lt;br /&gt;
	if not source.info then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for _, infoItem in ipairs(source.info) do&lt;br /&gt;
		for i, detectedItem in ipairs(source.detectedInfo) do&lt;br /&gt;
			if detectedItem.entity == infoItem.entity then&lt;br /&gt;
				table.remove(source.detectedInfo, i)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.fetch(source)&lt;br /&gt;
	local f = backend.new(getLangCode(source))&lt;br /&gt;
	fetchLang(f, source)&lt;br /&gt;
	f:assertLang()&lt;br /&gt;
&lt;br /&gt;
	f:fetch(source, {&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;workVersion&amp;#039;,&lt;br /&gt;
			get = workVersionMap,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;publishedIn&amp;#039;,&lt;br /&gt;
			get = publishedInMap,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;topic&amp;#039;,&lt;br /&gt;
			get = topicMap,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;work&amp;#039;,&lt;br /&gt;
			get = workMap,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			name = &amp;#039;workVersion&amp;#039;,&lt;br /&gt;
			get = alternativeUrl,&lt;br /&gt;
		},&lt;br /&gt;
	})&lt;br /&gt;
&lt;br /&gt;
	local titleTable = f:safeField(source, &amp;#039;title&amp;#039;)&lt;br /&gt;
	if titleTable.value then&lt;br /&gt;
		local workTable = f:safeField(source, &amp;#039;workVersion&amp;#039;)&lt;br /&gt;
		titleTable.entity = workTable.entity&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	removeInfoDuplicates(source)&lt;br /&gt;
&lt;br /&gt;
	fetchUrl(f, source)&lt;br /&gt;
	fetchPublishedInUrl(f, source)&lt;br /&gt;
	return source&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ru&gt;D6194c-1cc</name></author>
	</entry>
</feed>