PHP 클래스 DataciteXmlFilter, ojs

상속: extends NativeExportFilter
파일 보기 프로젝트 열기: pkp/ojs

공개 메소드들

메소드 설명
__construct ( $filterGroup ) Constructor
createAlternateIdentifiersNode ( $doc, $issue, $article, $galley ) : DOMElement Generate alternate identifiers node list.
createCreatorsNode ( $doc, $issue, $article, $galley, $galleyFile, $publisher, $objectLocalePrecedence ) : DOMElement Create creators node.
createDatesNode ( $doc, $issue, $article, $galley, $galleyFile, $publicationDate ) : DOMElement Create a date node list.
createDescriptionsNode ( $doc, $issue, $article, $galley, $galleyFile, $objectLocalePrecedence ) : DOMElement | null Create descriptions node list.
createRelatedIdentifiersNode ( $doc, $issue, $article, $galley ) : DOMElement | null Generate related identifiers node list.
createResourceTypeNode ( $doc, $issue, $article, $galley, $galleyFile ) : DOMElement | null Create a resource type node.
createRootNode ( $doc ) : DOMElement Create and return the root node.
createSizesNode ( $doc, $issue, $article, $galley, $galleyFile ) : DOMElement | null Create a sizes node list.
createTitlesNode ( $doc, $issue, $article, $galley, $galleyFile, $objectLocalePrecedence ) : DOMElement Create titles node.
getClassName ( )
getIssueInformation ( $issue, $objectLocalePrecedence = null ) : array | string Construct an issue title from the journal title and the issue identification.
getIssueToc ( $issue, $objectLocalePrecedence ) : string Construct a table of content for an issue.
getObjectLocalePrecedence ( $context, $article, $galley ) : array Identify the locale precedence for this export.
getPrimaryTranslation ( $localizedData, $localePrecedence ) : mixed | null Identify the primary translation from an array of localized data.
getTranslationsByPrecedence ( $localizedData, $localePrecedence ) : array Re-order localized data by locale precedence.
process ( &$pubObject ) : DOMDocument
translateLanguageToLocale ( $language ) : string | null Try to translate an ISO language code to an OJS locale.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

createAlternateIdentifiersNode() 공개 메소드

Generate alternate identifiers node list.
public createAlternateIdentifiersNode ( $doc, $issue, $article, $galley ) : DOMElement
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
리턴 DOMElement

createCreatorsNode() 공개 메소드

Create creators node.
public createCreatorsNode ( $doc, $issue, $article, $galley, $galleyFile, $publisher, $objectLocalePrecedence ) : DOMElement
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
$galleyFile SubmissionFile
$publisher string
$objectLocalePrecedence array
리턴 DOMElement

createDatesNode() 공개 메소드

Create a date node list.
public createDatesNode ( $doc, $issue, $article, $galley, $galleyFile, $publicationDate ) : DOMElement
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
$galleyFile SubmissionFile
$publicationDate string
리턴 DOMElement

createDescriptionsNode() 공개 메소드

Create descriptions node list.
public createDescriptionsNode ( $doc, $issue, $article, $galley, $galleyFile, $objectLocalePrecedence ) : DOMElement | null
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley Alley
$galleyFile SubmissionFile
$objectLocalePrecedence array
리턴 DOMElement | null Can be null if a size cannot be identified for the given object.

createRelatedIdentifiersNode() 공개 메소드

Generate related identifiers node list.
public createRelatedIdentifiersNode ( $doc, $issue, $article, $galley ) : DOMElement | null
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
리턴 DOMElement | null

createResourceTypeNode() 공개 메소드

Create a resource type node.
public createResourceTypeNode ( $doc, $issue, $article, $galley, $galleyFile ) : DOMElement | null
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
$galleyFile SubmissionFile
리턴 DOMElement | null Can be null if a size cannot be identified for the given object.

createRootNode() 공개 메소드

Create and return the root node.
public createRootNode ( $doc ) : DOMElement
$doc DOMDocument
리턴 DOMElement

createSizesNode() 공개 메소드

Create a sizes node list.
public createSizesNode ( $doc, $issue, $article, $galley, $galleyFile ) : DOMElement | null
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
$galleyFile SubmissionFile
리턴 DOMElement | null Can be null if a size cannot be identified for the given object.

createTitlesNode() 공개 메소드

Create titles node.
public createTitlesNode ( $doc, $issue, $article, $galley, $galleyFile, $objectLocalePrecedence ) : DOMElement
$doc DOMDocument
$issue Issue
$article PublishedArticle
$galley ArticleGalley
$galleyFile SubmissionFile
$objectLocalePrecedence array
리턴 DOMElement

getClassName() 공개 메소드

public getClassName ( )

getIssueInformation() 공개 메소드

Construct an issue title from the journal title and the issue identification.
public getIssueInformation ( $issue, $objectLocalePrecedence = null ) : array | string
$issue Issue
$objectLocalePrecedence array
리턴 array | string An array of localized issue titles or a string if a locale has been given.

getIssueToc() 공개 메소드

Construct a table of content for an issue.
public getIssueToc ( $issue, $objectLocalePrecedence ) : string
$issue Issue
$objectLocalePrecedence array
리턴 string

getObjectLocalePrecedence() 공개 메소드

Identify the locale precedence for this export.
public getObjectLocalePrecedence ( $context, $article, $galley ) : array
$context Context
$article PublishedArticle
$galley ArticleGalley
리턴 array A list of valid PKP locales in descending order of priority.

getPrimaryTranslation() 공개 메소드

Identify the primary translation from an array of localized data.
public getPrimaryTranslation ( $localizedData, $localePrecedence ) : mixed | null
$localizedData array An array of localized data (key: locale, value: localized data).
$localePrecedence array An array of locales by descending priority.
리턴 mixed | null The value of the primary locale or null if no primary translation could be found.

getTranslationsByPrecedence() 공개 메소드

Re-order localized data by locale precedence.
public getTranslationsByPrecedence ( $localizedData, $localePrecedence ) : array
$localizedData array An array of localized data (key: locale, value: localized data).
$localePrecedence array An array of locales by descending priority.
리턴 array Re-ordered localized data.

process() 공개 메소드

또한 보기: Filter::process()
public process ( &$pubObject ) : DOMDocument
$pubObject Issue|PublishedArticle|ArticleGalley
리턴 DOMDocument

translateLanguageToLocale() 공개 메소드

Try to translate an ISO language code to an OJS locale.
public translateLanguageToLocale ( $language ) : string | null
$language string 2- or 3-letter ISO language code
리턴 string | null An OJS locale or null if no matching locale could be found.