From: Michael Ritter Date: Fri, 13 Dec 2024 00:55:55 +0000 (-0700) Subject: Report: Notice of Intent to Repatriate QA (#439) X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=176ab4608fcebe448a44be5abecb0bd76ee8dfdc;p=tmp%2Fjakarta-migration.git Report: Notice of Intent to Repatriate QA (#439) * Switch to javascript templating * Pull distinct acquisitions related to summary * Coalesce for better null handling * Adjust spacing for some fields --- diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/notice_of_intent_to_repatriate.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/notice_of_intent_to_repatriate.jrxml index c892bfdaa..2e24dd553 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/notice_of_intent_to_repatriate.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/notice_of_intent_to_repatriate.jrxml @@ -1,6 +1,6 @@ - + @@ -18,7 +18,7 @@ - + - + @@ -520,29 +519,35 @@ WHERE summary_hierarchy.primarytype = 'SummaryDocumentation' $P!{whereclause}]]> - + !!name).join('; '); + var donors = $F{acquisition_sources}.getArray().filter((donor) => !!donor).join('; '); + var removalDates = $F{dates}.getArray().filter((date) => !!date).join('; '); + var accessDates = $F{accession_dates}.getArray().filter((date) => !!date).join('; '); + + var objString = 'Archaeological objects including: ' + archObjects + '\n\n'; + var donorString = 'Collector Names: ' + donors + '\n\n'; + var dateString = 'Date(s) Removed From Sites: ' + removalDates + '\n\n'; + var accessString = 'Accession Date(s): ' + accessDates; + objString + donorString + dateString + accessString]]> + - + !!category).join('; ')]]> - + !!place).join('; ')]]> - + !!site).join('; ')]]> @@ -554,37 +559,37 @@ WHERE summary_hierarchy.primarytype = 'SummaryDocumentation' $P!{whereclause}]]> - + !!method).join('; ')]]> - + !!source).join('; ')]]> - + !!collector).join('; ')]]> - + !!date).join('; ')]]> - + !!number).join('; ')]]> - + !!date).join('; ')]]> @@ -596,7 +601,7 @@ WHERE summary_hierarchy.primarytype = 'SummaryDocumentation' $P!{whereclause}]]> - + !!ton).join('; ')]]> @@ -608,7 +613,7 @@ WHERE summary_hierarchy.primarytype = 'SummaryDocumentation' $P!{whereclause}]]> - + !!culture).join('; ')]]> @@ -638,10 +643,10 @@ WHERE summary_hierarchy.primarytype = 'SummaryDocumentation' $P!{whereclause}]]> - + !!location).join('; ')]]> - +