OCLC Developer Network

Search Functionality

Search Functionality

The Search functionality follows the Library of Congress' SRU CQL syntax and supports several configurable parameters which can be embedded in the command. See the SRU CQL syntax for full details. The basic usage of the Web service is as follows:

<Web Service Base URL> "&query=" <Query> ["+or+"|"+and+" <Query>]

Where:

<Web Service Base URL>

=the base URL of the WorldCat Registry Search Web service: http://worldcat.org/webservices/registry/search/Institutions?

<Query>

=<term> "%22" <value> "%22"

The Query supports any/all of the following terms, where each term represents a searchable field in the WorldCat Registry:

<Web Service Base URL>=the base URL of the WorldCat Registry Search Web service: http://worldcat.org/webservices/registry/search/Institutions?
<Query>=<term> "%22" <value> "%22"

The Query supports any/all of the following terms, where each term represents a searchable field in the WorldCat Registry:

local.oclcAccountNameThis is the account name at OCLC, which is not visible in the WorldCat Registry interface. This may or may not match the marketing name typically used to refer to the institution. This term is included in name searches for completeness.
local.institutionNameThis is the Institution Name displayed in the WorldCat Registry interface.
local.institutionAliasThis is the Alias (an "also known as" name for the institution) displayed in the WorldCat Registry interface.
local.libTypeUserThis is the Institution Type displayed in the WorldCat Registry interface. This is a numeric value that utilizes the following key:

1    ARL Library
2    Academic Library
3    Public Library
4    School Library
5    Other (Corporate or Special Library)
6    State or National Library
7    Library Networks or Processing Center
8    Government Library (except State or National Library)
11   Vendor
13   Museum
14   Archives
15   Regional Service Provider
16   Correctional Facility Library
17   Dental Library
18   Hospital Library
19   Law Library
20   Medical Library
21   Music Library
22   Nursing Library
23   Veterinary Library
999 Unknown
local.countryThis is the two-character Country Code, per ISO 3166.
local.cityThis is the name of the City.
local.stateThis is the name of the State/Province, per ISO 3166-2.
local.postalCdThis is the Postal Code.
local.regIDThis is the WorldCat Registry ID, which is the unique and persistent numeric identifier assigned to an institution's profile in the WorldCat Registry.
local.oclcSymbolThis is the OCLC Symbol, an alphabetic and/or numeric identifier assigned to an institution that participates in the OCLC cooperative.
local.marcOrgCodeThis is the alphabetic U.S. MARC Organizational Code
local.sanThis is the Standard Address Number (SAN)
local.ncesIdFor U.S. libraries, this is the alphabetic and/or numeric National Center for Education Statistics (NCES) Identifier
local.ausearch by Australian National Union Catalog:
A unique identifier issued by the National Library of Australia for organizations which contribute information to the Australian National Bibliographic Database (ANBD)
e.g. ANL
local.nzLibSymbolsearch by New Zealand Library Symbol:
A unique library identifier issued by the National Library of New Zealand. Its primary purpose is to facilitate interloan, e.g.WN for National Library of New Zealand, Wellington.
e.g. WN
local.ISILsearch by International Standard Identifier for Libraries (ISIL):
A unique identifier issued by the ISIL Agency.
local.logicalDeleteLimit to records that are not deleted. Deleted records have a 1 in this field
  

Usage Examples

This URL provides an example of the WorldCat Registry Search Web service searching for all public libraries in Columbus, Ohio::

http://worldcat.org/webservices/registry/search/Institutions?version=
1.1&operation=searchRetrieve&recordSchema=
info%3Arfa%2FrfaRegistry%2FschemaInfos%2FadminData&maximumRecords=
10&startRecord=1&resultSetTTL=300&recordPacking=xml&query=
local.city+%3D+%22columbus%22+and+local.libTypeUser+exact+%223%22+and+
local.state+exact+%22US-OH%22&x-info-6-deletedRecord=

Click and copy this link

This URL provides an example of the WorldCat Registry Search Web service searching for all public libraries in Texas that have the string "Baylor" within their name:

http://worldcat.org/webservices/registry/search/Institutions?version=
1.1&operation=searchRetrieve&recordSchema=
info%3Arfa%2FrfaRegistry%2FschemaInfos%2FadminData&maximumRecords=
10&startRecord=1&resultSetTTL=300&recordPacking=xml&query=
local.oclcAccountName+all+%22baylor%22+or+local.institutionName+all+%2
2baylor%22+and+local.libTypeUser+exact+%223%22+and+local.state+exact+%
22US-TX%22&x-info-6-deletedRecord=

Click and copy this link

Syntax for Logically Deleted Records

A logically deleted record is designated in the XML record within the <institution> element by the presence of the logicalDelete="yes" attribute.

<institution logicalDelete="yes">

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