PHP 클래스 O4DOIXmlFilter, ojs

상속: extends NativeExportFilter
파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $filterGroup ) Constructor
createExtentNode ( $doc, $file ) : DOMElement Create an extent node.
createHeadNode ( $doc ) : DOMElement Create and return the head node.
createIdentifierNode ( $doc, $workOrProduct, $idType, $id ) : DOMElement Create a work or product id node.
createJournalIssueNode ( $doc, $issue, $journalLocalePrecedence ) : DOMElement Create the journal issue node.
createOtherTextNode ( $doc, $locale, $description ) : DOMElement Create a description text node.
createPublisherNode ( $doc, $journalLocalePrecedence ) : DOMElement Create a publisher node.
createRelatedNode ( $doc, $workOrProduct, $relationCode, $ids ) : DOMElement Create a related work or product node.
createRootNode ( $doc, $rootNodeName ) : DOMElement Create and return the root node.
createSerialPublicationNode ( $doc, $journalLocalePrecedence, $epubFormat = null ) : DOMElement Generate O4DOI serial publication node.
createSerialVersionNode ( $doc, $issn, $productForm, $epubFormat = null ) : DOMElement Create a serial version node.
createSerialWorkNode ( $doc, $journalLocalePrecedence ) : DOMElement Generate O4DOI serial work node.
createTitleNode ( $doc, $locale, $localizedTitle, $titleType ) : DOMElement Create a title node.
getDOIStructuralType ( ) : string Get DOIStructuralType
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.
getRootNodeName ( ) : string Get root node name
getTranslationsByPrecedence ( $localizedData, $localePrecedence ) : array Re-order localized data by locale precedence.
isWork ( $context, $plugin ) : boolean Get whether the object exported is considered as work
translateLanguageToLocale ( $language ) : string | null Try to translate an ISO language code to an OJS locale.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

createExtentNode() 공개 메소드

Create an extent node.
public createExtentNode ( $doc, $file ) : DOMElement
$doc DOMDocument
$file PKPFile
리턴 DOMElement

createHeadNode() 공개 메소드

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

createIdentifierNode() 공개 메소드

Create a work or product id node.
public createIdentifierNode ( $doc, $workOrProduct, $idType, $id ) : DOMElement
$doc DOMDocument
$workOrProduct string "Work" or "Product"
$idType string One of the O4DOI_ID_TYPE_* constants
$id string The ID.
리턴 DOMElement

createJournalIssueNode() 공개 메소드

Create the journal issue node.
public createJournalIssueNode ( $doc, $issue, $journalLocalePrecedence ) : DOMElement
$doc DOMDocument
$issue Issue
$journalLocalePrecedence array
리턴 DOMElement

createOtherTextNode() 공개 메소드

Create a description text node.
public createOtherTextNode ( $doc, $locale, $description ) : DOMElement
$doc DOMDocument
$locale string
$description string
리턴 DOMElement

createPublisherNode() 공개 메소드

Create a publisher node.
public createPublisherNode ( $doc, $journalLocalePrecedence ) : DOMElement
$doc DOMDocument
$journalLocalePrecedence array
리턴 DOMElement

createRelatedNode() 공개 메소드

Create a related work or product node.
public createRelatedNode ( $doc, $workOrProduct, $relationCode, $ids ) : DOMElement
$doc DOMDocument
$workOrProduct string
$relationCode string One of the O4DOI_RELATION_* constants.
$ids array
리턴 DOMElement

createRootNode() 공개 메소드

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

createSerialPublicationNode() 공개 메소드

Generate O4DOI serial publication node.
public createSerialPublicationNode ( $doc, $journalLocalePrecedence, $epubFormat = null ) : DOMElement
$doc DOMDocument
$journalLocalePrecedence array
$epubFormat O4DOI_EPUB_FORMAT_*
리턴 DOMElement

createSerialVersionNode() 공개 메소드

Create a serial version node.
public createSerialVersionNode ( $doc, $issn, $productForm, $epubFormat = null ) : DOMElement
$doc DOMDocument
$issn string
$productForm One of the O4DOI_PRODUCT_FORM_* constants
$epubFormat O4DOI_EPUB_FORMAT_*
리턴 DOMElement

createSerialWorkNode() 공개 메소드

Generate O4DOI serial work node.
public createSerialWorkNode ( $doc, $journalLocalePrecedence ) : DOMElement
$doc DOMDocument
$journalLocalePrecedence array
리턴 DOMElement

createTitleNode() 공개 메소드

Create a title node.
public createTitleNode ( $doc, $locale, $localizedTitle, $titleType ) : DOMElement
$doc DOMDocument
$locale string e.g. 'en_US'
$localizedTitle string
$titleType string One of the O4DOI_TITLE_TYPE_* constants.
리턴 DOMElement

getDOIStructuralType() 공개 메소드

Get DOIStructuralType
public getDOIStructuralType ( ) : string
리턴 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.

getRootNodeName() 공개 메소드

Get root node name
public getRootNodeName ( ) : string
리턴 string

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.

isWork() 공개 메소드

Get whether the object exported is considered as work
public isWork ( $context, $plugin ) : boolean
$context Context
$plugin DOIPubIdExportPlugin
리턴 boolean

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.