Project

General

Profile

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('claims', 'html') -> setModel($claim);
42
		$this -> getView('claim2raw', 'raw') -> setModel($claim);
43
		$this -> getView('claim2raw', 'raw') -> setModel($search);
44
		$this -> getView('claiminline', 'html') -> setModel($claim);
45
		$this -> getView('claiminline', 'html') -> setModel($search);
46
        $this -> getView('claiminline2', 'html') -> setModel($claim);
47
		$this -> getView('claiminline2', 'html') -> setModel($search);
48
		$this -> getView('communities', 'raw') -> setModel($search);
49
        $this -> getView('communities', 'raw') -> setModel($claim);
50
        $this -> getView('data', 'raw') -> setModel($search);
51
		$this -> getView('dataset', 'html') -> setModel($search);
52
		$this -> getView('datasource', 'html') -> setModel($search);
53
		$this -> getView('emailpublication', 'raw') -> setModel($search);
54
		$this -> getView('emailpublication', 'raw') -> setModel($piwik);
55
		// view ingestion1 uses no model at all
56
		$this -> getView('ingestion2', 'html') -> setModel($search);
57
		$this -> getView('institutions', 'raw') -> setModel($search);
58
		$this -> getView('institutions', 'raw') -> setModel($piwik);
59
		$this -> getView('invenio', 'html') -> setModel($redirect);
60
		$this -> getView('invenio', 'html') -> setModel($piwik);
61
		$this -> getView('organization', 'html') -> setModel($search);
62
		$this -> getView('person', 'html') -> setModel($search);
63
		$this -> getView('printpublication', 'raw') -> setModel($search);
64
		$this -> getView('printpublication', 'raw') -> setModel($piwik);
65
		$this -> getView('project', 'html') -> setModel($search);
66
		$this -> getView('projects', 'raw') -> setModel($search);
67
		$this -> getView('projectfundings', 'raw') -> setModel($search);
68
		$this -> getView('publications', 'raw') -> setModel($search);
69
		$this -> getView('repositories', 'html') -> setModel($search);
70
		$this -> getView('search', 'html') -> setModel($search);
71
		$this -> getView('searchdatasets', 'html') -> setModel($search);
72
		$this -> getView('searchdatasetsraw', 'raw') -> setModel($search);
73
		$this -> getView('searchdatasources', 'html') -> setModel($search);
74
		$this -> getView('searchdatasourcesraw', 'raw') -> setModel($search);
75
		$this -> getView('searchorganizations', 'html') -> setModel($search);
76
		$this -> getView('searchorganizationsraw', 'raw') -> setModel($search);
77
		$this -> getView('searchpeople', 'html') -> setModel($search);
78
		$this -> getView('searchpeopleraw', 'raw') -> setModel($search);
79
		$this -> getView('searchprojects', 'html') -> setModel($search);
80
		$this -> getView('searchprojectsraw', 'raw') -> setModel($search);
81
		$this -> getView('searchpublications', 'html') -> setModel($search);
82
		$this -> getView('searchpublicationsraw', 'raw') -> setModel($search);
83
		$this -> getView('statistics', 'html') -> setModel($statistics);
84
		$this -> getView('topics', 'raw') -> setModel($alerts);
85
		$this -> getView('validator', 'html') -> setModel($redirect);
86
		$this -> getView('validator', 'html') -> setModel($piwik);
87
		// view widget uses no model at all
88
	}
89
}
90

    
(1-1/5)