Open Monograph Press
3.3.0
|
Additional Inherited Members | |
![]() | |
$pluginCategory | |
$pluginPath | |
$request | |
![]() | |
_registerTemplateResource ($inCore=false) | |
Abstract class for public identifiers plugins.
Definition at line 18 of file PKPPubIdPlugin.inc.php.
PKPPubIdPlugin::addJavaScript | ( | $request, | |
$templateMgr | |||
) |
Add JavaScript files to be loaded in the metadata file.
$request | PKPRequest |
$templateMgr | PKPTemplateManager |
Reimplemented in URNPubIdPlugin.
Definition at line 166 of file PKPPubIdPlugin.inc.php.
PKPPubIdPlugin::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 337 of file PKPPubIdPlugin.inc.php.
References getDAOFieldNames(), and getFormFieldNames().
PKPPubIdPlugin::canBeAssigned | ( | $pubObject | ) |
Can a pub id be assigned to the object.
$pubObject | object Submission, Representation, SubmissionFile + OJS Issue |
Definition at line 315 of file PKPPubIdPlugin.inc.php.
References getPubId(), and getPubIdType().
PKPPubIdPlugin::checkDuplicate | ( | $pubId, | |
$pubObjectType, | |||
$excludeId, | |||
$contextId | |||
) |
Check for duplicate public identifiers.
Checks to see if a pubId has already been assigned to any object in the context.
$pubId | string |
$pubObjectType | string Class name of the pub object being checked |
$excludeId | integer This object id will not be checked for duplicates |
$contextId | integer |
Reimplemented in PubIdPlugin.
Definition at line 414 of file PKPPubIdPlugin.inc.php.
References DAORegistry\getDAO(), and Application\getRepresentationDAO().
Referenced by verifyData().
|
abstract |
Construct the public identifier from its prefix and suffix.
$pubIdPrefix | string |
$pubIdSuffix | string |
$contextId | integer |
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by PubIdPlugin\getPubId(), and verifyData().
PKPPubIdPlugin::getActions | ( | $request, | |
$actionArgs | |||
) |
Get a list of link actions for plugin management.
request | PKPRequest |
$actionArgs | array The list of action args to be included in request URLs. |
Reimplemented from Plugin.
Definition at line 55 of file PKPPubIdPlugin.inc.php.
References Plugin\$request, and Plugin\getEnabled().
PKPPubIdPlugin::getAdditionalFieldNames | ( | $hookName, | |
$params | |||
) |
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 357 of file PKPPubIdPlugin.inc.php.
|
abstract |
Get the assign option form field name.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
PKPPubIdPlugin::getContext | ( | $contextId | ) |
Get the context object.
$contextId | integer |
Definition at line 437 of file PKPPubIdPlugin.inc.php.
References PKPApplication\get(), and Application\getContextDAO().
Referenced by PubIdPlugin\getPubId().
|
abstract |
Get additional field names to be considered for storage.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by addToSchema().
PKPPubIdPlugin::getDAOs | ( | ) |
Return an array of publication object types and the corresponding DAOs.
Reimplemented in PubIdPlugin.
Definition at line 290 of file PKPPubIdPlugin.inc.php.
References DAORegistry\getDAO(), and Application\getRepresentationDAO().
Referenced by register().
PKPPubIdPlugin::getFileDAODelegates | ( | ) |
Get the possible submission file DAO delegates.
Definition at line 303 of file PKPPubIdPlugin.inc.php.
Referenced by register().
|
abstract |
Get the additional form field names, for metadata, e.g. suffix field name.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by addToSchema().
|
abstract |
Get the link actions used in the pub id forms, e.g. clear pub id.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
|
abstract |
Get the error message for not unique pub id
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by verifyData().
|
abstract |
Get the the prefix form field name.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by PubIdPlugin\getPubId(), and verifyData().
|
abstract |
Get the public identifier.
$pubObject | object Submission, Representation, SubmissionFile + OJS Issue |
Reimplemented in PubIdPlugin.
Referenced by canBeAssigned().
|
abstract |
Get the file (path + filename) for the pub id assignment to be included into other pages.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
|
abstract |
Public identifier type that will be displayed to the reader.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
|
abstract |
Full name of the public identifier.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
|
abstract |
Get the file (path + filename) to be included into the object's identifiers tab, e.g. for suffix editing.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
|
abstract |
Public identifier type, see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by canBeAssigned(), PubIdPlugin\checkDuplicate(), and PubIdPlugin\getPubId().
PKPPubIdPlugin::getPubObjectType | ( | $pubObject | ) |
Return the object type.
$pubObject | object |
Definition at line 370 of file PKPPubIdPlugin.inc.php.
Referenced by PubIdPlugin\getPubId().
PKPPubIdPlugin::getPubObjectTypes | ( | ) |
Get the possible publication object types.
Reimplemented in PubIdPlugin.
Definition at line 231 of file PKPPubIdPlugin.inc.php.
|
abstract |
Get the whole resolving URL.
$contextId | integer |
$pubId | string |
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
|
abstract |
Get the the suffix form field name.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by PubIdPlugin\getPubId(), and verifyData().
|
abstract |
Get the suffix patterns form field names for all objects.
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by PubIdPlugin\getPubId().
|
abstract |
Get the settings form.
$contextId | integer |
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by manage().
|
abstract |
Is this object type enabled in plugin settings
$pubObjectType | object |
$contextId | integer |
Reimplemented in URNPubIdPlugin, and DOIPubIdPlugin.
Referenced by PubIdPlugin\getPubId().
PKPPubIdPlugin::manage | ( | $args, | |
$request | |||
) |
Perform a management function.
$args | array |
$request | PKPRequest |
Reimplemented from Plugin.
Definition at line 77 of file PKPPubIdPlugin.inc.php.
References Plugin\$request, Application\getContextDAO(), and instantiateSettingsForm().
PKPPubIdPlugin::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.
Reimplemented in DOIPubIdPlugin, and URNPubIdPlugin.
Definition at line 26 of file PKPPubIdPlugin.inc.php.
References Plugin\addLocaleData(), getDAOs(), Plugin\getEnabled(), getFileDAODelegates(), HookRegistry\register(), and strtolower_codesafe().
PKPPubIdPlugin::setStoredPubId | ( | & | $pubObject, |
$pubId | |||
) |
Set and store a public identifier.
$pubObject | object |
$pubId | string |
Definition at line 392 of file PKPPubIdPlugin.inc.php.
PKPPubIdPlugin::validatePubId | ( | $pubId | ) |
Check whether the given pubId is valid.
$pubId | string |
Reimplemented in DOIPubIdPlugin.
Definition at line 281 of file PKPPubIdPlugin.inc.php.
PKPPubIdPlugin::verifyData | ( | $fieldName, | |
$fieldValue, | |||
$pubObject, | |||
$contextId, | |||
& | $errorMsg | ||
) |
Verify form data.
$fieldName | string The form field to be checked. |
$fieldValue | string The value of the form field. |
$pubObject | object |
$contextId | integer |
$errorMsg | string Return validation error messages here. |
Definition at line 258 of file PKPPubIdPlugin.inc.php.
References checkDuplicate(), constructPubId(), getNotUniqueErrorMsg(), getPrefixFieldName(), Plugin\getSetting(), and getSuffixFieldName().