Open Journal Systems  3.3.0
CrossrefExportDeployment.inc.php
1 <?php
20 // XML attributes
21 define('CROSSREF_XMLNS' , 'http://www.crossref.org/schema/4.3.6');
22 define('CROSSREF_XMLNS_XSI' , 'http://www.w3.org/2001/XMLSchema-instance');
23 define('CROSSREF_XSI_SCHEMAVERSION' , '4.3.6');
24 define('CROSSREF_XSI_SCHEMALOCATION' , 'https://www.crossref.org/schemas/crossref4.3.6.xsd');
25 define('CROSSREF_XMLNS_JATS' , 'http://www.ncbi.nlm.nih.gov/JATS1');
26 define('CROSSREF_XMLNS_AI' , 'http://www.crossref.org/AccessIndicators.xsd');
27 
30  var $_context;
31 
33  var $_plugin;
34 
36  var $_issue;
37 
38  function getCache() {
39  return $this->_plugin->getCache();
40  }
41 
47  function __construct($context, $plugin) {
48  $this->setContext($context);
49  $this->setPlugin($plugin);
50  }
51 
52  //
53  // Deployment items for subclasses to override
54  //
59  function getRootElementName() {
60  return 'doi_batch';
61  }
62 
67  function getNamespace() {
68  return CROSSREF_XMLNS;
69  }
70 
75  function getXmlSchemaInstance() {
76  return CROSSREF_XMLNS_XSI;
77  }
78 
83  function getXmlSchemaVersion() {
84  return CROSSREF_XSI_SCHEMAVERSION;
85  }
86 
91  function getXmlSchemaLocation() {
92  return CROSSREF_XSI_SCHEMALOCATION;
93  }
94 
99  function getJATSNamespace() {
100  return CROSSREF_XMLNS_JATS;
101  }
102 
107  function getAINamespace() {
108  return CROSSREF_XMLNS_AI;
109  }
110 
115  function getSchemaFilename() {
116  return $this->getXmlSchemaLocation();
117  }
118 
119  //
120  // Getter/setters
121  //
126  function setContext($context) {
127  $this->_context = $context;
128  }
129 
134  function getContext() {
136  }
137 
142  function setPlugin($plugin) {
143  $this->_plugin = $plugin;
144  }
145 
150  function getPlugin() {
152  }
153 
158  function setIssue($issue) {
159  $this->_issue = $issue;
160  }
161 
166  function getIssue() {
168  }
169 
170 }
171 
172 
CrossrefExportDeployment
Base class configuring the crossref export process to an application's specifics.
Definition: CrossrefExportDeployment.inc.php:28
CrossrefExportDeployment\getAINamespace
getAINamespace()
Definition: CrossrefExportDeployment.inc.php:116
CrossrefExportDeployment\setPlugin
setPlugin($plugin)
Definition: CrossrefExportDeployment.inc.php:151
CrossrefExportDeployment\getPlugin
getPlugin()
Definition: CrossrefExportDeployment.inc.php:159
CrossrefExportDeployment\$_context
$_context
Definition: CrossrefExportDeployment.inc.php:33
CrossrefExportDeployment\getXmlSchemaVersion
getXmlSchemaVersion()
Definition: CrossrefExportDeployment.inc.php:92
CrossrefExportDeployment\getXmlSchemaInstance
getXmlSchemaInstance()
Definition: CrossrefExportDeployment.inc.php:84
CrossrefExportDeployment\getJATSNamespace
getJATSNamespace()
Definition: CrossrefExportDeployment.inc.php:108
CrossrefExportDeployment\setContext
setContext($context)
Definition: CrossrefExportDeployment.inc.php:135
CrossrefExportDeployment\$_plugin
$_plugin
Definition: CrossrefExportDeployment.inc.php:39
CrossrefExportDeployment\getNamespace
getNamespace()
Definition: CrossrefExportDeployment.inc.php:76
CrossrefExportDeployment\getXmlSchemaLocation
getXmlSchemaLocation()
Definition: CrossrefExportDeployment.inc.php:100
CrossrefExportDeployment\getSchemaFilename
getSchemaFilename()
Definition: CrossrefExportDeployment.inc.php:124
CrossrefExportDeployment\$_issue
$_issue
Definition: CrossrefExportDeployment.inc.php:45
CrossrefExportDeployment\setIssue
setIssue($issue)
Definition: CrossrefExportDeployment.inc.php:167
CrossrefExportDeployment\getIssue
getIssue()
Definition: CrossrefExportDeployment.inc.php:175
CrossrefExportDeployment\getContext
getContext()
Definition: CrossrefExportDeployment.inc.php:143
CrossrefExportDeployment\__construct
__construct($context, $plugin)
Definition: CrossrefExportDeployment.inc.php:56
CrossrefExportDeployment\getCache
getCache()
Definition: CrossrefExportDeployment.inc.php:47
CrossrefExportDeployment\getRootElementName
getRootElementName()
Definition: CrossrefExportDeployment.inc.php:68