Docline API Configuration
This integration allows your library to connect directly with the National Library of Medicine's DOCLINE system, streamlining your interlibrary loan workflow by enabling the submission and updating of DOCLINE requests directly through the ILLiad client.
This guide will walk you through the complete setup process, from initial configuration to verifying that everything is working correctly.
The following video demonstrates how to generate API credentials, authenticate with DOCLINE, and verify your connection:
Prerequisites
Before you begin setting up the DOCLINE API integration, make sure you have the following in place:
System Requirements
- Web browser access - You'll need a web browser for the authentication process
- ILLiad Administrator access - You'll need access to the ILLiad Customization Manager
Configuration Requirements
- WebApiUrl configured - Your
WebApiUrl
customization key must be properly set up in ILLiad. This is essential for the OAuth authentication process to work correctly. The underlying customization key is namedDoclineApiCredentials
.
The WebApiUrl setting is crucial for DOCLINE integration because it's used to create the callback URL that DOCLINE will use during the authentication process. Without this, the setup cannot proceed. This setting cannot contain localhost
or 127.0.0.1
.
Initial Setup Overview
Setting up DOCLINE integration involves three main phases:
- Generate API credentials - Create the connection credentials that ILLiad will use to communicate with DOCLINE
- Authenticate with DOCLINE - Complete the OAuth authentication process to authorize ILLiad to access your DOCLINE account
- Verify the connection - Test that everything is working correctly
The entire process typically takes just a few minutes and is done through the ILLiad Customization Manager interface.
Multi-Site Installations
If you're running a shared ILLiad server that serves multiple libraries, each site gets its own set of credentials. This ensures that each library maintains independent access to DOCLINE services.
The system automatically manages separate credentials based on your site's NVTGC, so you don't need to worry about cross-site authentication conflicts.
Step-by-Step Setup
Step 1: Open the DOCLINE Configuration
- Open the ILLiad Customization Manager
- In the left navigation menu, expand System > Docline
- Locate and click on DoclineApiCredentials in the customization keys list
You'll see a configuration area specifically for DOCLINE with a credentials field and several buttons. Initially, the credentials field will be empty and you'll see a "Generate Credentials" button.
Step 2: Generate Your API Credentials
- Click the Generate Credentials button
When you click this button, ILLiad will:
- Connect to the National Library of Medicine's DOCLINE system
- Register your ILLiad installation as an authorized application
- Generate unique API credentials specifically for your library
- Store these credentials securely in your ILLiad database
- Wait for the credential generation to complete
You'll see the credentials field populate with your new API credentials (displayed in a format like ClientId:ClientSecret
). The field is read-only for security purposes.
- Verify the credentials were generated successfully
Once credentials are generated, you'll notice these important changes:
- The credentials field now contains your API credentials
- The "Generate Credentials" button has been replaced with a "Clear Credentials" button
- A "Log In to DOCLINE" button is now available
Step 3: Authenticate with DOCLINE
Now that you have credentials, you need to complete the authentication process:
- Click the Log In to DOCLINE button
When you click this button, your default web browser will automatically open and navigate to the DOCLINE authentication page. Make sure popup blockers aren't preventing the authentication window from opening.
- Complete the OAuth authentication in your web browser
Your default web browser will open and navigate to the DOCLINE authentication page. You'll be prompted to:
- Log in to your DOCLINE account using your NLM credentials
- Authorize ILLiad to access your DOCLINE account on behalf of your library
- Complete the authorization process
Follow the prompts in your browser to complete the authorization. Once finished, you can close the browser window and return to the Customization Manager.
Keep your DOCLINE login credentials handy - you'll need them to complete the OAuth authorization process. These are the credentials you use to log in to the DOCLINE website, not the API credentials that were just generated.
Ensure your web browser can access the DOCLINE website and that any security software or popup blockers won't interfere with the authentication process.
Step 4: Confirm Successful Authentication
Back in the Customization Manager, you should see that the authentication was successful:
- Verify the button has changed to Log Out of DOCLINE
When you see the "Log Out of DOCLINE" button, it means:
- Your credentials were successfully generated
- The OAuth authentication process completed successfully
- ILLiad is now authorized to communicate with DOCLINE on your behalf
- The integration is ready to use
Verification
To confirm that your DOCLINE API integration is working correctly:
Test the Connection
- Check the authentication status - In the Customization Manager, you should see the "Log Out of DOCLINE" button, indicating an active, authenticated connection.
- Verify automatic token refresh - The system will automatically manage your authentication tokens behind the scenes. You don't need to manually refresh or renew them.
Expected Behavior After Setup
Once setup is complete, you should expect:
- Seamless integration - DOCLINE functionality will be available throughout ILLiad without requiring additional authentication steps
- Automatic token management - The system handles authentication token renewal automatically
- Persistent authentication - Your authentication will remain active until you explicitly log out or clear credentials
Troubleshooting Common Issues
"WebApiUrl not found" Error
If you see the error "WebApiUrl not found. Unable to authenticate with DOCLINE. Please check your configuration.":
- Check that your WebApiUrl customization key is properly configured (remember that it must not contain
localhost
or127.0.0.1
) - Verify that the WebApiUrl is accessible from your ILLiad server
- Contact your system administrator if you're unsure about your WebApiUrl configuration
Credential Generation Fails
If credential generation doesn't work:
- Check firewall settings to ensure outbound HTTPS connections are allowed
- Try the generation process again after a few minutes
Browser Authentication Issues
If the OAuth authentication process fails:
- Ensure your web browser can access the DOCLINE website
- Verify your DOCLINE account credentials are correct
- Check that popup blockers aren't preventing the authentication window from opening
- Try using a different web browser if issues persist
- For administrators: verify that the registry data value at
Computer\HKEY_CLASSES_ROOT\x-atlas-illiad-docline\shell\open\command
is the current location of CustomizationManager.exe.
Credential Invalidation Due to URL Change
If you see an error about WebApiUrl having changed since credentials were generated:
- Your DOCLINE credentials will be automatically cleared
- Click "Generate Credentials" to create new credentials
- Complete the authentication process again
This occurs when the WebApiUrl customization key is modified after DOCLINE credentials have been generated, which invalidates the existing credentials for security reasons.
Next Steps
Now that your DOCLINE API integration is set up and verified, you're ready to explore the full capabilities of the DOCLINE API integration:
Configure Docline field translations Configure Docline work form mappings Docline Borrowing request workflow Docline Lending request workflow
Start Using DOCLINE Features
With the integration active, you can now:
- Submit interlibrary loan requests through DOCLINE directly from ILLiad
- Receive automatic status updates in ILLiad on your DOCLINE requests
- Streamline your workflow between ILLiad and DOCLINE systems
Your API credentials are stored securely in your ILLiad database. Only use the "Clear Credentials" option if you need to reset your integration or if instructed to do so by technical support.
This documentation covers the basic setup process for DOCLINE API integration. For advanced configuration options and troubleshooting, please refer to the additional guides in this section.