Table of Contents

Link Resolver Drivers

This page contains details on writing a custom driver for an OpenURL Link Resolver not already supported by VuFind®.

Note that Link Resolver Drivers are only used when the “embed” setting is turned on in the [OpenURL] section of config.ini. This setting allows link resolver results to be directly embedded in the VuFind® search page rather than opening in a separate window.

Key Plugin Details

Default Namespace: \VuFind\Resolver\Driver

Interface: \VuFind\Resolver\Driver\DriverInterface

Service Locator Configuration Section in module.config.php: ['vufind']['plugin_managers']['resolver_driver']

Service Manager Name for Service Locator: VuFind\ResolverDriverPluginManager (VuFind® 2.x-4.x), VuFind\Resolver\Driver\PluginManager (VuFind® 5.0+)

See the General Plugin Information page for more details on VuFind® plugins.

Basic Structure

Key Methods

This method takes an OpenURL as a parameter and retrieves details from the link resolver.

getResolverUrl

:!: Introduced in VuFind® 4.0

This method takes an OpenURL as a parameter and returns a URL for accessing that item in the link resolver's native interface.

This method takes the output of fetchLinks and parses it into an array of associative arrays with the following keys:

:!: Introduced in VuFind® 4.0

This method returns true when the direct link provided by getResolverUrl offers a human-friendly interface; it should return false if the link resolver offers a data-only interface (for example, in the case of JOP).