|
Open Preprint Systems
3.3.0
|
Additional Inherited Members | |
Data Fields inherited from Plugin | |
| $pluginCategory | |
| $pluginPath | |
| $request | |
Protected Member Functions inherited from Plugin | |
| _registerTemplateResource ($inCore=false) | |
DOI plugin class.
Definition at line 18 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::_doiURLEncode | ( | $pubId | ) |
Encode DOI according to ANSI/NISO Z39.84-2005, Appendix E.
| $pubId | string |
Definition at line 245 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::addPublicationFormFields | ( | $hookName, | |
| $form | |||
| ) |
Add DOI fields to the publication identifiers form
| $hookName | string Form::config::before |
| $form | FormComponent The form object |
Definition at line 343 of file DOIPubIdPlugin.inc.php.
References Plugin\getSetting(), PKPString\regexp_replace(), and PKPString\strtolower().
| DOIPubIdPlugin::addPublishFormNotice | ( | $hookName, | |
| $form | |||
| ) |
Show DOI during final publish step
| $hookName | string Form::config::before |
| $form | FormComponent The form object |
Definition at line 399 of file DOIPubIdPlugin.inc.php.
References PKPServices\get(), and Plugin\getSetting().
| DOIPubIdPlugin::constructPubId | ( | $pubIdPrefix, | |
| $pubIdSuffix, | |||
| $contextId | |||
| ) |
Construct the public identifier from its prefix and suffix.
| $pubIdPrefix | string |
| $pubIdSuffix | string |
| $contextId | integer |
Reimplemented from PKPPubIdPlugin.
Definition at line 65 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getAssignFormFieldName | ( | ) |
Get the assign option form field name.
Reimplemented from PKPPubIdPlugin.
Definition at line 129 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getCitationData | ( | $hookname, | |
| $args | |||
| ) |
Add DOI to citation data used by the CitationStyleLanguage plugin
| $hookname | string |
| $args | array |
Definition at line 223 of file DOIPubIdPlugin.inc.php.
References PubIdPlugin\getPubId().
| DOIPubIdPlugin::getDAOFieldNames | ( | ) |
Get additional field names to be considered for storage.
Reimplemented from PKPPubIdPlugin.
Definition at line 187 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getDescription | ( | ) |
Get a description of this plugin.
Reimplemented from Plugin.
Definition at line 54 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getDisplayName | ( | ) |
Get the display name for this plugin.
Reimplemented from Plugin.
Definition at line 47 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getFormFieldNames | ( | ) |
Get the additional form field names, for metadata, e.g. suffix field name.
Reimplemented from PKPPubIdPlugin.
Definition at line 122 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getLinkActions | ( | $pubObject | ) |
Get the link actions used in the pub id forms, e.g. clear pub id.
Reimplemented from PKPPubIdPlugin.
Definition at line 150 of file DOIPubIdPlugin.inc.php.
References Plugin\$request, and PKPApplication\get().
| DOIPubIdPlugin::getNotUniqueErrorMsg | ( | ) |
Is this object type enabled in plugin settings
| $pubObjectType | object |
| $contextId | integer |
Reimplemented from PKPPubIdPlugin.
Definition at line 201 of file DOIPubIdPlugin.inc.php.
Referenced by validatePublicationDoi().
| DOIPubIdPlugin::getPrefixFieldName | ( | ) |
Get the the prefix form field name.
Reimplemented from PKPPubIdPlugin.
Definition at line 136 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getPubIdAssignFile | ( | ) |
Get the file (path + filename) for the pub id assignment to be included into other pages.
Reimplemented from PKPPubIdPlugin.
Definition at line 107 of file DOIPubIdPlugin.inc.php.
References Plugin\getTemplateResource().
| DOIPubIdPlugin::getPubIdDisplayType | ( | ) |
Public identifier type that will be displayed to the reader.
Reimplemented from PKPPubIdPlugin.
Definition at line 79 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getPubIdFullName | ( | ) |
Full name of the public identifier.
Reimplemented from PKPPubIdPlugin.
Definition at line 86 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getPubIdMetadataFile | ( | ) |
Get the file (path + filename) to be included into the object's identifiers tab, e.g. for suffix editing.
Reimplemented from PKPPubIdPlugin.
Definition at line 100 of file DOIPubIdPlugin.inc.php.
References Plugin\getTemplateResource().
| DOIPubIdPlugin::getPubIdType | ( | ) |
Public identifier type, see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html
Reimplemented from PKPPubIdPlugin.
Definition at line 72 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getResolvingURL | ( | $contextId, | |
| $pubId | |||
| ) |
Get the whole resolving URL.
| $contextId | integer |
| $pubId | string |
Reimplemented from PKPPubIdPlugin.
Definition at line 93 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getSuffixFieldName | ( | ) |
Get the the suffix form field name.
Reimplemented from PKPPubIdPlugin.
Definition at line 143 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::getSuffixPatternsFieldNames | ( | ) |
Get the suffix patterns form field names for all objects.
Reimplemented from PKPPubIdPlugin.
Definition at line 177 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::instantiateSettingsForm | ( | $contextId | ) |
Get the settings form.
| $contextId | integer |
Reimplemented from PKPPubIdPlugin.
Definition at line 114 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::isObjectTypeEnabled | ( | $pubObjectType, | |
| $contextId | |||
| ) |
Is this object type enabled in plugin settings
| $pubObjectType | object |
| $contextId | integer |
Reimplemented from PKPPubIdPlugin.
Definition at line 194 of file DOIPubIdPlugin.inc.php.
References Plugin\getSetting().
| DOIPubIdPlugin::modifyObjectProperties | ( | $hookName, | |
| $args | |||
| ) |
Add DOI to submission or galley properties
| $hookName | string <Object>::getProperties::summaryProperties or <Object>::getProperties::fullProperties |
| $args | array [ @option $props array Existing properties @option $object Submission|Galley @option $args array Request args ] |
Definition at line 302 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::modifyObjectPropertyValues | ( | $hookName, | |
| $args | |||
| ) |
Add DOI submission or galley values
| $hookName | string <Object>::getProperties::values |
| $args | array [ @option $values array Key/value store of property values @option $object Submission|Galley @option $props array Requested properties @option $args array Request args ] |
Definition at line 321 of file DOIPubIdPlugin.inc.php.
References PubIdPlugin\getPubId().
| DOIPubIdPlugin::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 PKPPubIdPlugin.
Definition at line 23 of file DOIPubIdPlugin.inc.php.
References Plugin\getEnabled(), Config\getVar(), and HookRegistry\register().
| DOIPubIdPlugin::validatePubId | ( | $pubId | ) |
Check whether the given pubId is valid.
| $pubId | string |
Reimplemented from PKPPubIdPlugin.
Definition at line 208 of file DOIPubIdPlugin.inc.php.
| DOIPubIdPlugin::validatePublicationDoi | ( | $hookName, | |
| $args | |||
| ) |
Validate a publication's DOI against the plugin's settings
| $hookName | string |
| $args | array |
Definition at line 258 of file DOIPubIdPlugin.inc.php.
References PKPPubIdPlugin\checkDuplicate(), PKPServices\get(), getNotUniqueErrorMsg(), and Plugin\getSetting().