1
|
<?php
|
2
|
|
3
|
defined('_JEXEC') or die('Access denied');
|
4
|
|
5
|
jimport('joomla.application.component.controller');
|
6
|
|
7
|
class OpenAireController extends JControllerLegacy {
|
8
|
// Construct a new OpenAireController.
|
9
|
// $configuration the configuration to use
|
10
|
public function __construct($configuration = array()) {
|
11
|
parent :: __construct($configuration);
|
12
|
$alerts = $this -> getModel('alerts');
|
13
|
$claim = $this -> getModel('claim');
|
14
|
$search = $this -> getModel('search');
|
15
|
$statistics = $this -> getModel('statistics');
|
16
|
$redirect = $this -> getModel('redirect');
|
17
|
$piwik = $this -> getModel('piwik');
|
18
|
$this -> getView('advancedsearchdatasources', 'html') -> setModel($search);
|
19
|
$this -> getView('advancedsearchorganizations', 'html') -> setModel($search);
|
20
|
$this -> getView('advancedsearchpeople', 'html') -> setModel($search);
|
21
|
$this -> getView('advancedsearchprojects', 'html') -> setModel($search);
|
22
|
$this -> getView('advancedsearchpublications', 'html') -> setModel($search);
|
23
|
$this -> getView('alerts', 'html') -> setModel($alerts);
|
24
|
$this -> getView('alerts', 'html') -> setModel($piwik);
|
25
|
$this -> getView('article', 'html') -> setModel($search);
|
26
|
$this -> getView('browsedatasets', 'html') -> setModel($search);
|
27
|
$this -> getView('browsedatasources', 'html') -> setModel($search);
|
28
|
$this -> getView('browseorganizations', 'html') -> setModel($search);
|
29
|
$this -> getView('browsepeople', 'html') -> setModel($search);
|
30
|
$this -> getView('browseprojects', 'html') -> setModel($search);
|
31
|
$this -> getView('browsepublications', 'html') -> setModel($search);
|
32
|
$this -> getView('chart', 'html') -> setModel($statistics);
|
33
|
$this -> getView('claim1', 'html') -> setModel($claim);
|
34
|
$this -> getView('claim1', 'html') -> setModel($search);
|
35
|
$this -> getView('claim2', 'html') -> setModel($claim);
|
36
|
$this -> getView('claim2', 'html') -> setModel($search);
|
37
|
$this -> getView('claim3', 'html') -> setModel($claim);
|
38
|
$this -> getView('claim4', 'html') -> setModel($search);
|
39
|
$this -> getView('claim4', 'html') -> setModel($claim);
|
40
|
$this -> getView('claim4', 'html') -> setModel($piwik);
|
41
|
$this -> getView('data', 'raw') -> setModel($search);
|
42
|
$this -> getView('dataset', 'html') -> setModel($search);
|
43
|
$this -> getView('datasource', 'html') -> setModel($search);
|
44
|
$this -> getView('emailpublication', 'raw') -> setModel($search);
|
45
|
$this -> getView('emailpublication', 'raw') -> setModel($piwik);
|
46
|
// view ingestion1 uses no model at all
|
47
|
$this -> getView('ingestion2', 'html') -> setModel($search);
|
48
|
$this -> getView('institutions', 'raw') -> setModel($search);
|
49
|
$this -> getView('institutions', 'raw') -> setModel($piwik);
|
50
|
$this -> getView('invenio', 'html') -> setModel($redirect);
|
51
|
$this -> getView('invenio', 'html') -> setModel($piwik);
|
52
|
$this -> getView('organization', 'html') -> setModel($search);
|
53
|
$this -> getView('person', 'html') -> setModel($search);
|
54
|
$this -> getView('printpublication', 'raw') -> setModel($search);
|
55
|
$this -> getView('printpublication', 'raw') -> setModel($piwik);
|
56
|
$this -> getView('project', 'html') -> setModel($search);
|
57
|
$this -> getView('projects', 'raw') -> setModel($search);
|
58
|
$this -> getView('projectfundings', 'raw') -> setModel($search);
|
59
|
$this -> getView('publications', 'raw') -> setModel($search);
|
60
|
$this -> getView('repositories', 'html') -> setModel($search);
|
61
|
$this -> getView('search', 'html') -> setModel($search);
|
62
|
$this -> getView('searchdatasets', 'html') -> setModel($search);
|
63
|
$this -> getView('searchdatasetsraw', 'raw') -> setModel($search);
|
64
|
$this -> getView('searchdatasources', 'html') -> setModel($search);
|
65
|
$this -> getView('searchdatasourcesraw', 'raw') -> setModel($search);
|
66
|
$this -> getView('searchorganizations', 'html') -> setModel($search);
|
67
|
$this -> getView('searchorganizationsraw', 'raw') -> setModel($search);
|
68
|
$this -> getView('searchpeople', 'html') -> setModel($search);
|
69
|
$this -> getView('searchpeopleraw', 'raw') -> setModel($search);
|
70
|
$this -> getView('searchprojects', 'html') -> setModel($search);
|
71
|
$this -> getView('searchprojectsraw', 'raw') -> setModel($search);
|
72
|
$this -> getView('searchpublications', 'html') -> setModel($search);
|
73
|
$this -> getView('searchpublicationsraw', 'raw') -> setModel($search);
|
74
|
$this -> getView('statistics', 'html') -> setModel($statistics);
|
75
|
$this -> getView('topics', 'raw') -> setModel($alerts);
|
76
|
$this -> getView('validator', 'html') -> setModel($redirect);
|
77
|
$this -> getView('validator', 'html') -> setModel($piwik);
|
78
|
// view widget uses no model at all
|
79
|
}
|
80
|
}
|
81
|
|