Module:manifest
From Rhizome Artbase
Documentation for this module may be created at Module:manifest/doc
-- map of key props and items
local m = {
prop={
instance_of='P3',
inception='P26',
conclusion='P83',
image='P126',
artist='P29',
variant='P45',
access_url='P46',
official_website='P17',
description='P123',
attributed_to='P127',
generated_by='P117',
legacy_tags='P48',
source='P50',
artwork='P60',
derived_from='P102',
date_of_accession='P85',
type_of_accession='P129',
associated_with='P118',
derived_from='P102',
license='P54',
alternative_title='P131',
plural_form_of_label='P132',
not_active_since='P64',
in_collection_of='P122',
has_member='P43',
member_of='P20',
copyedited_by='P133',
preview_image='P134',
artifact='P139'
},
item={
person='Q6',
institution='Q8',
collective='Q7',
artwork='Q5',
variant='Q1168',
artifact='Q12215',
type_of_artifact='Q11990',
outside_link='Q11991',
static_files='Q11992',
emulated_environment='Q11993',
web_archive='Q11994',
server_copy='Q11995',
download='Q12081',
description='Q9759',
summary='Q4985',
artist_statement='Q11838'
}
}
-- when rendering data_lists of an item, these properties can be
-- skipped if they aren't set
m.prop_optional = {
[m.item.person]={ m.prop.member_of,
m.prop.official_website },
[m.item.collective]={ m.prop.has_member,
m.prop.official_website },
[m.item.artwork]={ m.prop.license,
m.prop.conclusion,
m.prop.alternative_title },
[m.item.description]={ m.prop.generated_by,
m.prop.copyedited_by },
[m.item.summary]={ m.prop.generated_by,
m.prop.copyedited_by },
[m.item.artist_statement]={ m.prop.generated_by,
m.prop.copyedited_by },
[m.item.variant]={ m.prop.not_active_since,
m.prop.conclusion,
m.prop.type_of_accession,
m.prop.date_of_accession,
m.prop.generated_by,
m.prop.derived_from,
m.prop.alternative_title,
m.prop.in_collection_of }
}
return m