From: Michael Ritter Date: Fri, 2 Feb 2024 01:07:45 +0000 (-0700) Subject: DRYD-1373: Update reports that use numberofobjects (#388) X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=f3e66de3d8c65df6634801449503ad8e55f26ab7;p=tmp%2Fjakarta-migration.git DRYD-1373: Update reports that use numberofobjects (#388) --- diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/Acq_List_Basic.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/Acq_List_Basic.jrxml index 042a7a103..0f383ddb8 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/Acq_List_Basic.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/Acq_List_Basic.jrxml @@ -32,7 +32,7 @@ ptg.termdisplayname opperson, objectproductionpeople, datedisplaydate, - numberofobjects, + objectCountGroup.objectcount numberofobjects, dimensionsummary, computedcurrentlocation FROM acquisitions_common ac @@ -63,6 +63,8 @@ LEFT OUTER JOIN measuredpartgroup mpg ON (mpg.id = h10.id) LEFT OUTER JOIN collectionspace_core core ON (coc.id = core.id) LEFT OUTER JOIN misc misc ON (misc.id = coc.id) + LEFT OUTER JOIN hierarchy countHierarchy ON (coc.id = countHierarchy.parentid AND countHierarchy.primarytype='objectCountGroup' AND countHierarchy.pos=0) + LEFT OUTER JOIN objectcountgroup objectCountGroup ON (countHierarchy.id = objectCountGroup.id) WHERE core.tenantid = $P{tenantid} AND misc.lifecyclestate != 'deleted' AND h1.name = $P{csid}]]> diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/CC_List_Basic.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/CC_List_Basic.jrxml index 2ea8b5f6d..be9875810 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/CC_List_Basic.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/CC_List_Basic.jrxml @@ -32,7 +32,7 @@ ptg.termdisplayname opperson, objectproductionpeople, datedisplaydate, - numberofobjects, + objectCountGroup.objectcount numberofobjects, dimensionsummary, computedcurrentlocation FROM conditionchecks_common cc @@ -63,6 +63,8 @@ LEFT OUTER JOIN measuredpartgroup mpg ON (mpg.id = h10.id) LEFT OUTER JOIN collectionspace_core core ON (coc.id = core.id) LEFT OUTER JOIN misc misc ON (misc.id = coc.id) + LEFT OUTER JOIN hierarchy countHierarchy ON (coc.id = countHierarchy.parentid AND countHierarchy.primarytype='objectCountGroup' AND countHierarchy.pos=0) + LEFT OUTER JOIN objectcountgroup objectCountGroup ON (countHierarchy.id = objectCountGroup.id) WHERE core.tenantid = $P{tenantid} AND misc.lifecyclestate != 'deleted' AND h1.name = $P{csid}]]> diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/Exhibition_List_Basic.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/Exhibition_List_Basic.jrxml index 114597367..6b96a71ed 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/Exhibition_List_Basic.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/Exhibition_List_Basic.jrxml @@ -33,7 +33,7 @@ ptg.termdisplayname opperson, objectproductionpeople, datedisplaydate, - numberofobjects, + objectCountGroup.objectcount numberofobjects, dimensionsummary, computedcurrentlocation FROM exhibitions_common ec @@ -64,6 +64,8 @@ LEFT OUTER JOIN measuredpartgroup mpg ON (mpg.id = h10.id) LEFT OUTER JOIN collectionspace_core core ON (coc.id = core.id) LEFT OUTER JOIN misc misc ON (misc.id = coc.id) + LEFT OUTER JOIN hierarchy countHierarchy ON (coc.id = countHierarchy.parentid AND countHierarchy.primarytype='objectCountGroup' AND countHierarchy.pos=0) + LEFT OUTER JOIN objectcountgroup objectCountGroup ON (countHierarchy.id = objectCountGroup.id) WHERE core.tenantid = $P{tenantid} AND misc.lifecyclestate != 'deleted' AND h1.name = $P{csid}]]> diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/Group_List_Basic.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/Group_List_Basic.jrxml index 530263a61..ac696cd3f 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/Group_List_Basic.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/Group_List_Basic.jrxml @@ -65,7 +65,7 @@ objectproductionperson, objectproductionpeople, datedisplaydate, - numberofobjects, + objectCountGroup.objectcount numberofobjects, dimensionsummary, computedcurrentlocation FROM collectionobjects_common coc @@ -87,6 +87,8 @@ LEFT OUTER JOIN structureddategroup sdg ON (sdg.id = h9.id) LEFT OUTER JOIN hierarchy h10 ON (coc.id = h10.parentid AND h10.primarytype='measuredPartGroup' AND h10.pos=0) LEFT OUTER JOIN measuredpartgroup mpg ON (mpg.id = h10.id) + LEFT OUTER JOIN hierarchy countHierarchy ON (coc.id = countHierarchy.parentid AND countHierarchy.primarytype='objectCountGroup' AND countHierarchy.pos=0) + LEFT OUTER JOIN objectcountgroup objectCountGroup ON (countHierarchy.id = objectCountGroup.id) $P!{whereclause}]]> diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansIn_List_Basic.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansIn_List_Basic.jrxml index 379f94d49..59addaf0d 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansIn_List_Basic.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansIn_List_Basic.jrxml @@ -33,7 +33,7 @@ ptg.termdisplayname opperson, objectproductionpeople, datedisplaydate, - numberofobjects, + objectCountGroup.objectcount numberofobjects, dimensionsummary, computedcurrentlocation FROM loansin_common lic @@ -64,6 +64,8 @@ LEFT OUTER JOIN measuredpartgroup mpg ON (mpg.id = h10.id) LEFT OUTER JOIN collectionspace_core core ON (coc.id = core.id) LEFT OUTER JOIN misc misc ON (misc.id = coc.id) + LEFT OUTER JOIN hierarchy countHierarchy ON (coc.id = countHierarchy.parentid AND countHierarchy.primarytype='objectCountGroup' AND countHierarchy.pos=0) + LEFT OUTER JOIN objectcountgroup objectCountGroup ON (countHierarchy.id = objectCountGroup.id) WHERE core.tenantid = $P{tenantid} AND misc.lifecyclestate != 'deleted' AND h1.name = $P{csid}]]> diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansOut_List_Basic.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansOut_List_Basic.jrxml index 54a6f4819..b2e981fd7 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansOut_List_Basic.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/LoansOut_List_Basic.jrxml @@ -33,7 +33,7 @@ ptg.termdisplayname opperson, objectproductionpeople, datedisplaydate, - numberofobjects, + objectCountGroup.objectcount numberofobjects, dimensionsummary, computedcurrentlocation FROM loansout_common loc @@ -64,6 +64,8 @@ LEFT OUTER JOIN measuredpartgroup mpg ON (mpg.id = h10.id) LEFT OUTER JOIN collectionspace_core core ON (coc.id = core.id) LEFT OUTER JOIN misc misc ON (misc.id = coc.id) + LEFT OUTER JOIN hierarchy countHierarchy ON (coc.id = countHierarchy.parentid AND countHierarchy.primarytype='objectCountGroup' AND countHierarchy.pos=0) + LEFT OUTER JOIN objectcountgroup objectCountGroup ON (countHierarchy.id = objectCountGroup.id) WHERE core.tenantid = $P{tenantid} AND misc.lifecyclestate != 'deleted' AND h1.name = $P{csid}]]> diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/catalogue_sheet.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/catalogue_sheet.jrxml index 4c1a7baaf..ef520a231 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/catalogue_sheet.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/catalogue_sheet.jrxml @@ -9,7 +9,7 @@ - 'deleted') +left join hierarchy count_hier ON (c.id = count_hier.parentid AND count_hier.primarytype='objectCountGroup' AND count_hier.pos=0) +left join objectcountgroup objectCountGroup ON count_hier.id = objectCountGroup.id WHERE replace(regexp_replace(c.computedcurrentlocation, '^.*\)''(.*)''$', '\1'), ' ', '0') >= replace(regexp_replace($P{startLocation}, '^.*\)''(.*)''$', '\1'), ' ', '0') and replace(regexp_replace(c.computedcurrentlocation, '^.*\)''(.*)''$', '\1'), ' ', '0') <= replace(regexp_replace($P{endLocation}, '^.*\)''(.*)''$', '\1'), ' ', '0') order by locationkey, objectnumber, objectName desc]]>