Méthode | Description | |
---|---|---|
__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. |
public __construct ( $filterGroup ) | ||
$filterGroup | FilterGroup |
public createAlternateIdentifiersNode ( $doc, $issue, $article, $galley ) : DOMElement | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
Résultat | DOMElement |
public createCreatorsNode ( $doc, $issue, $article, $galley, $galleyFile, $publisher, $objectLocalePrecedence ) : DOMElement | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
$galleyFile | SubmissionFile | |
$publisher | string | |
$objectLocalePrecedence | array | |
Résultat | DOMElement |
public createDatesNode ( $doc, $issue, $article, $galley, $galleyFile, $publicationDate ) : DOMElement | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
$galleyFile | SubmissionFile | |
$publicationDate | string | |
Résultat | DOMElement |
public createDescriptionsNode ( $doc, $issue, $article, $galley, $galleyFile, $objectLocalePrecedence ) : DOMElement | null | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | Alley | |
$galleyFile | SubmissionFile | |
$objectLocalePrecedence | array | |
Résultat | DOMElement | null | Can be null if a size cannot be identified for the given object. |
public createRelatedIdentifiersNode ( $doc, $issue, $article, $galley ) : DOMElement | null | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
Résultat | DOMElement | null |
public createResourceTypeNode ( $doc, $issue, $article, $galley, $galleyFile ) : DOMElement | null | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
$galleyFile | SubmissionFile | |
Résultat | DOMElement | null | Can be null if a size cannot be identified for the given object. |
public createRootNode ( $doc ) : DOMElement | ||
$doc | DOMDocument | |
Résultat | DOMElement |
public createSizesNode ( $doc, $issue, $article, $galley, $galleyFile ) : DOMElement | null | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
$galleyFile | SubmissionFile | |
Résultat | DOMElement | null | Can be null if a size cannot be identified for the given object. |
public createTitlesNode ( $doc, $issue, $article, $galley, $galleyFile, $objectLocalePrecedence ) : DOMElement | ||
$doc | DOMDocument | |
$issue | Issue | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
$galleyFile | SubmissionFile | |
$objectLocalePrecedence | array | |
Résultat | DOMElement |
public getIssueInformation ( $issue, $objectLocalePrecedence = null ) : array | string | ||
$issue | Issue | |
$objectLocalePrecedence | array | |
Résultat | array | string | An array of localized issue titles or a string if a locale has been given. |
public getIssueToc ( $issue, $objectLocalePrecedence ) : string | ||
$issue | Issue | |
$objectLocalePrecedence | array | |
Résultat | string |
public getObjectLocalePrecedence ( $context, $article, $galley ) : array | ||
$context | Context | |
$article | PublishedArticle | |
$galley | ArticleGalley | |
Résultat | 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. | |
Résultat | 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. | |
Résultat | array | Re-ordered localized data. |
public process ( &$pubObject ) : DOMDocument | ||
$pubObject | Issue|PublishedArticle|ArticleGalley | |
Résultat | DOMDocument |
public translateLanguageToLocale ( $language ) : string | null | ||
$language | string 2- or 3-letter ISO language code | |
Résultat | string | null | An OJS locale or null if no matching locale could be found. |