|
Open Journal Systems
3.3.0
|
Protected Attributes | |
| $_formatList = array('epub','xml','pdf') | |
| $_xmlConversionStages = array(WORKFLOW_STAGE_ID_SUBMISSION,WORKFLOW_STAGE_ID_INTERNAL_REVIEW,WORKFLOW_STAGE_ID_EXTERNAL_REVIEW,WORKFLOW_STAGE_ID_EDITING,WORKFLOW_STAGE_ID_PRODUCTION) | |
Additional Inherited Members | |
Data Fields inherited from Plugin | |
| $pluginCategory | |
| $pluginPath | |
| $request | |
Protected Member Functions inherited from Plugin | |
| _registerTemplateResource ($inCore=false) | |
NLM XML and HTML transform plugin class.
Specification:
When an author, copyeditor or editor uploads a new version (odt, docx, doc, or pdf format) of a submission, this module submits it to the Document Markup Server specified in the configuration file.
manifest.xml document-new.pdf (layout version of PDF) document-review.pdf (review version of PDF, header author info stripped) document.xml (NLM-XML3/JATS-compliant) document.html (web-viewable article version)
This plugin extracts the xml, epub and pdf versions and places them in the galley.
Definition at line 32 of file MarkupPlugin.inc.php.
| MarkupPlugin::callbackLoadBatchHandler | ( | $hookName, | |
| $args | |||
| ) |
Definition at line 337 of file MarkupPlugin.inc.php.
References $op, and Plugin\getPluginPath().
| MarkupPlugin::callbackLoadCategory | ( | $hookName, | |
| $args | |||
| ) |
Definition at line 136 of file MarkupPlugin.inc.php.
References getName().
| MarkupPlugin::callbackLoadMarkupHandler | ( | $hookName, | |
| $args | |||
| ) |
Definition at line 297 of file MarkupPlugin.inc.php.
References $op, Plugin\$request, Plugin\getPluginPath(), and Plugin\getRequest().
| MarkupPlugin::callbackShowArticlesBatchConversionTabs | ( | $hookName, | |
| $args | |||
| ) |
Extend the website settings tabs to include articles batch conversion
| $hookName | string The name of the invoked hook |
| $args | array Hook parameters |
Definition at line 286 of file MarkupPlugin.inc.php.
References Plugin\$request, and Registry\get().
| MarkupPlugin::callbackShowWebsiteSettingsTabs | ( | $hookName, | |
| $args | |||
| ) |
Extend the website settings tabs to include markup settings
| $hookName | string The name of the invoked hook |
| $args | array Hook parameters |
Definition at line 272 of file MarkupPlugin.inc.php.
References Plugin\$request, and Registry\get().
| MarkupPlugin::callbackSubmissionFileDeleted | ( | $hookName, | |
| $params | |||
| ) |
Remove entries related to a submission file when that file is deleted
| $hookName | string The name of the invoked hook |
| $args | array Hook parameters |
Definition at line 525 of file MarkupPlugin.inc.php.
References DAORegistry\getDAO().
| MarkupPlugin::callbackUserProfile | ( | $hookName, | |
| $params | |||
| ) |
Extend user profile page with a new tab for user specific OTS login credentials
| $hookName | string The name of the invoked hook |
| $args | array Hook parameters |
Definition at line 502 of file MarkupPlugin.inc.php.
References Plugin\$request, Plugin\getRequest(), and Plugin\getSetting().
| MarkupPlugin::fetchGateway | ( | $fileId, | |
| $stageId, | |||
| $target | |||
| ) |
Triggers document conversion process through MarkupGatewayPlugin::fetch()
| $fileId | int fileId to retrieve converted archive for |
| $stage | int the file stage |
| $target | string job target (xml-conversion or galley-generate) |
Definition at line 428 of file MarkupPlugin.inc.php.
References Plugin\$request, MarkupConversionHelper\createConversionJobInfo(), Plugin\getRequest(), and MarkupConversionHelper\makeAccessToken().
| MarkupPlugin::getActions | ( | $request, | |
| $verb | |||
| ) |
Reimplemented from Plugin.
Definition at line 198 of file MarkupPlugin.inc.php.
References Plugin\$request, and Plugin\getEnabled().
| MarkupPlugin::getContextSpecificPluginSettingsFile | ( | ) |
Reimplemented from Plugin.
Definition at line 155 of file MarkupPlugin.inc.php.
References Plugin\getPluginPath().
| MarkupPlugin::getCssUrl | ( | $request | ) |
Get plugin CSS URL
Definition at line 174 of file MarkupPlugin.inc.php.
References Plugin\$request, and Plugin\getPluginPath().
Referenced by register().
| MarkupPlugin::getDescription | ( | ) |
Get plugin description
Reimplemented from Plugin.
Definition at line 88 of file MarkupPlugin.inc.php.
| MarkupPlugin::getDisplayName | ( | ) |
Get plugin display name
Reimplemented from Plugin.
Definition at line 79 of file MarkupPlugin.inc.php.
| MarkupPlugin::getFormatList | ( | ) |
Returns list of available formats
Definition at line 51 of file MarkupPlugin.inc.php.
References $_formatList.
| MarkupPlugin::getInstallSchemaFile | ( | ) |
Get the filename of the ADODB schema for this plugin.
Reimplemented from Plugin.
Definition at line 191 of file MarkupPlugin.inc.php.
References Plugin\getPluginPath().
| MarkupPlugin::getJsPath | ( | ) |
Get plugin JS path
Definition at line 164 of file MarkupPlugin.inc.php.
References Core\getBaseDir().
| MarkupPlugin::getJsUrl | ( | $request | ) |
Get plugin JS URL
Definition at line 183 of file MarkupPlugin.inc.php.
References Plugin\$request, and Plugin\getPluginPath().
Referenced by register().
| MarkupPlugin::getName | ( | ) |
Get the system name of this plugin. The name must be unique within its category.
Reimplemented from LazyLoadPlugin.
Definition at line 70 of file MarkupPlugin.inc.php.
Referenced by callbackLoadCategory().
| MarkupPlugin::getOTSLoginParametersForJournal | ( | $journalId, | |
$user = null |
|||
| ) |
Retrieve OTS login credentials for specific website
Definition at line 463 of file MarkupPlugin.inc.php.
References MarkupConversionHelper\canUseCredentialsFromConfig(), Plugin\getSetting(), and MarkupConversionHelper\readCredentialsFromConfig().
| MarkupPlugin::getXmlConversionStages | ( | ) |
Returns default list of stages for convert to xml feature
Definition at line 60 of file MarkupPlugin.inc.php.
References $_xmlConversionStages.
| MarkupPlugin::manage | ( | $args, | |
| $request | |||
| ) |
Reimplemented from Plugin.
Definition at line 235 of file MarkupPlugin.inc.php.
References Plugin\$request, PKPTemplateManager\getManager(), and PKPLocale\requireComponents().
| MarkupPlugin::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 LazyLoadPlugin.
Definition at line 96 of file MarkupPlugin.inc.php.
References Plugin\$request, getCssUrl(), Plugin\getEnabled(), getJsUrl(), PKPTemplateManager\getManager(), Plugin\getRequest(), HookRegistry\register(), and DAORegistry\registerDAO().
| MarkupPlugin::templateFetchCallback | ( | $hookName, | |
| $params | |||
| ) |
Adds additional links to submission files grid row
| $hookName | string The name of the invoked hook |
| $args | array Hook parameters |
Definition at line 355 of file MarkupPlugin.inc.php.
References Plugin\$request, Plugin\getRequest(), and Plugin\getSetting().
|
protected |
array Default list of wanted formats
Definition at line 38 of file MarkupPlugin.inc.php.
Referenced by getFormatList().
|
protected |
array Default list of stages for convert to xml feature
Definition at line 44 of file MarkupPlugin.inc.php.
Referenced by getXmlConversionStages().