Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<types:key>report</types:key>
<types:value>full_obj_place</types:value>
</types:item>
<types:item merge:matcher="skip" merge:action="insert">
<types:key>report</types:key>
<types:value>full_obj_place_creator_role_combined</types:value>
</types:item>
</service:properties>
</tenant:serviceBindings>
</tenant:tenantBinding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<style name="Column header" fontName="SansSerif" fontSize="12" isBold="true"/>
<style name="Detail" fontName="SansSerif" fontSize="12"/>
<parameter name="deurnfields" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["publicartproductiondatetype,publicartproductionperson,publicartproductionpersonrole,responsibledepartment,publishto,installationtype,worktype,material,collections,owner,computedcurrentlocation,placementtype,placetype,placeowner,addressmunicipality,addressstateorprovince,addresscountry,addresstype,addresstype,broaderplace"]]></defaultValueExpression>
<defaultValueExpression><![CDATA["publicartproductiondatetype,responsibledepartment,publicartproductionpersons,publicartproductionpersonroles,publishto,installationtype,worktypes,materials,collections,owner,computedcurrentlocation,placementtype,placetype,placeowner,addressmunicipality,addressstateorprovince,addresscountry,addresstype,addresstype,broaderplace"]]></defaultValueExpression>
</parameter>
<parameter name="tenantid" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["5000"]]></defaultValueExpression>
Expand All @@ -25,15 +25,15 @@
tg.title,
dategroup.publicartproductiondatetype,
proddate.datedisplaydate AS objectproductiondate,
creator.publicartproductionperson,
creator.publicartproductionpersonrole,
coalesce(creator_agg.publicartproductionpersons, '{}') as publicartproductionpersons,
coalesce(creator_agg.publicartproductionpersonroles, '{}') as publicartproductionpersonroles,
rd.item AS responsibledepartment,
obj.recordstatus,
publishto.item AS publishto,
installationtype.item AS installationtype,
objectCountGroup.objectcount AS numberofobjects,
worktype.objectname AS worktype,
material.material, -- deurn
coalesce(worktype_agg.worktypes, '{}') AS worktypes,
coalesce(material_agg.materials, '{}') AS materials,
bd.item AS briefdescription,
comment.item AS comment,
coalesce(publicart_collections.collections, '{}') as collections,
Expand Down Expand Up @@ -69,17 +69,42 @@ LEFT JOIN hierarchy proddategroup_hier ON proddategroup_hier.parentid = obj.id A
LEFT JOIN publicartproductiondategroup dategroup ON dategroup.id = proddategroup_hier.id
LEFT JOIN hierarchy proddate_hier ON proddate_hier.parentid = proddategroup_hier.id
LEFT JOIN structureddategroup proddate ON proddate.id = proddate_hier.id
LEFT JOIN hierarchy creator_hier ON creator_hier.parentid = obj.id AND creator_hier.primarytype = 'publicartProductionPersonGroup' AND creator_hier.pos = 0
LEFT JOIN publicartproductionpersongroup creator ON creator.id = creator_hier.id
-- AGGREGATE ALL CREATORS AND ROLES
LEFT JOIN (
SELECT
creator_hier.parentid AS obj_id,
array_agg(coalesce(creator.publicartproductionperson, '')) AS publicartproductionpersons,
array_agg(coalesce(creator.publicartproductionpersonrole, '')) AS publicartproductionpersonroles
FROM hierarchy creator_hier
LEFT JOIN publicartproductionpersongroup creator ON creator.id = creator_hier.id
WHERE creator_hier.primarytype = 'publicartProductionPersonGroup'
GROUP BY creator_hier.parentid
) creator_agg ON creator_agg.obj_id = obj.id
LEFT JOIN collectionobjects_common_responsibledepartments rd ON rd.id = obj.id AND rd.pos = 0
LEFT JOIN collectionobjects_common_publishtolist publishto ON publishto.id = obj.id AND publishto.pos = 0
LEFT JOIN collectionobjects_common_inventorystatuslist installationtype ON installationtype.id = obj.id AND installationtype.pos = 0
LEFT JOIN collectionobjects_common_briefdescriptions bd ON bd.id = obj.id AND bd.pos = 0
LEFT JOIN collectionobjects_common_comments comment ON comment.id = obj.id AND comment.pos = 0
LEFT JOIN hierarchy work_hier on work_hier.parentid = obj.id and work_hier.primarytype = 'objectNameGroup' and work_hier.pos = 0
LEFT JOIN objectnamegroup worktype on worktype.id = work_hier.id
LEFT JOIN hierarchy material_hier on material_hier.parentid = obj.id and material_hier.primarytype = 'materialGroup' and material_hier.pos = 0
LEFT JOIN materialgroup material on material.id = material_hier.id
-- AGGREGATE ALL WORK TYPES
LEFT JOIN (
SELECT
work_hier.parentid AS obj_id,
array_agg(coalesce(worktype.objectname, '')) AS worktypes
FROM hierarchy work_hier
LEFT JOIN objectnamegroup worktype ON worktype.id = work_hier.id
WHERE work_hier.primarytype = 'objectNameGroup'
GROUP BY work_hier.parentid
) worktype_agg ON worktype_agg.obj_id = obj.id
-- AGGREGATE ALL MATERIALS
LEFT JOIN (
SELECT
material_hier.parentid AS obj_id,
array_agg(coalesce(material.material, '')) AS materials
FROM hierarchy material_hier
LEFT JOIN materialgroup material ON material.id = material_hier.id
WHERE material_hier.primarytype = 'materialGroup'
GROUP BY material_hier.parentid
) material_agg ON material_agg.obj_id = obj.id
LEFT JOIN (
SELECT
id AS obj_id,
Expand Down Expand Up @@ -150,14 +175,14 @@ $P!{whereclause}]]>
<property name="com.jaspersoft.studio.field.label" value="objectproductiondate"/>
<property name="com.jaspersoft.studio.field.tree.path" value="structureddategroup"/>
</field>
<field name="publicartproductionperson" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="publicartproductionperson"/>
<property name="com.jaspersoft.studio.field.label" value="publicartproductionperson"/>
<field name="publicartproductionpersons" class="java.sql.Array">
<property name="com.jaspersoft.studio.field.name" value="publicartproductionpersons"/>
<property name="com.jaspersoft.studio.field.label" value="publicartproductionpersons"/>
<property name="com.jaspersoft.studio.field.tree.path" value="publicartproductionpersongroup"/>
</field>
<field name="publicartproductionpersonrole" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="publicartproductionpersonrole"/>
<property name="com.jaspersoft.studio.field.label" value="publicartproductionpersonrole"/>
<field name="publicartproductionpersonroles" class="java.sql.Array">
<property name="com.jaspersoft.studio.field.name" value="publicartproductionpersonroles"/>
<property name="com.jaspersoft.studio.field.label" value="publicartproductionpersonroles"/>
<property name="com.jaspersoft.studio.field.tree.path" value="publicartproductionpersongroup"/>
</field>
<field name="responsibledepartment" class="java.lang.String">
Expand Down Expand Up @@ -185,14 +210,14 @@ $P!{whereclause}]]>
<property name="com.jaspersoft.studio.field.label" value="numberofobjects"/>
<property name="com.jaspersoft.studio.field.tree.path" value="collectionobjects_common"/>
</field>
<field name="worktype" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="worktype"/>
<property name="com.jaspersoft.studio.field.label" value="worktype"/>
<field name="worktypes" class="java.sql.Array">
<property name="com.jaspersoft.studio.field.name" value="worktypes"/>
<property name="com.jaspersoft.studio.field.label" value="worktypes"/>
<property name="com.jaspersoft.studio.field.tree.path" value="objectnamegroup"/>
</field>
<field name="material" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="material"/>
<property name="com.jaspersoft.studio.field.label" value="material"/>
<field name="materials" class="java.sql.Array">
<property name="com.jaspersoft.studio.field.name" value="materials"/>
<property name="com.jaspersoft.studio.field.label" value="materials"/>
<property name="com.jaspersoft.studio.field.tree.path" value="materialgroup"/>
</field>
<field name="briefdescription" class="java.lang.String">
Expand Down Expand Up @@ -415,7 +440,7 @@ $P!{whereclause}]]>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement markup="styled"/>
<text><![CDATA[Materal]]></text>
<text><![CDATA[Material]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="1300" y="0" width="100" height="44" uuid="40c138fe-ed94-4433-b5ad-4dbe3a9ff58a">
Expand Down Expand Up @@ -625,13 +650,13 @@ $P!{whereclause}]]>
<reportElement style="Detail" x="400" y="0" width="100" height="30" uuid="684b01a8-875b-4405-a580-b9ef32528154">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{publicartproductionperson}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{publicartproductionpersons}.getArray().join('; ')]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement style="Detail" x="500" y="0" width="100" height="30" uuid="c9a6e1f9-b088-4e28-8d3a-f185609211b5">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{publicartproductionpersonrole}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{publicartproductionpersonroles}.getArray().join('; ')]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement style="Detail" x="600" y="0" width="100" height="30" uuid="86bdc0bd-65c1-4c30-9716-7d4815131536">
Expand Down Expand Up @@ -667,13 +692,13 @@ $P!{whereclause}]]>
<reportElement style="Detail" x="1100" y="0" width="100" height="30" uuid="7384199e-4476-46a9-88f0-ddb9a89eb948">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{worktype}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{worktypes}.getArray().join('; ')]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement style="Detail" x="1200" y="0" width="100" height="30" uuid="7368bb5a-e0a0-492c-8396-56385eaa187a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{material}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{materials}.getArray().join('; ')]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement style="Detail" x="1300" y="0" width="100" height="30" uuid="f0be7108-9cbb-483a-ae78-a1a4bd4636bf">
Expand Down
Loading
Loading