<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Jörg</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Networks are a bit special as they cannot be searched for through normal dataset search.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
They have their own endpoint</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
dataset: <a href="https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/constituents?limit=0" id="LPlnk866359">https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/constituents?limit=0</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
publishers: <a href="https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/organization?limit=0" id="LPlnk625973">https://api.gbif.org/v1/network/3aee7756-565e-4dc5-b22c-f997fbd7105c/organization?limit=0</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
See also <a href="https://www.gbif.org/developer/registry#networks" style="margin:0px;background-color:rgb(255, 255, 255)">https://www.gbif.org/developer/registry#networks</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Number of occurrences with images (not the same as number of images - that number isn't available)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="http://api.gbif.org/v1/occurrence/search?mediaType=StillImage&networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c&limit=0" id="LPlnk554551">http://api.gbif.org/v1/occurrence/search?mediaType=StillImage&networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c&limit=0</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important">See also </span><a href="https://www.gbif.org/developer/occurrence#search" id="LPlnk">https://www.gbif.org/developer/occurrence#search</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_1 _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Remember to set the limit to zero - there is no reason to download the results to the user's browser when all we care about is the count.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You can also see <a href="https://hp-colombian-biodiversity.gbif-staging.org/" id="LPlnk">https://hp-colombian-biodiversity.gbif-staging.org/</a> for inspiration and <a href="https://github.com/gbif/hp-colombian-biodiversity/blob/b147c9f7ca2cd8872e90f65420a62000bce55f41/_data/home.yml#L18" title="https://github.com/gbif/hp-colombian-biodiversity/blob/b147c9f7ca2cd8872e90f65420a62000bce55f41/_data/home.yml#L18">how
to implement it</a>.</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_2 _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hope that helps</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Morten</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Hosted-Portals <hosted-portals-bounces@lists.gbif.org> on behalf of Holetschek, Jörg <J.Holetschek@bgbm.org><br>
<b>Sent:</b> Wednesday, March 24, 2021 11:50 AM<br>
<b>To:</b> hosted-portals@lists.gbif.org <hosted-portals@lists.gbif.org><br>
<b>Subject:</b> [Hosted-Portals] Number of datasets, organisations and images to be found in a hosted portal</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Dear all,<br>
<br>
for the entry page, I'm trying to create an overview of the data to be found in our portal (which is based on a network filter): number of occurrences, datasets, publishers and image, similar to the table you can see here:
<a href="https://hp-theme.gbif-staging.org/">https://hp-theme.gbif-staging.org/</a>.<br>
<br>
I managed to get the number of occurrences by using <a href="https://api.gbif.org/v1/occurrence/search?networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c">
https://api.gbif.org/v1/occurrence/search?networkKey=3aee7756-565e-4dc5-b22c-f997fbd7105c</a>, but I failed for the number of datasets/publishers. Apparently the search request for datasets and institutions doesn't support the "network" parameter. And I'm completely
lost for the number of multimedia documents provided for the occurrences - is there any API call for that?<br>
<br>
Thanks and Cheers,<br>
Jörg<br>
<br>
<br>
<br>
_______________________________________________<br>
Hosted-Portals mailing list<br>
Hosted-Portals@lists.gbif.org<br>
<a href="https://lists.gbif.org/mailman/listinfo/hosted-portals">https://lists.gbif.org/mailman/listinfo/hosted-portals</a><br>
</div>
</span></font></div>
</body>
</html>