vivo/productMods/config/listViewConfig-mailingAddress.xml

51 lines
1.9 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<!-- See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
<list-view-config>
<query-select>
PREFIX vcard: &lt;http://www.w3.org/2006/vcard/ns#&gt;
SELECT DISTINCT ?vcard ?address
?street
?locality
?region
?postalCode
?country
WHERE {
?subject ?property ?vcard .
?vcard vcard:hasAddress ?address
OPTIONAL { ?address vcard:streetAddress ?street }
OPTIONAL { ?address vcard:locality ?locality }
OPTIONAL { ?address vcard:region ?region }
OPTIONAL { ?address vcard:postalCode ?postalCode }
OPTIONAL { ?address vcard:country ?country }
} ORDER BY ?country ?region ?street
</query-select>
<query-construct>
PREFIX vcard: &lt;http://www.w3.org/2006/vcard/ns#&gt;
CONSTRUCT {
?subject ?property ?vcard .
?vcard vcard:hasAddress ?address .
?address ?addressProperty ?addressValue
} WHERE {
{
?subject ?property ?vcard
} UNION {
?subject ?property ?vcard .
?vcard vcard:hasAddress ?address
} UNION {
?subject ?property ?vcard .
?vcard vcard:hasAddress ?address .
?address ?addressProperty ?addressValue
}
}
</query-construct>
<template>propStatement-mailingAddress.ftl</template>
<postprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.MaintainDuplicatesObjectPropertyDataPostProcessor</postprocessor>
</list-view-config>