Метод | Описание | |
---|---|---|
__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 __construct ( $filterGroup ) | ||
$filterGroup | FilterGroup |
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 getRootNodeName ( ) : string | ||
Результат | string |
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. |