From f40f5f6f4a98cb2964c76b777f4aae95a1cdbf1e Mon Sep 17 00:00:00 2001
From: Paul Millar <paul.millar@desy.de>
Date: Wed, 1 Jan 2025 14:02:58 +0100
Subject: [PATCH] Fix bug in calculating total items over all OAI-PMH endpoints

---
 open-data-resources.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/open-data-resources.html b/open-data-resources.html
index ecab085..c1fba35 100644
--- a/open-data-resources.html
+++ b/open-data-resources.html
@@ -60,7 +60,7 @@ title: Open data resources
               [<a href="{{facility.odr.oai-pmh-endpoint.link}}?verb=Identify">Identify</a>]<br/>{%
             if facility.odr.oai-pmh-endpoint.items
               %}Datasets:&nbsp;<b>{{facility.odr.oai-pmh-endpoint.items.count | thousands_separated}}</b>{%
-              assign total_oai_pmh_dataset_count = total_oai_pmh_dataset_count | plus: facility.odr.pan-search-api.dataset_count %}{%
+              assign total_oai_pmh_dataset_count = total_oai_pmh_dataset_count | plus: facility.odr.oai-pmh-endpoint.items.count %}{%
               if facility.odr.oai-pmh-endpoint.items.sets%}
                 <br/>
                 <span class="caret">Categories:&nbsp;{{facility.odr.oai-pmh-endpoint.items.sets.count | thousands_separated}}</span>
-- 
GitLab