Documentation

Resource
in package

Maps ARCHE resource metadata to a BibLaTeX bibliographic entry.

Fro BibTeX/BibLaTeX bibliographic entry reference see:

  • https://www.bibtex.com/g/bibtex-format/#fields
  • chapter 8 of http://tug.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
  • https://mirror.kumi.systems/ctan/macros/latex/contrib/biblatex/doc/biblatex.pdf
Tags
author

zozlak

Table of Contents

Constants

NO_OVERRIDE  = 'NOOVERRIDE'
SRC_PARENT  = 'parent'
SRC_TOP_COLLECTION  = 'topCollection'
TYPE_CONST  = 'const'
TYPE_CURRENT_DATE  = 'currentDate'
TYPE_EPRINT  = 'eprint'
TYPE_LITERAL  = 'literal'
TYPE_PERSON  = 'person'
TYPE_URL  = 'url'

Properties

$config  : object
$lang  : string
$log  : Log|null
$mapping  : object
$meta  : DatasetInterface
$node  : TermInterface
$res  : RepoResourceInterface

Methods

__construct()  : mixed
getBiblatex()  : string
applyOverrides()  : void
escapeBiblatex()  : string
formatAll()  : string
Gathers all values of given properties.
formatKey()  : string
formatParent()  : string|null
formatPerson()  : string
formatPersons()  : string
formatProperty()  : string|null
getLiteral()  : string|null

Constants

NO_OVERRIDE

public mixed NO_OVERRIDE = 'NOOVERRIDE'

SRC_PARENT

public mixed SRC_PARENT = 'parent'

SRC_TOP_COLLECTION

public mixed SRC_TOP_COLLECTION = 'topCollection'

TYPE_CONST

public mixed TYPE_CONST = 'const'

TYPE_CURRENT_DATE

public mixed TYPE_CURRENT_DATE = 'currentDate'

TYPE_EPRINT

public mixed TYPE_EPRINT = 'eprint'

TYPE_LITERAL

public mixed TYPE_LITERAL = 'literal'

TYPE_PERSON

public mixed TYPE_PERSON = 'person'

Properties

Methods

getBiblatex()

public getBiblatex(string $lang[, string|null $override = null ][, string|null $property = null ]) : string
Parameters
$lang : string
$override : string|null = null
$property : string|null = null
Return values
string

applyOverrides()

private applyOverrides(array<string, string> &$fields[, string|null $override = null ]) : void
Parameters
$fields : array<string, string>
$override : string|null = null
Tags
throws
RuntimeException

escapeBiblatex()

private escapeBiblatex(string $value) : string
Parameters
$value : string
Return values
string

formatAll()

Gathers all values of given properties.

private formatAll(array<string|int, string> $properties[, TermInterface|null $resource = null ][, bool $onlyUrl = false ][, string|null $nmsp = null ][, bool $reqNmsp = false ]) : string

If a given property has at least one literal value in the preferred language, literal values in other language are discarded.

Empty values are discarded.

Parameters
$properties : array<string|int, string>
$resource : TermInterface|null = null
$onlyUrl : bool = false
$nmsp : string|null = null
$reqNmsp : bool = false
Return values
string

formatKey()

private formatKey() : string
Return values
string

formatParent()

private formatParent(string $type, string $property) : string|null
Parameters
$type : string
$property : string
Return values
string|null

formatPerson()

private formatPerson(TermInterface $person) : string
Parameters
$person : TermInterface
Return values
string

formatPersons()

private formatPersons(array<string|int, string> $properties[, TermInterface|string|null $resource = null ]) : string
Parameters
$properties : array<string|int, string>
$resource : TermInterface|string|null = null
Return values
string

formatProperty()

private formatProperty(mixed $definition) : string|null
Parameters
$definition : mixed
Tags
throws
RuntimeException
Return values
string|null

getLiteral()

private getLiteral(QuadTemplate|PredicateTemplate $tmpl) : string|null
Parameters
$tmpl : QuadTemplate|PredicateTemplate
Return values
string|null

        
On this page

Search results