From 2d1d680d41f1765daf675a0272b191422c999bb6 Mon Sep 17 00:00:00 2001 From: Michael Ritter Date: Mon, 26 Jun 2023 19:04:11 -0600 Subject: [PATCH] Additional Report Updates (#358) --- .../src/main/resources/deaccessions.jrxml | 20 ++++++++++++++++++ .../src/main/resources/deed_of_gift.jrxml | 2 +- .../resources/tombstone_with_creator.jrxml | 21 +++++++++++++------ 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/deaccessions.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/deaccessions.jrxml index 0fea9e71b..414640461 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/deaccessions.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/deaccessions.jrxml @@ -26,6 +26,7 @@ exit.id AS id, exit.exitnote, exit.exitnumber, + exit.exitquantity, exit.exitreason, exit.packingnote, exit.deaccessiondate, @@ -132,6 +133,7 @@ ) SELECT exit.exitnumber, + exit.exitquantity, exit.exitdate, exit.exitmethod, exit.exitreason, @@ -187,6 +189,11 @@ LEFT JOIN related_intakes intake ON intake.objcsid = obj.csid]]> + + + + + @@ -416,6 +423,13 @@ LEFT JOIN related_intakes intake ON intake.objcsid = obj.csid]]> + + + + + + + @@ -714,6 +728,12 @@ LEFT JOIN related_intakes intake ON intake.objcsid = obj.csid]]> + + + + + + diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/deed_of_gift.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/deed_of_gift.jrxml index 1d0cf9011..d35786eeb 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/deed_of_gift.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/deed_of_gift.jrxml @@ -38,7 +38,7 @@ $P!{whereclause} ), person_owners AS ( SELECT ag.*, - string_agg(primaryterm.termdisplayname, '|') as primarydisplayname, + string_agg(primaryterm.termdisplayname, '|' ORDER BY term_hier.pos) as primarydisplayname, intake.csid as intakecsid FROM intakes intake INNER JOIN intakes_common_currentowners co ON co.id = intake.id AND co.pos = 0 diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/tombstone_with_creator.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/tombstone_with_creator.jrxml index 131775082..e9e1077af 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/tombstone_with_creator.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/tombstone_with_creator.jrxml @@ -34,8 +34,8 @@ 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 @@ -48,12 +48,21 @@ LEFT JOIN collectionobjects_publicart_publicartcollections coll ON coll.id = 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, @@ -142,7 +151,7 @@ $P!{whereclause}]]> - + -- 2.47.3