\com\bmj\jnp\plugins\jnp_highwireHighWireXmlArticle

HighWire XML article

Summary

Methods
Properties
Constants
preprocess()
load()
getDoi()
filter()
No public properties found
No constants found
getUrl()
getPubDate()
getTitle()
getContent()
getExcerpt()
getAuthors()
getVolume()
getIssue()
getFpage()
getTerms()
getTocSection()
getOpenAccess()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

preprocess()

preprocess(string  $data) : string

regex hacks to clean up HighWire's mess

Parameters

string $data

Mess to clean up

Returns

string —

Cleaned up mess

load()

load(array  $article = array(), array  $meta = array(), \WP_Post  $_post = null) : \com\bmj\jnp\plugins\jnp_highwire\HighWireArticle

Load HighWire article

Parameters

array $article

Article post info

array $meta

Article post_meta

\WP_Post $_post

Returns

\com\bmj\jnp\plugins\jnp_highwire\HighWireArticle

getDoi()

getDoi() : string

Extract the DOI

Returns

string —

DOI, null if missing

filter()

filter(  $selects,   $args,   $taxonomies) 

Parameters

$selects
$args
$taxonomies

getUrl()

getUrl() : string

Extract the article URL

Returns

string —

Article URL

getPubDate()

getPubDate() : string

Extract the publication date

Throws

\com\bmj\jnp\plugins\jnp_highwire\HighWireInvalidDateException
\com\bmj\jnp\plugins\jnp_highwire\HighWirePubDateException

Returns

string —

WordPress post date format

getTitle()

getTitle() : string

Extract the title

Returns

string —

Title

getContent()

getContent() : string

Get the abstract content

Throws

\com\bmj\jnp\plugins\jnp_highwire\HighWireFileGetContentsException

Returns

string —

Raw article abstract

getExcerpt()

getExcerpt() : string

Extract the excerpt

Throws

\com\bmj\jnp\plugins\jnp_highwire\HighWireSimpleXmlException

Returns

string —

Post excerpt

getAuthors()

getAuthors() : array<mixed,string>

Extract the list of authors

Returns

array<mixed,string> —

List of author names.

getVolume()

getVolume() : integer

Extract the article volume

Returns

integer —

Volume number

getIssue()

getIssue() : integer

Extract the issue number

Returns

integer —

Issue number

getFpage()

getFpage() : integer

Extract the first page number

Returns

integer —

First page number

getTerms()

getTerms() : array<mixed,integer>

Extract list of collections

Returns

array<mixed,integer> —

List of term_id's

getTocSection()

getTocSection() : array<mixed,integer>

Extract table of contents section

Returns

array<mixed,integer> —

List of term_id's

getOpenAccess()

getOpenAccess() : boolean

Extract open access status

Returns

boolean —

Open Access status