Open Monograph Press
3.3.0
OAIHandler.inc.php
1
<?php
2
16
define(
'SESSION_DISABLE_INIT'
, 1);
// FIXME?
17
18
import
(
'classes.oai.omp.PressOAI'
);
19
import
(
'classes.handler.Handler'
);
20
21
class
OAIHandler
extends
Handler
{
25
function
__construct
() {
26
parent::__construct();
27
}
28
32
function
authorize
($request, &$args, $roleAssignments) {
33
$returner = parent::authorize($request, $args, $roleAssignments);
34
35
if
(!
Config::getVar
(
'oai'
,
'oai'
)) {
36
return
false
;
37
}
else
{
38
return
$returner;
39
}
40
}
41
47
function
index
($args, $request) {
48
PluginRegistry::loadCategory
(
'oaiMetadataFormats'
,
true
);
49
50
$oai =
new
PressOAI
(
new
OAIConfig
($request->url(
null
,
'oai'
),
Config::getVar
(
'oai'
,
'repository_id'
)));
51
$oai->execute();
52
}
53
}
54
55
OAIHandler
Handle OAI protocol requests.
Definition:
OAIHandler.inc.php:21
OAIHandler\__construct
__construct()
Definition:
OAIHandler.inc.php:25
OAIHandler\index
index($args, $request)
Definition:
OAIHandler.inc.php:47
PluginRegistry\loadCategory
static loadCategory($category, $enabledOnly=false, $mainContextId=null)
Definition:
PluginRegistry.inc.php:103
PressOAI
OMP-specific OAI interface. Designed to support both a site-wide and press-specific OAI interface (ba...
Definition:
PressOAI.inc.php:26
Config\getVar
static getVar($section, $key, $default=null)
Definition:
Config.inc.php:35
Handler
Base request handler application class.
Definition:
Handler.inc.php:18
OAIConfig
Data structures associated with the OAI request handler.
Definition:
OAIStruct.inc.php:23
OAIHandler\authorize
authorize($request, &$args, $roleAssignments)
Definition:
OAIHandler.inc.php:32
pages
oai
OAIHandler.inc.php
Generated on Fri Aug 28 2020 14:53:07 for Open Monograph Press by
1.8.17