메소드 | 설명 | |
---|---|---|
__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. |
public createExtentNode ( $doc, $file ) : DOMElement | ||
$doc | DOMDocument | |
$file | PKPFile | |
리턴 | DOMElement |
public createHeadNode ( $doc ) : DOMElement | ||
$doc | DOMDocument | |
리턴 | DOMElement |
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 |
public createJournalIssueNode ( $doc, $issue, $journalLocalePrecedence ) : DOMElement | ||
$doc | DOMDocument | |
$issue | Issue | |
$journalLocalePrecedence | array | |
리턴 | DOMElement |
public createOtherTextNode ( $doc, $locale, $description ) : DOMElement | ||
$doc | DOMDocument | |
$locale | string | |
$description | string | |
리턴 | DOMElement |
public createPublisherNode ( $doc, $journalLocalePrecedence ) : DOMElement | ||
$doc | DOMDocument | |
$journalLocalePrecedence | array | |
리턴 | DOMElement |
public createRelatedNode ( $doc, $workOrProduct, $relationCode, $ids ) : DOMElement | ||
$doc | DOMDocument | |
$workOrProduct | string | |
$relationCode | string One of the O4DOI_RELATION_* constants. | |
$ids | array | |
리턴 | DOMElement |
public createRootNode ( $doc, $rootNodeName ) : DOMElement | ||
$doc | DOMDocument | |
$rootNodeName | string | |
리턴 | DOMElement |
public createSerialPublicationNode ( $doc, $journalLocalePrecedence, $epubFormat = null ) : DOMElement | ||
$doc | DOMDocument | |
$journalLocalePrecedence | array | |
$epubFormat | O4DOI_EPUB_FORMAT_* | |
리턴 | DOMElement |
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 |
public createSerialWorkNode ( $doc, $journalLocalePrecedence ) : DOMElement | ||
$doc | DOMDocument | |
$journalLocalePrecedence | array | |
리턴 | DOMElement |
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 |
public getDOIStructuralType ( ) : string | ||
리턴 | string |
public getObjectLocalePrecedence ( $context, $article, $galley ) : array | ||
$context | Context | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
리턴 | array | A list of valid PKP locales in descending order of priority. |
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. |
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. |
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. |