From 2292c5d47f9e20fc74d8883ce5b6a46953e6697e Mon Sep 17 00:00:00 2001 From: Kelly Stathis Date: Tue, 16 Dec 2025 14:48:24 -0800 Subject: [PATCH 1/2] exclude inactive members from query to fix counts --- plugins/datacite-custom-shortcodes/js/members.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/datacite-custom-shortcodes/js/members.js b/plugins/datacite-custom-shortcodes/js/members.js index 1469620..5f8c465 100644 --- a/plugins/datacite-custom-shortcodes/js/members.js +++ b/plugins/datacite-custom-shortcodes/js/members.js @@ -260,7 +260,7 @@ function getCountryName(countryCode) { function getMembers(member_type) { var xmlhttp = new XMLHttpRequest(); var url = - "https://api.datacite.org/providers?query=-id:txvt&member-type={{member_type}}&exclude-registration-agencies=true&page[size]=400".replace("{{member_type}}", member_type); + "https://api.datacite.org/providers?query=-id:txvt%20AND%20is_active:%5Cu0001&member-type={{member_type}}&exclude-registration-agencies=true&page[size]=400".replace("{{member_type}}", member_type); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { From 39a1e7903bd73e30bba383cea391517529dac915 Mon Sep 17 00:00:00 2001 From: Kelly Stathis Date: Tue, 16 Dec 2025 14:49:17 -0800 Subject: [PATCH 2/2] also exclude inactive consortium organizations --- plugins/datacite-custom-shortcodes/js/members.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/datacite-custom-shortcodes/js/members.js b/plugins/datacite-custom-shortcodes/js/members.js index 5f8c465..5861415 100644 --- a/plugins/datacite-custom-shortcodes/js/members.js +++ b/plugins/datacite-custom-shortcodes/js/members.js @@ -274,7 +274,7 @@ function getMembers(member_type) { function getConsortiumMembers(member_id) { var xmlhttp = new XMLHttpRequest(); var url = - "https://api.datacite.org/providers?consortium-id={{member_id}}&page[size]=400".replace("{{member_id}}", member_id); + "https://api.datacite.org/providers?query=is_active:%5Cu0001&consortium-id={{member_id}}&page[size]=400".replace("{{member_id}}", member_id); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {