exit.id AS id,
exit.exitnote,
exit.exitnumber,
+ exit.exitquantity,
exit.exitreason,
exit.packingnote,
exit.deaccessiondate,
)
SELECT
exit.exitnumber,
+ exit.exitquantity,
exit.exitdate,
exit.exitmethod,
exit.exitreason,
<property name="com.jaspersoft.studio.field.label" value="exitnumber"/>
<property name="com.jaspersoft.studio.field.tree.path" value="objectexit_common"/>
</field>
+ <field name="exitquantity" class="java.lang.String">
+ <property name="com.jaspersoft.studio.field.name" value="exitquantity"/>
+ <property name="com.jaspersoft.studio.field.label" value="exitquantity"/>
+ <property name="com.jaspersoft.studio.field.tree.path" value="objectexit_common"/>
+ </field>
<field name="exitdate" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="exitdate"/>
<property name="com.jaspersoft.studio.field.label" value="exitdate"/>
<textElement markup="styled"/>
<text><![CDATA[Exit number]]></text>
</staticText>
+ <staticText>
+ <reportElement style="Column header" x="100" y="0" width="100" height="60" uuid="df0dab5e-6620-4d94-a2e8-aa0e57ce83e2">
+ <property name="com.jaspersoft.studio.unit.width" value="px"/>
+ </reportElement>
+ <textElement markup="styled"/>
+ <text><![CDATA[Exit quantity]]></text>
+ </staticText>
<staticText>
<reportElement style="Column header" x="200" y="0" width="100" height="60" uuid="d8c568a2-c8bf-4385-968b-ebd7e7b2b027">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{exitnumber}]]></textFieldExpression>
</textField>
+ <textField textAdjust="StretchHeight" isBlankWhenNull="true">
+ <reportElement style="Detail" x="100" y="0" width="100" height="30" uuid="6c9fc572-62c9-4591-bf13-9b50a671addc">
+ <property name="com.jaspersoft.studio.unit.y" value="px"/>
+ </reportElement>
+ <textFieldExpression><![CDATA[$F{exitquantity}]]></textFieldExpression>
+ </textField>
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement style="Detail" x="200" y="0" width="100" height="30" uuid="198b574c-8492-4ea4-ab68-17b18f412c3f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
namegroup.worktype,
material.material,
dimension.dimension,
- dimension.value AS dimensionvalue,
- dimension.measurementunit AS dimensionunit,
+ dimension.dimensionvalue,
+ dimension.dimensionunit,
sd.datedisplaydate AS artworkdate,
media.objectcsid AS mediacsid
FROM collectionobjects_common obj
LEFT JOIN collectionobjects_common_briefdescriptions bd ON bd.id = obj.id AND bd.pos = 0
LEFT JOIN collectionobjects_common_owners owner ON owner.id = obj.id AND owner.pos = 0
LEFT JOIN collectionobjects_common_inventorystatuslist inventory ON inventory.id = obj.id AND inventory.pos = 0
-LEFT JOIN hierarchy measured_hier on measured_hier.parentid = obj.id and measured_hier.primarytype = 'measuredPartGroup' and measured_hier.pos = 0
-LEFT JOIN hierarchy dimension_hier on dimension_hier.parentid = measured_hier.id and dimension_hier.primarytype = 'dimensionSubGroup' and dimension_hier.pos = 0
-LEFT JOIN dimensionsubgroup dimension on dimension.id = dimension_hier.id
LEFT JOIN hierarchy pdg_hier on pdg_hier.parentid = obj.id AND pdg_hier.primarytype = 'publicartProductionDateGroup' and pdg_hier.pos = 0
LEFT JOIN hierarchy sdg_hier on sdg_hier.parentid = pdg_hier.id AND sdg_hier.primarytype = 'structuredDateGroup'
LEFT JOIN structureddategroup sd on sd.id = sdg_hier.id
+LEFT JOIN (
+ SELECT
+ measured_hier.parentid,
+ string_agg(dimension.dimension, '|') AS dimension,
+ string_agg(dimension.value::text, '|') AS dimensionvalue,
+ string_agg(dimension.measurementunit, '|') AS dimensionunit
+ FROM hierarchy measured_hier
+ INNER JOIN hierarchy dimension_hier on dimension_hier.parentid = measured_hier.id and dimension_hier.primarytype = 'dimensionSubGroup'
+ LEFT JOIN dimensionsubgroup dimension on dimension.id = dimension_hier.id
+ WHERE measured_hier.primarytype = 'measuredPartGroup'
+ GROUP BY measured_hier.parentid
+) dimension on dimension.parentid = obj.id
LEFT JOIN (
SELECT
creator_hier.parentid,
<property name="com.jaspersoft.studio.field.label" value="dimension"/>
<property name="com.jaspersoft.studio.field.tree.path" value="dimensionsubgroup"/>
</field>
- <field name="dimensionvalue" class="java.lang.Double">
+ <field name="dimensionvalue" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="dimensionvalue"/>
<property name="com.jaspersoft.studio.field.label" value="dimensionvalue"/>
<property name="com.jaspersoft.studio.field.tree.path" value="dimensionsubgroup"/>