The Protocol That Refuses to Retire
Z39.50 was standardized in 1988. In technology years, that makes it ancient. Yet it remains the primary protocol for searching and retrieving bibliographic records across library systems worldwide. WorldCat, the Library of Congress, national union catalogs, and thousands of individual libraries expose Z39.50 servers.
Why does it persist? Because it solves a specific problem exceptionally well: letting one library system search another library system's catalog and retrieve full MARC21 records. No screen scraping, no custom integrations, no API keys. Just a standardized protocol that works.
ERMLib includes both a Z39.50 client and server, making it a full participant in the global library interoperability network.
The Client: Copy Cataloging
When a cataloger in ERMLib needs to create a record for a new acquisition, the first step is checking whether someone else has already cataloged it. The Z39.50 client makes this fast.
How it works in ERMLib:
- The cataloger enters a search query -- typically ISBN, title, or LCCN
- ERMLib searches configured Z39.50 targets in parallel (e.g., WorldCat, Library of Congress, national library)
- Results appear in a unified list with source attribution
- The cataloger selects a record and imports it with one click
- The imported MARC21 record lands in the editing interface for local customization
We support all standard Bib-1 attribute sets for search, including keyword, author, title, subject, ISBN, ISSN, and LCCN. Boolean combinations are supported.
Connection Pooling
Z39.50 connections are expensive to establish. ERMLib maintains a connection pool for frequently used targets, keeping connections alive and reusing them across searches. This reduces average search time from 3-5 seconds to under 1 second for pooled targets.
Timeout and Fallback
External servers are unpredictable. ERMLib enforces configurable timeouts per target and returns partial results if some targets fail. A slow WorldCat connection does not block results from the Library of Congress.
The Server: Sharing Your Catalog
ERMLib also exposes a Z39.50 server, allowing other libraries and union catalogs to search your catalog remotely. This is essential for:
- Union catalog participation -- contributing your holdings to regional or national databases
- Interlibrary loan -- letting other libraries verify your holdings before submitting requests
- Consortial cataloging -- sharing records within a library consortium
The server supports standard Bib-1 searches against your bibliographic and holdings records, with configurable access controls to limit who can connect.
SRU/SRW: The Modern Companion
Alongside Z39.50, ERMLib supports SRU (Search/Retrieve via URL) and SRW (Search/Retrieve Web Service). These HTTP-based protocols offer the same search and retrieval functionality in a format that is friendlier to modern web applications. They use CQL (Contextual Query Language) for search and return results in MARCXML.
Configuration
Z39.50 targets are configured under Settings > Interoperability > Z39.50. Each target requires a hostname, port, database name, and optional authentication credentials. ERMLib ships with pre-configured profiles for the most commonly used targets, including WorldCat, Library of Congress, and several national libraries.
Z39.50 may not be glamorous, but it is the plumbing that makes library interoperability work. We have invested significant engineering effort into making ERMLib's implementation fast, reliable, and standards-compliant.