Simple example of requesting items from the SRU gateway at the Library of Congress
✓ Published0🌍 Public
CCliffordAnderson
Last edited Jul 18, 2013
Created on Jul 17, 2013
This example demonstrates how to query the Library of Congress SRU gateway for a single bibliographic record, using the Library of Congress Control Number (LCCN) as the search key. It shows how to request metadata in a specific format—here, MODS, though DC and MARCXML are also supported—and then extract the record data from the SRU XML response. The code relies on the `http:send-request` function from the EXPath HTTP Client to perform the GET request, and uses XQuery 3.0 with namespace declarations for MODS, Dublin Core, MARCXML, and the SRU/Z39.50 protocol. The returned record is selected via the `zs:recordData` path.
AI-generated description