OCLC Developer Network

Response Details

Records output from the LCNAF web services is available in several formats including:

  • MARCXML
  • OAIHeader
  • XER
  • BER

Example SRU MARCXML output

<searchRetrieveResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/zing/srw/ http://www.loc.gov/standards/sru/sru1-1archive/xml-files/srw-types.xsd" xmlns="http://www.loc.gov/zing/srw/">
    <version>1.1</version>
    <numberOfRecords>1</numberOfRecords>
    <resultSetId>cy7apo</resultSetId>
    <resultSetIdleTime>300</resultSetIdleTime>
    <records xmlns:ns1="http://www.loc.gov/zing/srw/">
        <record>
            <recordSchema>info:srw/schema/1/marcxml-v1.1</recordSchema>
            <recordPacking>xml</recordPacking>
            <recordData>
                <mx:record xmlns="http://www.w3.org/TR/xhtml1/strict" xmlns:mx="http://www.loc.gov/MARC21/slim">
                    <mx:leader>00000nz  a2200000n  45 0</mx:leader>
                    <mx:controlfield tag="001">oca07732011 </mx:controlfield>
                    <mx:controlfield tag="005">20080410120423.0</mx:controlfield>
                    <mx:controlfield tag="008">080410n| acannaabn          |n aaa      </mx:controlfield>
                    
                    <mx:datafield ind1=" " ind2=" " tag="010">
                        <mx:subfield code="a">n 2008026273</mx:subfield>
                    </mx:datafield>
                    <mx:datafield ind1=" " ind2=" " tag="040">
                        <mx:subfield code="a">DLC</mx:subfield>
                        <mx:subfield code="b">eng</mx:subfield>
                        <mx:subfield code="c">DLC</mx:subfield>
                    </mx:datafield>
                    <mx:datafield ind1="1" ind2=" " tag="100">
                        <mx:subfield code="a">Coombs, Karen A.</mx:subfield>
                    </mx:datafield>
                    <mx:datafield ind1=" " ind2=" " tag="670">
                        
                        <mx:subfield code="a">Coombs, Karen A. Library blogging, c2008:</mx:subfield>
                        <mx:subfield code="b">ECIP t.p. (Karen A. Coombs) data view (Head of Web Services at the University of Houston Libraries; MLS and MS in Information Management from Syracuse University)</mx:subfield>
                    </mx:datafield>
                    <mx:datafield ind1=" " ind2=" " tag="999">
                        <mx:subfield code="a">58</mx:subfield>
                    </mx:datafield>
                </mx:record>
            </recordData>
            <recordPosition>1</recordPosition>
        </record>
    </records>
    <echoedSearchRetrieveRequest xmlns:ns2="http://www.loc.gov/zing/srw/">
        <version>1.1</version>
        <query>local.LCCN = &quot;n2008-26273&quot;</query>
        <xQuery>
            <ns3:searchClause xmlns:ns3="http://www.loc.gov/zing/cql/xcql/">
            <ns3:index>local.LCCN</ns3:index><ns3:relation>
                <ns3:value>=</ns3:value>
            </ns3:relation>
                <ns3:term>n2008-26273</ns3:term>
            </ns3:searchClause>
        </xQuery>
        <startRecord>1</startRecord>
        <maximumRecords>10</maximumRecords>
        <recordPacking>xml</recordPacking>
        <recordSchema>info:srw/schema/1/marcxml-v1.1</recordSchema>
        <resultSetTTL>300</resultSetTTL>
        <sortKeys></sortKeys>
    </echoedSearchRetrieveRequest>
    <extraResponseData xmlns:ns4="http://www.loc.gov/zing/srw/">
        <ns5:extraData xmlns="http://oclc.org/srw/extraData" xmlns:ns5="http://oclc.org/srw/extraData">
    <ns5:databaseTitle>Library of Congress Name Authority File</ns5:databaseTitle>
        </ns5:extraData>
    </extraResponseData>
</searchRetrieveResponse>

Follow the OCLC Developer Network:

The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »

© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates


Powered by Drupal, an open source content management system