Open Preprint Systems  3.3.0
CrossrefExportDeployment.inc.php
1 <?php
20 // XML attributes
21 define('CROSSREF_XMLNS' , 'http://www.crossref.org/schema/4.4.0');
22 define('CROSSREF_XMLNS_XSI' , 'http://www.w3.org/2001/XMLSchema-instance');
23 define('CROSSREF_XSI_SCHEMAVERSION' , '4.4.0');
24 define('CROSSREF_XSI_SCHEMALOCATION' , 'https://www.crossref.org/schemas/crossref4.4.0.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 define('CROSSREF_XMLNS_REL' , 'http://www.crossref.org/relations.xsd');
28 
31  var $_context;
32 
34  var $_plugin;
35 
36  function getCache() {
37  return $this->_plugin->getCache();
38  }
39 
45  function __construct($context, $plugin) {
46  $this->setContext($context);
47  $this->setPlugin($plugin);
48  }
49 
50  //
51  // Deployment items for subclasses to override
52  //
57  function getRootElementName() {
58  return 'doi_batch';
59  }
60 
65  function getNamespace() {
66  return CROSSREF_XMLNS;
67  }
68 
73  function getXmlSchemaInstance() {
74  return CROSSREF_XMLNS_XSI;
75  }
76 
81  function getXmlSchemaVersion() {
82  return CROSSREF_XSI_SCHEMAVERSION;
83  }
84 
89  function getXmlSchemaLocation() {
90  return CROSSREF_XSI_SCHEMALOCATION;
91  }
92 
97  function getJATSNamespace() {
98  return CROSSREF_XMLNS_JATS;
99  }
100 
105  function getAINamespace() {
106  return CROSSREF_XMLNS_AI;
107  }
108 
113  function getRELNamespace() {
114  return CROSSREF_XMLNS_REL;
115  }
116 
121  function getSchemaFilename() {
122  return $this->getXmlSchemaLocation();
123  }
124 
125  //
126  // Getter/setters
127  //
132  function setContext($context) {
133  $this->_context = $context;
134  }
135 
140  function getContext() {
141  return $this->_context;
142  }
143 
148  function setPlugin($plugin) {
149  $this->_plugin = $plugin;
150  }
151 
156  function getPlugin() {
157  return $this->_plugin;
158  }
159 
160 }
161 
162 
CrossrefExportDeployment
Base class configuring the crossref export process to an application's specifics.
Definition: CrossrefExportDeployment.inc.php:29
CrossrefExportDeployment\getAINamespace
getAINamespace()
Definition: CrossrefExportDeployment.inc.php:111
CrossrefExportDeployment\setPlugin
setPlugin($plugin)
Definition: CrossrefExportDeployment.inc.php:154
CrossrefExportDeployment\getPlugin
getPlugin()
Definition: CrossrefExportDeployment.inc.php:162
CrossrefExportDeployment\$_context
$_context
Definition: CrossrefExportDeployment.inc.php:34
CrossrefExportDeployment\getRELNamespace
getRELNamespace()
Definition: CrossrefExportDeployment.inc.php:119
CrossrefExportDeployment\getXmlSchemaVersion
getXmlSchemaVersion()
Definition: CrossrefExportDeployment.inc.php:87
CrossrefExportDeployment\getXmlSchemaInstance
getXmlSchemaInstance()
Definition: CrossrefExportDeployment.inc.php:79
CrossrefExportDeployment\getJATSNamespace
getJATSNamespace()
Definition: CrossrefExportDeployment.inc.php:103
CrossrefExportDeployment\setContext
setContext($context)
Definition: CrossrefExportDeployment.inc.php:138
CrossrefExportDeployment\$_plugin
$_plugin
Definition: CrossrefExportDeployment.inc.php:40
CrossrefExportDeployment\getNamespace
getNamespace()
Definition: CrossrefExportDeployment.inc.php:71
CrossrefExportDeployment\getXmlSchemaLocation
getXmlSchemaLocation()
Definition: CrossrefExportDeployment.inc.php:95
CrossrefExportDeployment\getSchemaFilename
getSchemaFilename()
Definition: CrossrefExportDeployment.inc.php:127
CrossrefExportDeployment\getContext
getContext()
Definition: CrossrefExportDeployment.inc.php:146
CrossrefExportDeployment\__construct
__construct($context, $plugin)
Definition: CrossrefExportDeployment.inc.php:51
CrossrefExportDeployment\getCache
getCache()
Definition: CrossrefExportDeployment.inc.php:42
CrossrefExportDeployment\getRootElementName
getRootElementName()
Definition: CrossrefExportDeployment.inc.php:63