-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIterSubmission.inc.php
106 lines (90 loc) · 2.61 KB
/
IterSubmission.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/**
* @file plugins/generic/iterSubmission/IterSubmission.inc.php
*
* Copyright (c) 2014-2016 Simon Fraser University Library
* Copyright (c) 2003-2016 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class IterSubmission
* @ingroup plugins_generic_iterSubmission
*
* @brief This adds new fields to the submission and makes
* those available as metadata data and form operations.
*/
import('lib.pkp.classes.plugins.GenericPlugin');
// import('lib.pkp.classes.submission.SubmissionMetadataFormImplementation');
// import('classes.submission.SubmissionMetadataFormImplementation');
class IterSubmission extends GenericPlugin {
/**
* Constructor.
* @param $parentForm Form A form that can use this form.
*/
/*
function IterSubmission($parentForm = null) {
// parent::SubmissionMetadataFormImplementation($parentForm);
}
*/
function register($category, $path) {
$success = parent::register($category, $path);
if ($success && $this->getEnabled()) {
//
}
return $success;
}
/**
* Determine the plugin sequence. Overrides parent so that
* the plugin will be displayed during install.
*/
function getSeq() {
if (!Config::getVar('general', 'installed')) return 1;
return 0;
}
function getName() {
return 'IterSubmission';
}
function getDisplayName() {
return __('plugins.generic.iterSubmissions.displayName');
}
function getCitationFormatName() {
return __('plugins.generic.iterSubmissions.citationFormatName');
}
function getDescription() {
return __('plugins.generic.iterSubmissions.description');
}
/**
* Get the filename of the ADODB schema for this plugin.
* @return string Full path and filename to schema descriptor.
*/
function getInstallSchemaFile() {
return $this->getPluginPath() . '/schema.xml';
}
/**
* Hook callback function for TemplateManager::display
* @param $hookName string
* @param $args array
* @return boolean
*/
function callback($hookName, $args) {
/*
// Only pages requests interest us here
$request =& Registry::get('request');
if (!is_a($request->getRouter(), 'PKPPageRouter')) return null;
$page = Request::getRequestedPage();
$op = Request::getRequestedOp();
switch ("$page/$op") {
case 'article/view':
$templateManager =& $args[0];
$additionalHeadData = $templateManager->get_template_vars('additionalHeadData');
$templateManager->assign(
'additionalHeadData',
$templateManager->get_template_vars('additionalHeadData') .
'<script async defer src="//hypothes.is/embed.js"></script>'
);
break;
}
*/
return false;
}
}
?>