Project

General

Profile

1
<?php
2

    
3
defined('_JEXEC') or die('Access denied');
4

    
5
jimport('joomla.application.component.view');
6
jimport('joomla.environment.request');
7
jimport('joomla.log.log');
8

    
9
const ADVANCED = 'advanced';
10
const ALERTS = 'alerts';
11
const BROWSE = 'browse';
12
const CLAIMS = 'claims';
13
const COMMUNITIES = 'communities';
14
const DATASET = 'dataset';
15
const DATASETS = 'datasets';
16
const DATASOURCE = 'dataprovider';
17
const DATASOURCES = 'dataproviders';
18
const DEPOSIT = 'deposit';
19
const DEPOSITIONS = 'depositions';
20
const FIND = 'find';
21
const JOIN = 'join';
22
const LINK = 'link';
23
const MY_PROFILE = 'myProfile';
24
const OPENAIRE = 'openaire';
25
const ORGANIZATION = 'organization';
26
const ORGANIZATIONS = 'organizations';
27
const PARTICIPATE = 'participate';
28
const PROJECT = 'project';
29
const PROJECTS = 'projects';
30
const PROVIDERS = 'providers';
31
const PUBLICATION = 'publication';
32
const PUBLICATIONS = 'publications';
33
const SEARCH = 'search';
34
const LOG = 'router';
35

    
36
function OpenAIREBuildRoute(&$query) {
37
	$segments = array();
38
	$initialQuery = print_r($query, TRUE);
39

    
40
	if ($query['option'] == 'com_openaire') {
41
		switch (@$query['view']) {		
42
		case 'data': // data is a raw view
43
			//JLog :: add('Ignoring route ' . $initialQuery . '', JLog :: INFO, LOG);
44
			return $segments;
45
		case 'widget': // widget is a raw view
46
			//JLog :: add('Ignoring route ' . $initialQuery . '', JLog :: INFO, LOG);
47
			return $segments;
48
		}
49
	}
50
	JLog :: add('Ignoring route ' . $initialQuery . '', JLog :: INFO, LOG);
51
	return $segments;
52
}
53

    
54

    
55
function OpenAIREParseRoute($segments) {
56
	JLog :: add('Parse route called', JLog :: WARNING, LOG);
57
	return $segments;
58
}
59

    
(5-5/5)