Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($filterGroup) | |
createAlternateIdentifiersNode ($doc, $issue, $article, $galley) | |
createCreatorsNode ($doc, $issue, $publication, $galley, $galleyFile, $publisher, $objectLocalePrecedence) | |
createDatesNode ($doc, $issue, $article, $publication, $galley, $galleyFile, $publicationDate) | |
createDescriptionsNode ($doc, $issue, $article, $publication, $galley, $galleyFile, $objectLocalePrecedence) | |
createRelatedIdentifiersNode ($doc, $issue, $article, $publication, $galley) | |
createResourceTypeNode ($doc, $issue, $article, $galley, $galleyFile) | |
createRootNode ($doc) | |
createSizesNode ($doc, $issue, $article, $publication, $galley, $galleyFile) | |
createTitlesNode ($doc, $issue, $publication, $galley, $galleyFile, $objectLocalePrecedence) | |
getClassName () | |
getIssueInformation ($issue, $objectLocalePrecedence=null) | |
getIssueToc ($issue, $objectLocalePrecedence) | |
getObjectLocalePrecedence ($context, $article, $publication, $galley) | |
getPrimaryTranslation ($localizedData, $localePrecedence) | |
getTranslationsByPrecedence ($localizedData, $localePrecedence) | |
& | process (&$pubObject) |
translateLanguageToLocale ($language) | |
![]() | |
createLocalizedNodes ($doc, $parentNode, $name, $values) | |
createOptionalNode ($doc, $parentNode, $name, $value) | |
getNoValidation () | |
setNoValidation ($noValidation) | |
setOpts ($opts) | |
supports (&$input, &$output) | |
![]() | |
getDeployment () | |
setDeployment ($deployment) | |
![]() | |
addSetting ($setting) | |
getFilterGroup () | |
getInternalSettings () | |
getIsTemplate () | |
getLocalizedSettingNames () | |
getParentFilterId () | |
getSetting ($settingName) | |
getSettingNames () | |
& | getSettings () |
hasSetting ($settingName) | |
hasSettings () | |
setIsTemplate ($isTemplate) | |
setParentFilterId ($parentFilterId) | |
![]() | |
__construct ($inputType, $outputType) | |
addError ($message) | |
clearErrors () | |
& | execute (&$input, $returnErrors=false) |
getDisplayName () | |
getErrors () | |
& | getInputType () |
& | getLastInput () |
& | getLastOutput () |
& | getOutputType () |
& | getRuntimeEnvironment () |
getSequence () | |
hasErrors () | |
isCompatibleWithRuntimeEnvironment () | |
setDisplayName ($displayName) | |
setRuntimeEnvironment (&$runtimeEnvironment) | |
setSequence ($seq) | |
setTransformationType (&$inputType, &$outputType) | |
supportsAsInput (&$input) | |
![]() | |
__construct () | |
addSupportedMetadataAdapter ($metadataAdapter) | |
extractMetadata ($metadataSchema) | |
getAdditionalMetadataFieldNames () | |
& | getAllData () |
getDAO () | |
& | getData ($key, $locale=null) |
getHasLoadableAdapters () | |
getId () | |
getLocaleMetadataFieldNames () | |
getLocalizedData ($key, $preferredLocale=null) | |
getMetadataFieldNames ($translated=true) | |
getSetMetadataFieldNames ($translated=true) | |
getSupportedExtractionAdapters () | |
getSupportedInjectionAdapters () | |
getSupportedMetadataSchemas () | |
hasData ($key, $locale=null) | |
injectMetadata ($metadataDescription) | |
removeSupportedMetadataAdapter ($metadataSchemaName) | |
setAllData (&$data) | |
setData ($key, $value, $locale=null) | |
setHasLoadableAdapters ($hasLoadableAdapters) | |
setId ($id) | |
unsetData ($key, $locale=null) | |
upcastTo ($targetObject) | |
Additional Inherited Members | |
![]() | |
static | tempGroup ($inputType, $outputType) |
![]() | |
static | supportedRuntimeEnvironmentSettings () |
![]() | |
$_noValidation = null | |
$opts = array() | |
![]() | |
$_deployment | |
![]() | |
$_filterGroup | |
$_settings = array() | |
![]() | |
$_errors = array() | |
$_input | |
$_inputType | |
$_output | |
$_outputType | |
$_runtimeEnvironment = false | |
![]() | |
$_data = array() | |
$_extractionAdaptersLoaded = false | |
$_hasLoadableAdapters = false | |
$_injectionAdaptersLoaded = false | |
$_metadataExtractionAdapters = array() | |
$_metadataInjectionAdapters = array() | |
Class that converts an Issue to a DataCite XML document.
Definition at line 50 of file DataciteXmlFilter.inc.php.
DataciteXmlFilter::__construct | ( | $filterGroup | ) |
Constructor
$filterGroup | FilterGroup |
Reimplemented from NativeExportFilter.
Definition at line 55 of file DataciteXmlFilter.inc.php.
References Filter\setDisplayName().
DataciteXmlFilter::createAlternateIdentifiersNode | ( | $doc, | |
$issue, | |||
$article, | |||
$galley | |||
) |
Generate alternate identifiers node list.
$doc | DOMDocument |
$issue | Issue |
$article | Submission |
$galley | ArticleGalley |
Definition at line 451 of file DataciteXmlFilter.inc.php.
References NativeImportExportFilter\getDeployment().
Referenced by process().
DataciteXmlFilter::createCreatorsNode | ( | $doc, | |
$issue, | |||
$publication, | |||
$galley, | |||
$galleyFile, | |||
$publisher, | |||
$objectLocalePrecedence | |||
) |
Create creators node.
$doc | DOMDocument |
$issue | Issue |
$publication | Publication |
$galley | ArticleGalley |
$galleyFile | SubmissionFile |
$publisher | string |
$objectLocalePrecedence | array |
Definition at line 236 of file DataciteXmlFilter.inc.php.
References NativeImportExportFilter\getDeployment(), and getPrimaryTranslation().
Referenced by process().
DataciteXmlFilter::createDatesNode | ( | $doc, | |
$issue, | |||
$article, | |||
$publication, | |||
$galley, | |||
$galleyFile, | |||
$publicationDate | |||
) |
Create a date node list.
$doc | DOMDocument |
$issue | Issue |
$article | Submission |
$publication | Publication |
$galley | ArticleGalley |
$galleyFile | SubmissionFile |
$publicationDate | string |
Definition at line 329 of file DataciteXmlFilter.inc.php.
References DAORegistry\getDAO(), and NativeImportExportFilter\getDeployment().
Referenced by process().
DataciteXmlFilter::createDescriptionsNode | ( | $doc, | |
$issue, | |||
$article, | |||
$publication, | |||
$galley, | |||
$galleyFile, | |||
$objectLocalePrecedence | |||
) |
Create descriptions node list.
$doc | DOMDocument |
$issue | Issue |
$article | Submission |
$publication | Publication |
$galley | Alley |
$galleyFile | SubmissionFile |
$objectLocalePrecedence | array |
Definition at line 607 of file DataciteXmlFilter.inc.php.
References NativeImportExportFilter\getDeployment(), getIssueInformation(), getIssueToc(), getPrimaryTranslation(), and PKPString\html2text().
Referenced by process().
DataciteXmlFilter::createRelatedIdentifiersNode | ( | $doc, | |
$issue, | |||
$article, | |||
$publication, | |||
$galley | |||
) |
Generate related identifiers node list.
$doc | DOMDocument |
$issue | Issue |
$article | Submission |
$publication | Publication |
$galley | ArticleGalley |
Definition at line 487 of file DataciteXmlFilter.inc.php.
References PKPServices\get(), and NativeImportExportFilter\getDeployment().
Referenced by process().
DataciteXmlFilter::createResourceTypeNode | ( | $doc, | |
$issue, | |||
$article, | |||
$galley, | |||
$galleyFile | |||
) |
Create a resource type node.
$doc | DOMDocument |
$issue | Issue |
$article | Submission |
$galley | ArticleGalley |
$galleyFile | SubmissionFile |
Definition at line 407 of file DataciteXmlFilter.inc.php.
References DAORegistry\getDAO(), and NativeImportExportFilter\getDeployment().
Referenced by process().
DataciteXmlFilter::createRootNode | ( | $doc | ) |
Create and return the root node.
$doc | DOMDocument |
Definition at line 217 of file DataciteXmlFilter.inc.php.
References NativeImportExportFilter\getDeployment().
Referenced by process().
DataciteXmlFilter::createSizesNode | ( | $doc, | |
$issue, | |||
$article, | |||
$publication, | |||
$galley, | |||
$galleyFile | |||
) |
Create a sizes node list.
$doc | DOMDocument |
$issue | Issue |
$article | Submission |
$publication | Publication |
$galley | ArticleGalley |
$galleyFile | SubmissionFile |
Definition at line 555 of file DataciteXmlFilter.inc.php.
References DAORegistry\getDAO(), NativeImportExportFilter\getDeployment(), and AppLocale\requireComponents().
Referenced by process().
DataciteXmlFilter::createTitlesNode | ( | $doc, | |
$issue, | |||
$publication, | |||
$galley, | |||
$galleyFile, | |||
$objectLocalePrecedence | |||
) |
Create titles node.
$doc | DOMDocument |
$issue | Issue |
$publication | Publication |
$galley | ArticleGalley |
$galleyFile | SubmissionFile |
$objectLocalePrecedence | array |
Definition at line 281 of file DataciteXmlFilter.inc.php.
References NativeImportExportFilter\getDeployment(), getIssueInformation(), getPrimaryTranslation(), getTranslationsByPrecedence(), and PKPString\html2text().
Referenced by process().
DataciteXmlFilter::getClassName | ( | ) |
Return the fully qualified class name of the filter class. This information must be persisted when saving a filter so that the filter can later be reconstructed from the information in the database.
(This must be hard coded by sub-classes for PHP4 compatibility. PHP4 always returns class names lowercase which we cannot tolerate as we need this path to find the class on case sensitive file systems.)
Reimplemented from PersistableFilter.
Definition at line 66 of file DataciteXmlFilter.inc.php.
DataciteXmlFilter::getIssueInformation | ( | $issue, | |
$objectLocalePrecedence = null |
|||
) |
Construct an issue title from the journal title and the issue identification.
$issue | Issue |
$objectLocalePrecedence | array |
Definition at line 768 of file DataciteXmlFilter.inc.php.
References NativeImportExportFilter\getDeployment(), and getPrimaryTranslation().
Referenced by createDescriptionsNode(), and createTitlesNode().
DataciteXmlFilter::getIssueToc | ( | $issue, | |
$objectLocalePrecedence | |||
) |
Construct a table of content for an issue.
$issue | Issue |
$objectLocalePrecedence | array |
Definition at line 794 of file DataciteXmlFilter.inc.php.
References PKPServices\get(), and getPrimaryTranslation().
Referenced by createDescriptionsNode().
DataciteXmlFilter::getObjectLocalePrecedence | ( | $context, | |
$article, | |||
$publication, | |||
$galley | |||
) |
Identify the locale precedence for this export.
$context | Context |
$article | Submission |
$publication | Publication |
$galley | ArticleGalley |
Definition at line 657 of file DataciteXmlFilter.inc.php.
References PKPLocale\isLocaleValid().
Referenced by process().
DataciteXmlFilter::getPrimaryTranslation | ( | $localizedData, | |
$localePrecedence | |||
) |
Identify the primary translation from an array of localized data.
$localizedData | array An array of localized data (key: locale, value: localized data). |
$localePrecedence | array An array of locales by descending priority. |
Definition at line 711 of file DataciteXmlFilter.inc.php.
Referenced by createCreatorsNode(), createDescriptionsNode(), createTitlesNode(), getIssueInformation(), getIssueToc(), and process().
DataciteXmlFilter::getTranslationsByPrecedence | ( | $localizedData, | |
$localePrecedence | |||
) |
Re-order localized data by locale precedence.
$localizedData | array An array of localized data (key: locale, value: localized data). |
$localePrecedence | array An array of locales by descending priority. |
Definition at line 738 of file DataciteXmlFilter.inc.php.
Referenced by createTitlesNode().
& DataciteXmlFilter::process | ( | & | $pubObject | ) |
$pubObject | Issue|Submission|ArticleGalley |
Reimplemented from Filter.
Definition at line 78 of file DataciteXmlFilter.inc.php.
References createAlternateIdentifiersNode(), createCreatorsNode(), createDatesNode(), createDescriptionsNode(), createRelatedIdentifiersNode(), createResourceTypeNode(), createRootNode(), createSizesNode(), createTitlesNode(), PKPServices\get(), PKPApplication\getCCLicenseBadge(), DAORegistry\getDAO(), NativeImportExportFilter\getDeployment(), PKPLocale\getIso1FromLocale(), getObjectLocalePrecedence(), getPrimaryTranslation(), and PKPString\regexp_replace().
DataciteXmlFilter::translateLanguageToLocale | ( | $language | ) |
Try to translate an ISO language code to an OJS locale.
$language | string 2- or 3-letter ISO language code |
Definition at line 687 of file DataciteXmlFilter.inc.php.
References PKPLocale\get3LetterFrom2LetterIsoLanguage(), PKPLocale\getLocaleFrom3LetterIso(), and PKPLocale\isLocaleValid().