Demo
in package
implements
DoiLinkerInterface
Demo (fake data) DOI linker
Tags
Interfaces, Classes, Traits and Enums
- DoiLinkerInterface
- DOI linker interface
Table of Contents
- $icons : array<string|int, mixed>
- Possible icon values
- getLinks() : array<string|int, mixed>
- Given an array of DOIs, perform a lookup and return an associative array of arrays, keyed by DOI. Each array contains one or more associative arrays with required 'link' (URL to related resource) and 'label' (display text) keys and an optional 'icon' (URL to icon graphic) or localIcon (name of configured icon in theme) key.
Properties
$icons
Possible icon values
protected
array<string|int, mixed>
$icons
= ['browzine-issue', 'browzine-pdf', null]
Methods
getLinks()
Given an array of DOIs, perform a lookup and return an associative array of arrays, keyed by DOI. Each array contains one or more associative arrays with required 'link' (URL to related resource) and 'label' (display text) keys and an optional 'icon' (URL to icon graphic) or localIcon (name of configured icon in theme) key.
public
getLinks(array<string|int, mixed> $doiArray) : array<string|int, mixed>
Parameters
- $doiArray : array<string|int, mixed>
-
DOIs to look up