diff --git a/reports/library/occurrences/list_for_elastic.xml b/reports/library/occurrences/list_for_elastic.xml
index 17f5d51812..a2305f4ebf 100644
--- a/reports/library/occurrences/list_for_elastic.xml
+++ b/reports/library/occurrences/list_for_elastic.xml
@@ -24,6 +24,7 @@
JOIN cache_samples_nonfunctional snf ON snf.id=o.sample_id
JOIN taxa_taxon_lists ttl ON ttl.id=o.taxa_taxon_list_id
JOIN taxa t ON t.id=ttl.taxon_id
+ LEFT JOIN cache_taxa_taxon_lists cttl ON cttl.id=o.taxa_taxon_list_id
LEFT JOIN locations l on l.id=o.location_id AND l.deleted=false
LEFT JOIN samples sp on sp.id=o.parent_sample_id AND sp.deleted=false
LEFT JOIN locations lp on lp.id=sp.location_id AND lp.deleted=false
@@ -178,5 +179,17 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/reports/library/occurrences/list_for_elastic_all.xml b/reports/library/occurrences/list_for_elastic_all.xml
index 3fbf5cb9be..10210a9449 100644
--- a/reports/library/occurrences/list_for_elastic_all.xml
+++ b/reports/library/occurrences/list_for_elastic_all.xml
@@ -23,6 +23,7 @@
JOIN cache_samples_nonfunctional snf ON snf.id=o.sample_id
JOIN taxa_taxon_lists ttl ON ttl.id=o.taxa_taxon_list_id
JOIN taxa t ON t.id=ttl.taxon_id
+ LEFT JOIN cache_taxa_taxon_lists cttl ON cttl.id=o.taxa_taxon_list_id
LEFT JOIN locations l on l.id=o.location_id AND l.deleted=false
LEFT JOIN samples sp on sp.id=o.parent_sample_id AND sp.deleted=false
LEFT JOIN locations lp on lp.id=sp.location_id AND lp.deleted=false
@@ -177,5 +178,17 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/reports/library/occurrences/list_for_elastic_sensitive.xml b/reports/library/occurrences/list_for_elastic_sensitive.xml
index 3f5c7995c8..202b99840e 100644
--- a/reports/library/occurrences/list_for_elastic_sensitive.xml
+++ b/reports/library/occurrences/list_for_elastic_sensitive.xml
@@ -26,6 +26,7 @@
JOIN cache_samples_nonfunctional snf ON snf.id=o.sample_id
JOIN taxa_taxon_lists ttl ON ttl.id=o.taxa_taxon_list_id
JOIN taxa t ON t.id=ttl.taxon_id
+ LEFT JOIN cache_taxa_taxon_lists cttl ON cttl.id=o.taxa_taxon_list_id
JOIN samples s on s.id=o.sample_id AND s.deleted=false
LEFT JOIN locations l ON l.id=s.location_id AND l.deleted=false
LEFT JOIN samples sp ON sp.id=s.parent_id AND sp.deleted=false
@@ -175,5 +176,17 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/reports/library/occurrences/list_for_elastic_sensitive_all.xml b/reports/library/occurrences/list_for_elastic_sensitive_all.xml
index 330fdddfec..2ffbb585d6 100644
--- a/reports/library/occurrences/list_for_elastic_sensitive_all.xml
+++ b/reports/library/occurrences/list_for_elastic_sensitive_all.xml
@@ -25,6 +25,7 @@
JOIN cache_samples_nonfunctional snf ON snf.id=o.sample_id
JOIN taxa_taxon_lists ttl ON ttl.id=o.taxa_taxon_list_id
JOIN taxa t ON t.id=ttl.taxon_id
+ LEFT JOIN cache_taxa_taxon_lists cttl ON cttl.id=o.taxa_taxon_list_id
JOIN samples s on s.id=o.sample_id AND s.deleted=false
LEFT JOIN locations l ON l.id=s.location_id AND l.deleted=false
LEFT JOIN samples sp ON sp.id=s.parent_id AND sp.deleted=false
@@ -174,5 +175,17 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file