DPLA Data
✓ Published0🌍 Public
CCliffordAnderson
Last edited Mar 4, 2016
Created on Feb 27, 2016
This example queries the Digital Public Library of America (DPLA) API to fetch and display search results as a simple webpage. It shows a list of image thumbnails with titles, each linked to its source item. The code uses the XQuery `fetch:text` or `fn:json-doc` functions to retrieve JSON data from the DPLA API, then parses it with `json:parse` or direct JSON navigation. It constructs HTML `<li>` elements containing an `<img>` tag and anchor, filtering out results without a thumbnail or title.
AI-generated description