|
Open Journal Systems
3.3.0
|
Data Fields | |
| $_cache | |
Data Fields inherited from ImportExportPlugin | |
| $_request | |
Data Fields inherited from Plugin | |
| $pluginCategory | |
| $pluginPath | |
| $request | |
Protected Member Functions | |
| _getDAOs () | |
| _getObjectAdditionalSettings () | |
| updateObject ($object) | |
Protected Member Functions inherited from Plugin | |
| _registerTemplateResource ($inCore=false) | |
Basis class for XML metadata export plugins.
Definition at line 33 of file PubObjectsExportPlugin.inc.php.
|
protected |
Get the DAOs for objects that need to be augmented with additional settings.
Definition at line 755 of file PubObjectsExportPlugin.inc.php.
References DAORegistry\getDAO(), and Application\getRepresentationDAO().
Referenced by register().
|
protected |
Get a list of additional setting names that should be stored with the objects.
Reimplemented in CrossRefExportPlugin, and DOIPubIdExportPlugin.
Definition at line 475 of file PubObjectsExportPlugin.inc.php.
Referenced by addToSchema(), and getAdditionalFieldNames().
| PubObjectsExportPlugin::_instantiateExportDeployment | ( | $context | ) |
Instantiate the export deployment.
| $context | Context |
Definition at line 732 of file PubObjectsExportPlugin.inc.php.
Referenced by DOAJExportPlugin\exportJSON(), and exportXML().
| PubObjectsExportPlugin::_instantiateSettingsForm | ( | $context | ) |
Instantiate the settings form.
| $context | Context |
Definition at line 744 of file PubObjectsExportPlugin.inc.php.
| PubObjectsExportPlugin::_sendNotification | ( | $user, | |
| $message, | |||
| $notificationType, | |||
$param = null |
|||
| ) |
Add a notification.
| $user | User |
| $message | string An i18n key. |
| $notificationType | integer One of the NOTIFICATION_TYPE_* constants. |
| $param | string An additional parameter for the message. |
Definition at line 709 of file PubObjectsExportPlugin.inc.php.
Referenced by DataciteExportPlugin\executeExportAction(), DOAJExportPlugin\executeExportAction(), executeExportAction(), and CrossRefExportPlugin\executeExportAction().
| PubObjectsExportPlugin::addToSchema | ( | $hookName, | |
| $params | |||
| ) |
Add properties for this type of public identifier to the entity's list for storage in the database. This is used for SchemaDAO-backed entities only.
| $hookName | string Schema::get::publication |
| $params | array |
Definition at line 458 of file PubObjectsExportPlugin.inc.php.
References _getObjectAdditionalSettings().
| PubObjectsExportPlugin::callbackParseCronTab | ( | $hookName, | |
| $args | |||
| ) |
Definition at line 482 of file PubObjectsExportPlugin.inc.php.
|
abstract |
Deposit XML document. This must be implemented in the subclasses, if the action is supported.
| $objects | mixed Array of or single published submission, issue or galley |
| $context | Context |
| $filename | Export XML filename |
Reimplemented in DOAJExportPlugin, CrossRefExportPlugin, MedraExportPlugin, and DataciteExportPlugin.
Referenced by executeExportAction().
| PubObjectsExportPlugin::display | ( | $args, | |
| $request | |||
| ) |
Display the import/export plugin.
| $args | array |
| $request | PKPRequest |
Reimplemented from ImportExportPlugin.
Reimplemented in DOAJExportPlugin, and DOIPubIdExportPlugin.
Definition at line 112 of file PubObjectsExportPlugin.inc.php.
References Plugin\$request, _instantiateSettingsForm(), executeExportAction(), fatalError(), getArticleGalleys(), getExportActionNames(), getExportActions(), getIssueFilter(), PKPTemplateManager\getManager(), getPublishedIssues(), getPublishedSubmissions(), getRepresentationFilter(), Plugin\getSetting(), and getSubmissionFilter().
| PubObjectsExportPlugin::executeCLI | ( | $scriptName, | |
| & | $args | ||
| ) |
Reimplemented from ImportExportPlugin.
Definition at line 543 of file PubObjectsExportPlugin.inc.php.
References DAORegistry\getDAO(), and AppLocale\requireComponents().
| PubObjectsExportPlugin::executeCLICommand | ( | $scriptName, | |
| $command, | |||
| $context, | |||
| $outputFile, | |||
| $objects, | |||
| $filter, | |||
| $objectsFileNamePart | |||
| ) |
Execute the CLI command
| $scriptName | The name of the command-line script (displayed as usage info) |
| $command | string (export or register) |
| $context | Context |
| $outputFile | string Path to the file where the exported XML should be saved |
| $objects | array Objects to be exported or registered |
| $filter | string Filter to use |
| $objectsFileNamePart | string Export file name part for this kind of objects |
Reimplemented in CrossRefExportPlugin, and DataciteExportPlugin.
Definition at line 626 of file PubObjectsExportPlugin.inc.php.
| PubObjectsExportPlugin::executeExportAction | ( | $request, | |
| $objects, | |||
| $filter, | |||
| $tab, | |||
| $objectsFileNamePart, | |||
$noValidation = null |
|||
| ) |
Execute export action.
| $request | Request |
| $objects | array Array of objects to be exported |
| $filter | string Filter to use |
| $tab | string Tab to return to |
| $objectsFileNamePart | string Export file name part for this kind of objects |
| $noValidation | boolean If set to true no XML validation will be done |
Reimplemented in CrossRefExportPlugin, DOAJExportPlugin, and DataciteExportPlugin.
Definition at line 187 of file PubObjectsExportPlugin.inc.php.
References Plugin\$request, _sendNotification(), depositXML(), exportXML(), ImportExportPlugin\getExportFileName(), ImportExportPlugin\getExportPath(), Plugin\getName(), and markRegistered().
Referenced by display().
| PubObjectsExportPlugin::exportXML | ( | $objects, | |
| $filter, | |||
| $context, | |||
$noValidation = null |
|||
| ) |
Get the XML for selected objects.
| $objects | mixed Array of or single published submission, issue or galley |
| $filter | string |
| $context | Context |
| $noValidation | boolean If set to true no XML validation will be done |
Definition at line 385 of file PubObjectsExportPlugin.inc.php.
References _instantiateExportDeployment(), ImportExportPlugin\displayXMLValidationErrors(), and DAORegistry\getDAO().
Referenced by DataciteExportPlugin\executeCLICommand(), CrossRefExportPlugin\executeCLICommand(), DataciteExportPlugin\executeExportAction(), executeExportAction(), and CrossRefExportPlugin\executeExportAction().
| PubObjectsExportPlugin::getAdditionalFieldNames | ( | $hookName, | |
| $args | |||
| ) |
Add properties for this type of public identifier to the entity's list for storage in the database. This is used for non-SchemaDAO-backed entities only.
| $hookName | string |
| $params | array |
Definition at line 439 of file PubObjectsExportPlugin.inc.php.
References _getObjectAdditionalSettings().
| PubObjectsExportPlugin::getArticleGalleys | ( | $galleyIds | ) |
Get article galleys from gallley IDs.
| $galleyIds | array |
Reimplemented in DOIPubIdExportPlugin.
Definition at line 692 of file PubObjectsExportPlugin.inc.php.
References DAORegistry\getDAO().
Referenced by display().
| PubObjectsExportPlugin::getCache | ( | ) |
Get the plugin cache
Definition at line 44 of file PubObjectsExportPlugin.inc.php.
References $_cache.
Referenced by DataciteExportPlugin\_getObjectUrl(), and DOIPubIdExportPlugin\getUnregisteredIssues().
| PubObjectsExportPlugin::getDepositStatusSettingName | ( | ) |
Get deposit status setting name.
Definition at line 521 of file PubObjectsExportPlugin.inc.php.
Referenced by MedraExportPlugin\depositXML(), DOAJExportPlugin\depositXML(), DataciteExportPlugin\depositXML(), DOIPubIdExportPlugin\markRegistered(), CrossRefExportPlugin\markRegistered(), markRegistered(), and CrossRefExportPlugin\updateDepositStatus().
| PubObjectsExportPlugin::getDepositSuccessNotificationMessageKey | ( | ) |
Get the locale key used in the notification for the successful deposit.
Reimplemented in CrossRefExportPlugin.
Definition at line 275 of file PubObjectsExportPlugin.inc.php.
| PubObjectsExportPlugin::getExportActionNames | ( | ) |
Get action names.
Reimplemented in CrossRefExportPlugin.
Definition at line 363 of file PubObjectsExportPlugin.inc.php.
Referenced by display().
| PubObjectsExportPlugin::getExportActions | ( | $context | ) |
Get actions.
| $context | Context |
Reimplemented in DOAJExportPlugin.
Definition at line 351 of file PubObjectsExportPlugin.inc.php.
References Plugin\getSetting().
Referenced by display().
|
abstract |
Return the name of the plugin's deployment class.
Reimplemented in CrossRefExportPlugin, DataciteExportPlugin, DOAJExportPlugin, and MedraExportPlugin.
| PubObjectsExportPlugin::getIssueFilter | ( | ) |
Get the issue filter.
Reimplemented in DataciteExportPlugin, and MedraExportPlugin.
Definition at line 311 of file PubObjectsExportPlugin.inc.php.
Referenced by display().
| PubObjectsExportPlugin::getPublishedIssues | ( | $issueIds, | |
| $context | |||
| ) |
Get published issues from issue IDs.
| $issueIds | array |
| $context | Context |
Reimplemented in DOIPubIdExportPlugin.
Definition at line 677 of file PubObjectsExportPlugin.inc.php.
References DAORegistry\getDAO().
Referenced by display().
| PubObjectsExportPlugin::getPublishedSubmissions | ( | $submissionIds, | |
| $context | |||
| ) |
Get published submissions from submission IDs.
| $submissionIds | array |
| $context | Context |
Reimplemented in DOIPubIdExportPlugin.
Definition at line 662 of file PubObjectsExportPlugin.inc.php.
References PKPServices\get().
Referenced by display().
| PubObjectsExportPlugin::getRepresentationFilter | ( | ) |
Get the representation filter.
Reimplemented in DataciteExportPlugin, and MedraExportPlugin.
Definition at line 319 of file PubObjectsExportPlugin.inc.php.
Referenced by display().
| PubObjectsExportPlugin::getStatusActions | ( | $pubObject | ) |
Get status actions for the display to the user, i.e. links to a web site with more information about the status.
| $pubObject |
Reimplemented in CrossRefExportPlugin.
Definition at line 342 of file PubObjectsExportPlugin.inc.php.
| PubObjectsExportPlugin::getStatusMessage | ( | $request | ) |
Get detailed message of the object status i.e. failure messages. Parameters needed have to be in the request object.
| $request | PKPRequest |
Reimplemented in CrossRefExportPlugin.
Definition at line 295 of file PubObjectsExportPlugin.inc.php.
Referenced by manage().
| PubObjectsExportPlugin::getStatusNames | ( | ) |
Get status names for the filter search option.
Reimplemented in CrossRefExportPlugin.
Definition at line 327 of file PubObjectsExportPlugin.inc.php.
| PubObjectsExportPlugin::getSubmissionFilter | ( | ) |
Get the submission filter.
Reimplemented in DOAJExportPlugin, CrossRefExportPlugin, DataciteExportPlugin, and MedraExportPlugin.
Definition at line 303 of file PubObjectsExportPlugin.inc.php.
Referenced by display().
| PubObjectsExportPlugin::getUnregisteredArticles | ( | $context | ) |
Retrieve all unregistered articles.
| $context | Context |
Reimplemented in DOIPubIdExportPlugin.
Definition at line 493 of file PubObjectsExportPlugin.inc.php.
References DAORegistry\getDAO().
| PubObjectsExportPlugin::isTestMode | ( | $context | ) |
Check whether we are in test mode.
| $context | Context |
Definition at line 513 of file PubObjectsExportPlugin.inc.php.
Referenced by DataciteExportPlugin\_getObjectUrl(), MedraExportPlugin\depositXML(), DOAJExportPlugin\depositXML(), DataciteExportPlugin\depositXML(), CrossRefExportPlugin\depositXML(), CrossRefExportPlugin\getStatusMessage(), and DOIPubIdExportPlugin\saveRegisteredDoi().
| PubObjectsExportPlugin::manage | ( | $args, | |
| $request | |||
| ) |
Perform a management function.
| $args | array |
| $request | PKPRequest |
Reimplemented from Plugin.
Definition at line 76 of file PubObjectsExportPlugin.inc.php.
References Plugin\$request, _instantiateSettingsForm(), PKPTemplateManager\getManager(), and getStatusMessage().
| PubObjectsExportPlugin::markRegistered | ( | $context, | |
| $objects | |||
| ) |
Mark selected submissions or issues as registered.
| $context | Context |
| $objects | array Array of published submissions, issues or galleys |
Reimplemented in CrossRefExportPlugin, and DOIPubIdExportPlugin.
Definition at line 410 of file PubObjectsExportPlugin.inc.php.
References getDepositStatusSettingName(), and updateObject().
Referenced by executeExportAction().
| PubObjectsExportPlugin::register | ( | $category, | |
| $path, | |||
$mainContextId = null |
|||
| ) |
Load and initialize the plug-in and register plugin hooks.
For backwards compatibility this method will be called whenever the plug-in's category is being loaded. If, however, registerOn() returns an array then this method will only be called when the plug-in is enabled and an entry in the result set of registerOn() matches the current request operation. An empty array matches all request operations.
| $category | String Name of category plugin was registered to |
| $path | String The path the plugin was found in |
| $mainContextId | integer To identify if the plugin is enabled we need a context. This context is usually taken from the request but sometimes there is no context in the request (e.g. when executing CLI commands). Then the main context can be given as an explicit ID. |
Reimplemented from Plugin.
Definition at line 56 of file PubObjectsExportPlugin.inc.php.
References _getDAOs(), Plugin\addLocaleData(), HookRegistry\register(), AppLocale\requireComponents(), and strtolower_codesafe().
|
protected |
Update the given object.
| $object | Issue|Submission|ArticleGalley |
Definition at line 421 of file PubObjectsExportPlugin.inc.php.
Referenced by DOAJExportPlugin\depositXML(), CrossRefExportPlugin\depositXML(), markRegistered(), and DOIPubIdExportPlugin\saveRegisteredDoi().
| PubObjectsExportPlugin::usage | ( | $scriptName | ) |
Reimplemented from ImportExportPlugin.
Definition at line 530 of file PubObjectsExportPlugin.inc.php.
Referenced by DataciteExportPlugin\executeCLICommand(), and CrossRefExportPlugin\executeCLICommand().
| PubObjectCache PubObjectsExportPlugin::$_cache |
Definition at line 38 of file PubObjectsExportPlugin.inc.php.
Referenced by getCache().