Project

General

Profile

1
<?php
2

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

    
5
jimport('joomla.environment.uri');
6
jimport('joomla.html.html');
7
jimport('joomla.methods');
8

    
9
JHtml :: _('behavior.framework',true);
10
JViewLegacy:: loadHelper('PublicationHelper');
11
JViewLegacy:: loadHelper('DatasetHelper');
12
JHtml::_( 'behavior.modal');
13

    
14
$document = JFactory :: getDocument();
15
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/SqueezeBox.css'));
16
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadabbrevs.js'));
17
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/xmle4x.js'));
18
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/xmldom.js'));
19
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadlocale.js'));
20
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadsys.js'));
21
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadcsl.js'));
22
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/citeproc.js'));
23
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/SqueezeBox.js'));
24
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tabcontent.js'));
25
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tooltip.js'));
26
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/dataset.js'));
27
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tabcontent.css'));
28
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tooltip/tooltip1.css'));
29
$document -> addScript( 'https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js');
30

    
31
$document->addScript(JRoute :: _(JUri :: base() . 'templates/yoo_solar/warp/libraries/jquery/jquery.js'));
32
                                                
33
$document->addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/js/DataTables/DataTables-1.10.9/css/jquery.dataTables.min.css'));
34
$document->addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/DataTables/DataTables-1.10.9/js/jquery.dataTables.min.js'));
35

    
36
//$author = $document->getMetaData('author');
37
//if(!empty($author)){
38
$document->setTitle("Dataset".(isset($this -> dataset -> title)?':'.$this -> dataset -> title:''));
39
//$document->setMetaData('author','');
40
//}
41
$application = JFactory :: getApplication();
42
$user = JFactory :: getUser();
43
$parameters = JComponentHelper :: getParams('com_openaire');
44
$canonicalUrl = JRoute :: _('index.php?option=com_openaire&view=dataset&datasetId=' . $this -> dataset -> id);
45
                                                        $inferredRelatedPublications = array();
46
                                                        $harvestedRelatedPublications = array();
47
                                                        $claimedRelatedPublications = array();
48
                                                        $otherRelatedPublications = array();
49
?>
50
<!-- Go to www.addthis.com/dashboard to customize your tools -->
51
<script type="text/javascript" src="<?php echo(JRoute :: _($parameters -> get('addThisUrl')) .JRoute :: _($parameters -> get('addThisPubId') )); ?>" async="async"></script>
52

    
53
<div class="">
54
	<input id="dataset" type="hidden" value="<?php echo(htmlentities(json_encode($this -> dataset)));?>"></input>
55
	<input id="url" type="hidden" value="<?php echo($canonicalUrl); ?>"></input>
56
	<input id="piwikUrl" type="hidden" value="<?php echo($parameters -> get('piwikUrl')); ?>" />
57
	<input id="piwikSiteId" type="hidden" value="<?php echo($parameters -> get('piwikSiteId')); ?>" />
58
	<input id="user" type="hidden" value="<?php echo($user -> email); ?>" />
59
	<input id="session" type="hidden" value="<?php echo(JFactory :: getSession() -> getId()); ?>" />
60
	<input id="datasetId" type="hidden" value="<?php echo($this -> datasetId); ?>" />
61
	<input id="locale" type="hidden" value="<?php echo(JFactory :: getLanguage() -> getTag()); ?>" />
62
	<div class="uk-grid">
63
		<?php if (($this -> datasetId == NULL) || ($this -> dataset == NULL) || ($this -> dataset -> title == NULL)) { ?>
64
			<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_DATASET')); ?></div>
65
		<?php } else {
66
			$document -> addCustomTag('<meta name="citation_title" value="' . $this -> dataset -> title . '" />');
67
			foreach ($this -> dataset -> authors as $author) {
68
				if (($author -> fullName != NULL) || (($author -> lastName != NULL) && ($author -> firstName != NULL))) {
69
					$document -> addCustomTag('<meta name="citation_author" value="' . (($author -> fullName == NULL) ? ($author -> lastName . ', ' . $author -> firstName) : $author -> fullName) . '" />');
70
				}
71
			}
72
			if ($this -> dataset -> date != NULL) {
73
				$document -> addCustomTag('<meta name="citation_publication_date" value="' . date('Y/m/d', $this -> dataset -> date) . '" />');
74
			}
75
			foreach ($this -> dataset -> datasources as $datasource) {
76
				if ($datasource -> url != NULL) {
77
					$document -> addCustomTag('<meta name="citation_pdf_url" value="' . $datasource -> url . '" />');
78
				}
79
			}
80
			$document -> addCustomTag('<link rel="canonical" href="' . $canonicalUrl . '" />'); ?>
81
			<div class="uk-width-7-10">
82
				<div class="dataset">
83
					<div class="datasetIcon">
84
					<div class="pubTitle">
85
						<?php switch ($this -> dataset -> accessMode) {
86
						case OpenAireViewDataset :: OPEN_ACCESS:
87
							$accessModeClass = 'openAccess';
88
							$accessModeTitle = JText :: _('OPEN_ACCESS');
89
							break;
90
						case OpenAireViewDataset :: EMBARGO_ACCESS:
91
							$accessModeClass = 'embargoAccess';
92
							$accessModeTitle = JText :: _('EMBARGO_ACCESS');
93
							break;
94
						case OpenAireViewDataset :: RESTRICTED_ACCESS:
95
							$accessModeClass = 'restrictedAccess';
96
							$accessModeTitle = JText :: _('RESTRICTED_ACCESS');
97
							break;
98
						case OpenAireViewDataset :: CLOSED_ACCESS:
99
							$accessModeClass = 'closedAccess';
100
							$accessModeTitle = JText :: _('CLOSED_ACCESS');
101
							break;
102
						default:
103
							$accessModeClass = NULL;
104
							$accessModeTitle = NULL;
105
						} ?>
106
						<h3<?php echo((($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '"')) . (($accessModeTitle == NULL) ? '' : (' title="' . $accessModeTitle . '"'))); ?>><?php echo((($this -> dataset -> url == NULL) ? '' : ('<a target="_blank" class="custom-external" href="' . $this -> dataset -> url . '">')) . $this -> dataset -> title . (($this -> dataset -> url == NULL) ? '' : '</a>')); ?></h3>
107
					</div>
108
                    </div>
109
				
110
					<?php if (($this -> dataset -> authors != NULL) || ($this -> dataset -> year != NULL)) { ?>				
111
						<div class="infoline">
112
							<?php $itemId = $this -> itemId;
113
							echo(implode('; ', array_filter(array_map(function ($author) use ($itemId) {return (($author == NULL) || ((($author -> lastName == NULL) || ($author -> firstName == NULL)) && ($author -> fullName == NULL))) ? '' : ('<span class="auth">' . (($author -> id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=person&Itemid=' . $itemId . '&personId=' . $author -> id) . '">')) . ((($author -> lastName == NULL) || ($author -> firstName == NULL)) ? $author -> fullName : ($author -> lastName . ', ' . $author -> firstName)) . (($author -> id == NULL) ? '' : '</a>') . '</span>');}, $this -> dataset -> authors))));
114
							if ($this -> dataset -> year!= NULL) { ?>
115
								<span class="date">(<?php echo($this -> dataset -> year); ?>)</span>
116
							<?php } ?>
117
						</div>
118
					<?php }
119
					if ($this -> dataset -> publisher != NULL) { ?>
120
						<div class="dcinfo">
121
							<span class="dchdr"> <?php echo (JText :: _('PUBLISHER_') . '</span>  ' . $this -> dataset -> publisher); ?>
122
						</div>
123
					<?php }
124
					if ($this -> dataset -> journal != NULL) { ?>
125
						<div class="dcinfo">
126
							<span class="dchdr"> <?php echo (JText :: _('JOURNAL') . '</span>  ' . $this -> dataset -> journal); ?>
127
						</div>
128
					<?php }    
129
					if ($this -> dataset -> languages != NULL) { ?>
130
						<div class="dcinfo">
131
							<span class="dchdr"> <?php echo (JText :: _('LANGUAGES_') . '</span>  ' . implode(', ', $this -> dataset -> languages)); ?>                                                    
132
						</div>
133
					<?php }
134
					if ($this -> dataset -> type != NULL) { ?>
135
						<div class="dcinfo">
136
							<span class="dchdr"> <?php echo (JText :: _('TYPE_') . '</span>  ' . $this -> dataset -> type); ?>                                                    
137
						</div>
138
					<?php }
139
					if ($this -> dataset -> subjects != NULL) { ?>
140
						<div class="dcinfo">       
141
                                                    	<span class="dchdr"> <?php echo (JText :: _('SUBJECTS_') . '</span>  ' .implode(', ', $this -> dataset -> subjects)); ?>                                                    
142
 						</div>
143
					<?php }
144
					if ($this -> dataset -> embargoEndDate != NULL) { ?>
145
						<div class="dcinfo">
146
                                                    	<span class="dchdr"> <?php echo (JText :: _('EMBARGO_END_DATE_') . '</span>  ' .date(JText :: _('DATE_FORMAT'), $this -> dataset -> embargoEndDate)); ?>
147
						</div>
148
					<?php }
149
					if ($this -> dataset -> pids != NULL) { ?>
150
						<div class="dcinfo">
151
							<?php
152
                                                            mb_internal_encoding('UTF-8');
153
                                                            echo(JText :: _('IDENTIFIERS_') . implode(', ', array_filter(array_map(function ($pid) {
154
								switch ($pid -> clazz) {
155
								case OpenAireViewDataset :: DOI:
156
									return ($pid -> value == NULL) ? '' : ('<a target="_blank" class="custom-external" href="' . OpenAireViewDataset :: DOI_URL . urlencode($pid -> value) . '">' . ((mb_substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . '</a>');
157
								case OpenAireViewDataset :: PMC:
158
									return ($pid -> value == NULL) ? '' : ('<a target="_blank" class="custom-external" href="' . OpenAireViewDataset :: PMC_URL . urlencode($pid -> value) . '">' . ((mb_substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . '</a>');
159
								default:
160
									return '';
161
								}
162
							}, $this -> dataset -> pids)))); ?>
163
						</div>
164
					<?php }
165
					if ($this -> dataset -> description != NULL) { ?>
166
						<div class="description">
167
							<?php echo($this -> dataset -> description); ?>
168
						</div>
169
					<?php } ?>
170
                    <div class="actionbar">
171
                    
172
							 
173
                                                        <a class="button-default button-primary-add openClaimBox" href="<?php $url = JRoute :: _( 
174
							'index.php?option=com_openaire&view=claim2&tmpl=modal'
175
                                                                .'&claiminline=true&targetType=publication&sourceType=dataset&action=clear&activeId=' . $this -> dataset -> id); echo $url;?>"><?php echo(JText :: _('LINK_TO_PUBLICATION')); ?></a>
176
						</div>	
177
 					<div  class="tabs">
178
						<ul class="uk-tab"  data-uk-tab="{connect:'#tab-content'}"  > 
179
                                                     <?php
180
                                                        $totalPublications = 0;
181
                                                        $totalDatasets = 0;
182

    
183
                                                        if ($this->dataset->relatedPublications != null) {
184
                                                            foreach ($this->dataset->relatedPublications as $relatedDataset) {
185
                                                                if ($relatedDataset->provenance != null) {
186
                                                                    if (strpos($relatedDataset->provenance, 'iis') !== false) {
187
                                                                        $inferredRelatedPublications[] = $relatedDataset;
188
                                                                    } else if (strpos($relatedDataset->provenance, 'sysimport') !== false) {
189
                                                                        $harvestedRelatedPublications[] = $relatedDataset;
190
                                                                    } else if (strpos($relatedDataset->provenance, 'user') !== false) {
191
                                                                        $claimedRelatedPublications[] = $relatedDataset;
192
                                                                    } else {
193
                                                                        $otherRelatedPublications[] = $relatedDataset;
194
                                                                    }
195
                                                                }
196
                                                            }
197
                                                            $totalPublications = sizeof($inferredRelatedPublications)+sizeof($harvestedRelatedPublications)+sizeof($claimedRelatedPublications);
198
                                                        }
199

    
200
                                                        if (($this->dataset->relatedDatasets == NULL) && ($this->dataset->externalDatasets == NULL)) {
201
                                                            $totalDatasets =sizeof($this->dataset->relatedDatasets )+sizeof($this->dataset->externalDatasets);
202
                                                        }
203
                                                        ?>
204
                                                        <li class="uk-active"><a rel="publtab"><?php echo(JText :: _('RELATED_PUBLICATIONS') . ' (' . $totalPublications . ')'); ?></a></li>	
205
                                                        <li><a rel="datatab"><?php echo(JText :: _('RELATED_DATA') . ' (' . $totalDatasets . ')'); ?></a></li>		
206
 	
207
<!--								<li><a rel="statstab"><?php echo(JText :: _('METRICS')); ?></a></li>
208
-->
209
						</ul>
210
                                                    <ul id="tab-content" class="uk-switcher uk-margin">  
211
							
212
							<li id="publtab" class="">		
213
								<?php if (($this -> dataset -> relatedPublications == NULL) && ($this -> dataset -> relatedPublications == NULL)) { ?>
214
									<div class="box-info"><?php echo(JText :: _('NO_RELATED_PUBLICATIONS_STAY_TUNED_')); ?></div>
215
								<?php } else { 
216
 
217
								if($harvestedRelatedPublications!=null ){?>										 							
218
									<div class="section_harvested">
219
										<h4>
220
										<?php echo(JText :: _('HARVESTED_PUBLICATIONS')); ?> 
221
										</h4>	
222
										<p class="custom-blockquote custom-blockquote-nopad"><?php echo(JText :: _('HARVESTED_PUBLICATIONS_TECHNOLOGY')); ?></p>		
223
										 <table width="100%" cellspacing="0" cellpadding="0" border="0" class=" display harvestedTable" id="harvestedTable">
224
											<thead>
225
												<tr class="even">
226
	 												<th   valign="bottom" nowrap="nowrap"><?php echo(JText :: _('TITLE')); ?></th>	
227
													<th   valign="bottom" nowrap="nowrap"><?php echo(JText :: _('YEAR')); ?></th>		 																							
228
												</tr>
229
											</thead>
230
										 
231
											<tbody>
232
												<?php 
233
												foreach ($harvestedRelatedPublications  as $relatedPublication) {	 
234
													echo '<tr><td class="internal">';
235
 													$title=PublicationHelper :: _formatTitleinSpan(htmlspecialchars($relatedPublication -> title), $relatedPublication -> accessMode, $relatedPublication -> id, $relatedPublication -> source, $relatedPublication -> url, $itemId, 
236
													isset($relatedPublication -> inferred)?$relatedPublication -> inferred:false, 
237
													isset($relatedPublication -> trust)?$relatedPublication -> trust:"", 
238
													isset($relatedPublication -> provenance)?$relatedPublication -> provenance:"");
239
													echo((empty($title)?'-':$title).'</td>');
240
													echo('<td >'.(($relatedPublication -> year)==NULL?'-':$relatedPublication -> year).'</td>');
241
													echo '</tr>';
242
												}	
243
											 
244
												?>	
245
										    </tbody>
246
									    </table>
247
																		
248
 
249
									</div>	
250
								<?php } 
251
								if($claimedRelatedPublications!=null){?>									
252
								?>
253
									<div class="section_claimed">
254
										<h4>
255
										<?php echo(JText :: _('CLAIMED_PUBLICATIONS')); ?> 
256
										</h4>	
257
											<p class="custom-blockquote custom-blockquote-nopad"><?php echo(JText :: _('CLAIMED_PUBLICATIONS_TECHNOLOGY')); ?></p>										
258
										<?php 
259
										if($claimedRelatedPublications!=null){
260
											usort($claimedRelatedPublications, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;});
261
										}
262
										 ?>
263
										  <table width="100%" cellspacing="0" cellpadding="0" border="0" class=" display claimedTable" id="claimedTable">
264
											<thead>
265
												<tr class="even">
266
	 												<th  valign="bottom" nowrap="nowrap"><?php echo(JText :: _('TITLE')); ?></th>		
267
													<th  valign="bottom" nowrap="nowrap"><?php echo(JText :: _('YEAR')); ?></th>											
268
												</tr>
269
											</thead>
270
										 
271
											<tbody>
272
												<?php 
273
												foreach ($claimedRelatedPublications  as $relatedPublication) {	 
274
													echo '<tr><td class="internal">';
275
													$title=PublicationHelper :: _formatTitleinSpan(htmlspecialchars($relatedPublication -> title), $relatedPublication -> accessMode, $relatedPublication -> id, $relatedPublication -> source, $relatedPublication -> url, $itemId, 
276
													isset($relatedPublication -> inferred)?$relatedPublication -> inferred:false, 
277
													isset($relatedPublication -> trust)?$relatedPublication -> trust:"", 
278
													isset($relatedPublication -> provenance)?$relatedPublication -> provenance:"");
279
													echo((empty($title)?'-':$title).'</td>');
280
													echo('<td >'.(($relatedPublication -> year)==NULL?'-':$relatedPublication -> year).'</td>');
281
													echo '</tr>';
282
												}	
283
												 
284
												?>	
285
										    </tbody>
286
									    </table>
287
 
288
									</div>
289
								<?php 
290
								} 
291
								 if($inferredRelatedPublications!=null ){?>									
292
								 
293
									<div class="section_inferred">
294
										<h4>
295
										<?php echo(JText :: _('INFERRED_PUBLICATIONS')); ?> 
296
										</h4>
297
										<p class="custom-blockquote custom-blockquote-nopad"><?php echo(JText :: _('INFERRED_PUBLICATIONS_TECHNOLOGY')); ?></p>																				 
298
										<table width="100%" cellspacing="0" cellpadding="0" border="0" class=" display inferredTable" id="inferredTable">
299
											<thead>
300
												<tr class="even">
301
	 												<th  valign="bottom" nowrap="nowrap"><?php echo(JText :: _('TITLE')); ?></th>
302
													<th  valign="bottom" nowrap="nowrap"><?php echo(JText :: _('YEAR')); ?></th>	
303
	 												<th valign="bottom" nowrap="nowrap"><?php echo(JText :: _('TRUST')); ?></th>	
304
 												</tr>
305
											</thead>
306
										 
307
											<tbody>
308
												<?php 
309
												foreach ($inferredRelatedPublications  as $relatedPublication) {	 
310
													echo '<tr><td>';
311
													$title=PublicationHelper :: _formatTitle(htmlspecialchars($relatedPublication -> title), $relatedPublication -> accessMode, $relatedPublication -> id, $relatedPublication -> source, $relatedPublication -> url, $itemId, 
312
													isset($relatedPublication -> inferred)?$relatedPublication -> inferred:false, 
313
													isset($relatedPublication -> trust)?$relatedPublication -> trust:"", 
314
													isset($relatedPublication -> provenance)?$relatedPublication -> provenance:"");
315
													echo((empty($title)?'-':$title).'</td>');
316
													echo('<td >'.(($relatedPublication -> year)==NULL?'-':$relatedPublication -> year).'</td>');										
317
													echo('<td><span  style=" display: none; ">'  .($relatedPublication -> trust*100).'</span> 	<div   style="width:'  .($relatedPublication -> trust*100).'%;" class="uk-progress uk-progress-warning"><div class="uk-progress-bar" style="width: '.($relatedPublication -> trust*100).'%;">'.($relatedPublication -> trust*100).'%</div></div>');
318
 													echo '</td></tr>';
319
												}	
320
												 
321
												?>	
322
										    </tbody>
323
									    </table>
324
								    </div>
325
									<?php } ?>
326
 
327
								<?php }  
328
?>
329
							<!--
330
								<?php if (($this -> dataset -> relatedPublications == NULL) && ($this -> dataset -> externalPublications == NULL)) { ?>
331
									<div class="box-info"><?php echo(JText :: _('NO_RELATED_PUBLICATIONS_STAY_TUNED_')); ?></div>
332
								<?php } else { ?>
333
									<div class="searchResults">
334
										<?php foreach (array_slice($this -> dataset -> relatedPublications, 0, OpenAireViewDataset :: MAX_RELATED) as $relatedPublication) {
335
											echo(PublicationHelper :: formatPublication($relatedPublication, $this -> itemId));
336
										}
337
										if (count($this -> dataset -> relatedPublications) > OpenAireViewDataset :: MAX_RELATED) { ?>
338
											<div class="pageController">
339
												<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($this -> dataset -> relatedPublications)); ?></a>
340
											</div>
341
											<div class="more">
342
												<?php foreach (array_slice($this -> dataset -> relatedPublications, OpenAireViewDataset :: MAX_RELATED) as $relatedPublication) {
343
													echo(PublicationHelper :: formatPublication($relatedPublication, $this -> itemId));
344
												} ?>
345
											</div>
346
										<?php } ?>
347
									</div>
348
									<div class="searchResults">
349
										<?php foreach (array_slice($this -> dataset -> externalPublications, 0, OpenAireViewDataset :: MAX_RELATED) as $externalPublication) {
350
											echo(PublicationHelper :: formatPublication($externalPublication, $this -> itemId));
351
										}
352
										if (count($this -> dataset -> externalPublications) > OpenAireViewDataset :: MAX_RELATED) { ?>
353
											<div class="pageController">
354
												<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($this -> dataset -> externalPublications)); ?></a>
355
											</div>
356
											<div class="more">
357
												<?php foreach (array_slice($this -> dataset -> externalPublications, OpenAireViewDataset :: MAX_RELATED) as $externalPublication) {
358
													echo(PublicationHelper :: formatPublication($externalPublication, $this -> itemId));
359
												} ?>
360
											</div>
361
										<?php } ?>
362
									</div>
363
								<?php } ?>
364
								-->
365
							</li>
366
<li id="datatab" class="uk-active">
367
								<?php if (($this -> dataset -> relatedDatasets == NULL) && ($this -> dataset -> externalDatasets == NULL)) { ?>
368
									<div class="box-info"><?php echo(JText :: _('NO_RELATED_DATA_STAY_TUNED_')); ?></div>
369
								<?php } else { ?>
370
									<div class="searchResults">
371
										 <table width="100%" cellspacing="0" cellpadding="0" border="0" class=" display relatedTable" id="relatedTable">
372
											<thead>
373
												<tr class="even">
374
	 												<th  valign="bottom" nowrap="nowrap"><?php echo(JText :: _('TITLE')); ?></th>												
375
												</tr>
376
											</thead>
377
										 
378
											<tbody>
379
												<?php 
380
												foreach ($this -> dataset -> relatedDatasets  as $relatedDataset) {	 
381
													echo '<tr><td class="internal">';
382
													echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
383
													echo '</td></tr>';
384
												}	
385
												foreach ( $this -> dataset -> externalDatasets  as $relatedDataset) {	 
386
													echo '<tr><td class="external">';
387
													echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
388
													echo '</td></tr>';
389
												}
390
												?>	
391
										    </tbody>
392
									    </table>
393
																								
394
									<!--											
395
										<?php foreach (array_slice($this -> dataset -> relatedDatasets, 0, OpenAireViewDataset :: MAX_RELATED) as $relatedDataset) {
396
											echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
397
										}
398
										if (count($this -> dataset -> relatedDatasets) > OpenAireViewDataset :: MAX_RELATED) { ?>
399
											<div class="pageController">
400
												<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($this -> dataset -> relatedDatasets)); ?></a>
401
											</div>
402
											<div class="more">
403
												<?php foreach (array_slice($this -> dataset -> relatedDatasets, OpenAireViewDataset :: MAX_RELATED) as $relatedDataset) {
404
													echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
405
												} ?>
406
											</div>
407
										<?php } ?>
408
									</div>
409
									<div class="searchResults">
410
										<?php foreach (array_slice($this -> dataset -> externalDatasets, 0, OpenAireViewDataset :: MAX_RELATED) as $externalDataset) {
411
											echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId));
412
										}
413
										if (count($this -> dataset -> externalDatasets) > OpenAireViewDataset :: MAX_RELATED) { ?>
414
											<div class="pageController">
415
												<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($this -> dataset -> externalDatasets)); ?></a>
416
											</div>
417
											<div class="more">
418
												<?php foreach (array_slice($this -> dataset -> externalDatasets, OpenAireViewDataset :: MAX_RELATED) as $externalDataset) {
419
													echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId));
420
												} ?>
421
											</div>
422
										<?php } ?> 
423
										-->
424
									</div> 
425
								<?php } ?>
426
							</li>
427
                                                        <!--							
428
<li id="statstab" class="">
429
								<div class="box-info"><?php echo(JText :: _('NO_METRICS_STAY_TUNED_')); ?></div>
430
							</li>
431
-->							
432
						</ul>
433
					</div>
434
				</div>
435
			</div><!--innerLeft-->
436
			<div class="uk-width-3-10">
437
				<div class="mainFunctionsBlock">
438
					<!-- div class="pageFunctionBlock">
439
						<a class="icon-print" target="_blank" href="<?php echo(JRoute :: _(  'index.php?option=com_openaire&view=printdataset&format=raw&datasetId=' . $this -> datasetId)); ?>">&nbsp;</a>
440
						<a class="icon-mail" id="emailButton">&nbsp;</a>
441
						<form id="emailForm" method="post" action="<?php echo(JRoute :: _(  'index.php?option=com_openaire&view=emaildataset&format=raw&Itemid=' . $this -> itemId)); ?>">
442
							<input type="hidden" name="datasetId" value="<?php echo($this -> datasetId); ?>" />
443
							<input type="email" name="recipient" value="<?php echo($user -> guest ? '' : $user -> email); ?>" placeholder="<?php echo(JText :: _('ENTER_RECIPIENT_ADDRESS')); ?>" />
444
							<input type="submit" value="<?php echo(JText :: _('SEND')); ?>" />
445
						</form>
446
					</div -->
447
					<!-- &redirect_uri=<?php echo(urlencode(JUri :: base() .$canonicalUrl).'&Itemid=' . $this -> itemId); ?>
448
					&link=<?php echo(urlencode(JUri :: base() .$canonicalUrl)); ?>
449
					&actions=<?php echo(urlencode('{\'name\': \'' . JText :: _('CHECK_OUT_THE_DATASET') . '\', \'link\':\'' .(urlencode(JUri :: base() .$canonicalUrl)) . '\'}')); ?>
450
					-->
451
					<div class="functionsSection">
452
						<h3 class="title"><?php echo(JText :: _('SHARE_BOOKMARK')); ?></h3>
453
						<!-- Go to www.addthis.com/dashboard to customize your tools -->
454
						<div class="addthis_sharing_toolbox"></div>
455
						<!--
456
                                                <a href="http://www.facebook.com/dialog/feed?app_id=551016748244897&link=<?php echo(urlencode(JRoute :: _( 'index.php?option=com_openaire&view=dataset&datasetId=' . $this -> datasetId))); ?>&show_error=yes&redirect_uri=<?php echo(urlencode('https://www.openaire.eu/')); ?>&name=<?php echo(urlencode($this -> dataset -> title)); ?>&caption=<?php echo(urlencode(JText :: _('CHECK_THIS_DATASET_OUT'))); ?>&message=<?php echo(urlencode(JText :: _('WHAT_DO_YOU_THINK_OF_THIS_DATASET_'))); ?>" title="<?php echo(JText :: _('SHARE_ON_FACEBOOK')); ?>" rel="nofollow" target="_blank" 
457
						class="social-button social-fb" onclick="return track('shareDatasetFacebook');"></a>
458
						<a href="https://twitter.com/share?text=<?php echo(urlencode('#' . JText :: _('OPENAIRE') . ': ' . $this -> dataset -> title));?>" target="_blank" rel="nofollow" title="<?php echo(JText :: _('SHARE_ON_TWITTER')); ?>" class="social-button social-twitter" onclick="return track('shareDatasetTwitter');"></a>
459
						<a href="https://plus.google.com/share?url=<?php echo(urlencode(JRoute :: _('index.php?option=com_openaire&view=dataset&datasetId=' . $this -> datasetId))); ?>" target="_blank" rel="nofollow" title="<?php echo(JText :: _('SHARE_ON_GOOGLE_')); ?>" class="social-button social-google" onclick="return track('shareDatasetGooglePlus');"></a>
460
						<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo(urlencode(JRoute :: _( 'index.php?option=com_openaire&view=dataset&datasetId=' . $this -> datasetId))); ?>&title=<?php echo(urlencode($this -> dataset -> title)); ?>&source=<?php echo(urlencode(JText :: _('OPENAIRE'))); ?>&summary=<?php echo(urlencode(($this -> dataset -> description == NULL) ? '-' : $this -> dataset -> description)); ?>" target="_blank" rel="nofollow" title="<?php echo(JText :: _('SHARE_ON_LINKEDIN')); ?>" class="social-button social-linkedin" onclick="return track('shareDatasetLinkedIn');"></a>
461
      -->
462
					</div>
463
					<?php if (array_filter(array_map(function ($datasource) {return ($datasource -> name != NULL) && ($datasource -> name != OpenAireViewDataset :: OTHER_RESOURCES);}, $this -> dataset -> datasources)) != NULL) { ?>
464
						<div class="functionsSection">
465
							<h3 class="title"><?php echo(JText :: _('DOWNLOAD_FROM')); ?></h3>
466
							<ul class="line">	
467
								<?php
468
                                                                    echo((($this -> dataset -> publisher != NULL)?$this -> dataset -> publisher:'').
469
                                                                        (($this -> dataset -> publisher != NULL && $this -> dataset -> journal != NULL)?'/':'').
470
                                                                        (($this -> dataset -> journal != NULL)?$this -> dataset -> journal:''));                                                                    
471
                                                                    foreach($this -> dataset -> datasources as $datasource) {
472
									if (($datasource -> name != NULL) && ($datasource -> name != OpenAireViewDataset :: OTHER_RESOURCES)) {
473
										switch ($datasource -> accessMode) {
474
										case OpenAireViewDataset :: OPEN_ACCESS:
475
											$accessModeClass = 'openAccess';
476
											$accessModeTitle = JText :: _('OPEN_ACCESS');
477
											break;
478
										case OpenAireViewDataset :: EMBARGO_ACCESS:
479
											$accessModeClass = 'embargoAccess';
480
											$accessModeTitle = JText :: _('EMBARGO_ACCESS');
481
											break;
482
										case OpenAireViewDataset :: RESTRICTED_ACCESS:
483
											$accessModeClass = 'restrictedAccess';
484
											$accessModeTitle = JText :: _('RESTRICTED_ACCESS');
485
											break;
486
										case OpenAireViewDataset :: CLOSED_ACCESS:
487
											$accessModeClass = 'closedAccess';
488
											$accessModeTitle = JText :: _('CLOSED_ACCESS');
489
											break;
490
										default:
491
											$accessModeClass = NULL;
492
											$accessModeTitle = NULL;
493
										} ?>
494
										<li<?php echo(($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')); ?>>
495
											<?php echo((($datasource -> url == NULL) ? '' : ('<a target="_blank" class="custom-external" href="' . $datasource -> url . '" onclick="return track(\'downloadDataset\');">')) . $datasource -> name . (($datasource -> url == NULL) ? '' : '</a>')); ?>
496
										</li>
497
									<?php }
498
								} ?>
499
							</ul>
500
						</div>
501
					<?php }
502
					if (($this -> dataset -> sources != NULL) && (array_filter(array_map(function ($datasource) {return ($datasource -> name == NULL) || ($datasource -> name == OpenAireViewArticle :: OTHER_RESOURCES);}, $this -> dataset -> datasources)) != NULL)) { ?>
503
						<div class="functionsSection">
504
							<h3 class="title"><?php echo(JText :: _('PUBLISHED_IN')); ?></h3>
505
							<ul class="line">
506
								<?php $i = 0;
507
								foreach ($this -> dataset -> datasources as $datasource) {
508
									if (($datasource -> name == OpenAireViewArticle :: OTHER_RESOURCES) && array_key_exists($i, $this -> dataset -> sources)) {
509
										switch ($datasource -> accessMode) {
510
										case OpenAireViewArticle :: OPEN_ACCESS:
511
											$accessModeClass = 'openAccess';
512
											$accessModeTitle = JText :: _('OPEN_ACCESS');
513
											break;
514
										case OpenAireViewArticle :: EMBARGO_ACCESS:
515
											$accessModeClass = 'embargoAccess';
516
											$accessModeTitle = JText :: _('EMBARGO_ACCESS');
517
											break;
518
										case OpenAireViewArticle :: RESTRICTED_ACCESS:
519
											$accessModeClass = 'restrictedAccess';
520
											$accessModeTitle = JText :: _('RESTRICTED_ACCESS');
521
											break;
522
										case OpenAireViewArticle :: CLOSED_ACCESS:
523
											$accessModeClass = 'closedAccess';
524
											$accessModeTitle = JText :: _('CLOSED_ACCESS');
525
											break;
526
										default:
527
											$accessModeClass = NULL;
528
											$accessModeTitle = NULL;
529
										} ?>
530
										<li<?php echo(($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"'));?>>
531
											<?php echo((($datasource -> url == NULL) ? '' : ('<a target="_blank" class="custom-external" href="' . $datasource -> url . '" onclick="return track(\'downloadDataset\');">')) . $this -> dataset -> sources[$i++] . (($datasource -> url == NULL ? '' : '</a>'))); ?>
532
										</li>
533
									<?php }
534
								} ?>
535
							</ul>
536
						</div>
537
					<?php } ?>
538
					<div class="functionsSection">
539
						<h3 class="title"><?php echo(JText :: _('FUNDED_BY_PROJECTS')); ?></h3>
540
						<?php if ($this -> dataset -> projects == NULL) { ?>
541
							<div class="box-info"><?php echo(JText :: _('NO_PROJECTS_FOUND')); ?></div>
542
						<?php } else { ?>
543
							<ul class="line">
544
								<?php foreach($this -> dataset -> projects as $project) {
545
									
546
									/*if (($project != NULL) && (($project -> acronym != NULL) || ($project -> title != NULL))) { ?>
547
										<li><span class="fundinginfo"><?php echo((($project -> id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=project&Itemid=' . $this -> itemId . '&projectId=' . $project -> id) . '">')) . (($project -> acronym == NULL) ? $project -> title : $project -> acronym) . (($project -> code == NULL) ? '' : (' (' . $project -> code . ')')) . (($project -> id == NULL) ? '' : ('</a>'))); ?></span></li>
548
									<?php }
549
									*/
550
									?>
551
										<li>
552
											<?php
553
											$fundings='';
554
											if(isset($project -> funding)){
555
                                                                                                if ($project -> funding -> funding_level_2 != NULL){ 
556
													$fundings= str_replace("::", JText :: _('FUNDER_SEPARATOR'), $project -> funding -> funding_level_2);
557
												 }    
558
												 else if ($project -> funding -> funding_level_1 != NULL){ 
559
													$fundings= str_replace("::", JText :: _('FUNDER_SEPARATOR'), $project -> funding -> funding_level_1);
560
												 }
561
												else if ($project -> funding -> funding_level_0 != NULL){ 
562
													$fundings= str_replace("::", JText :: _('FUNDER_SEPARATOR'), $project -> funding -> funding_level_0);
563
												}												
564
											 }
565
											 ?>																						 
566
 										 <span><?php 
567
                                                                                 echo((($project -> id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=project&Itemid=' . $this -> itemId . '&projectId=' . $project -> id) . '">'))
568
                                                                                         .(($project -> acronym == NULL) ?                                                                                          
569
                                                                                         ((mb_strlen((($project -> funding -> funderShortName == NULL)?'':$project -> funding -> funderShortName. JText :: _('FUNDER_SEPARATOR')).$project -> title) > 36) ? (mb_substr((($project -> funding -> funderShortName == NULL)?'':$project -> funding -> funderShortName. JText :: _('FUNDER_SEPARATOR')).$project -> title, 0, 36 - (mb_strlen('...'))) . '...') :(($project -> funding -> funderShortName == NULL)?'':$project -> funding -> funderShortName. JText :: _('FUNDER_SEPARATOR')). $project -> title)
570
                                                                                         :(($project -> funding -> funderShortName == NULL)?'':$project -> funding -> funderShortName. JText :: _('FUNDER_SEPARATOR')). $project -> acronym) . (($project -> id == NULL) ? '' : ('</a>'))); 
571
                                                                                
572
                                                                                /* echo((($project -> id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=project&Itemid=' . $this -> itemId . '&projectId=' . $project -> id) . '">')) 
573
                                                                                    .(($project -> acronym == NULL) ? $project -> title : $project -> acronym) . (($project -> code == NULL) ? '' : (' (' . $project -> code . ')')). (($project -> id == NULL) ? '' : ('</a>'))); ?>
574
                                                                                    */
575
                                                                                 ?>
576
                                                                                 </span>
577
										<span class="projectTooltipSpan" onmouseover="tooltip.pop(this, '#tooltip_<?php echo $project -> id;?>')"> <img class="projectTooltipImage"  src="templates/<?php  echo($application->getTemplate()); ?>/styles/openaire/images/box_info<?php //echo ($project -> inferred)?"_ok":""?>.png" /></span>
578
										<div class="project-tooltip" style="display:none;"> 
579
											<div id="tooltip_<?php echo $project -> id;?>"> 
580
 
581
											<h4 style="margin:5px;"><?php echo $project -> title?></h4> 
582
                                                                                        
583
                                                                                        <?php echo(($project -> code == NULL)?'' :'<div style="text-align:center;">'.JText :: _('PROJECT_CODE_').$project -> code);  ?>
584
                                                                                          <div style="text-align:center;"><?php echo(JText :: _('FUNDER__').($project -> funding -> funder) );?></div>
585
 											<div style="text-align:center;"><?php echo((!empty($fundings)?JText :: _('FUNDING_'). $fundings:"") );?></div>
586

    
587
 											<?php if (isset($project -> funding)&&$project -> inferred){
588
												echo('<div style="text-align:center;">'.JText :: _('INFERRED_PROJECT_MESSAGE').'</div>');
589
											 }?>
590
											</div>
591
										</div>
592
									</li>
593
								<?php } ?>
594
							</ul>
595
						<?php } ?>
596
					</div>
597
					<div class="functionsSection">
598
						<h3 class="title"><?php echo(JText :: _('CITE_THIS_DATASET')); ?></h3>
599
						<div class="citationDownloader ">
600
							<select class="select" id="citations" name="citeselect">
601
								<option value="bibtex"><?php echo(JText :: _('BIBTEX')); ?></option>
602
								<option value="chicago"><?php echo(JText :: _('CHICAGO')); ?></option>
603
								<option value="ieee"><?php echo(JText :: _('IEEE')); ?></option>								
604
								<option value="science"><?php echo(JText :: _('SCIENCE')); ?></option>
605
								<option value="apa"><?php echo(JText :: _('APA')); ?></option>
606
								<option value="cell"><?php echo(JText :: _('CELL')); ?></option>
607
								<option value="harvard"><?php echo(JText :: _('HARVARD')); ?></option>
608
								<option value="mla"><?php echo(JText :: _('MLA')); ?></option>
609
								<option value="nature"><?php echo(JText :: _('NATURE')); ?></option>								 
610
								<option value="acm"><?php echo(JText :: _('ACM')); ?></option>				
611
							</select>
612
							<div id="citation" class="box-content"></div>
613
						</div>
614
					</div>
615
					<div class="functionsSection">
616
						<h3 class="title"><?php echo(JText :: _('COLLECTED_FROM')); ?></h3>
617
						<?php if (array_filter(array_map(function ($collectedFrom) {return ($collectedFrom -> name != NULL);}, $this -> dataset -> collectedFrom)) == NULL) { ?>
618
							<div class="box-info"><?php echo(JText :: _('NO_REPOSITORIES_FOUND')); ?></div>
619
						<?php } else { ?>
620
							<ul class="line">	
621
								<?php foreach($this -> dataset -> collectedFrom as $collectedFrom) {
622
									if ($collectedFrom -> name != NULL) { ?>
623
										<li class="collectedFrom">
624
										<?php echo((($collectedFrom -> id == NULL) ? '' : ('<a href="' .  JRoute :: _('index.php?option=com_openaire&view=datasource&Itemid=' . $this -> itemId . '&datasourceId=' . $collectedFrom -> id) . '">')) . $collectedFrom -> name . (($collectedFrom -> id == NULL) ? '' : '</a>')); ?>
625
										</li>
626
									<?php }
627
								} ?>
628
							</ul>
629
						<?php } ?>
630
					</div>
631
				</div>
632
			</div> <!--innerRight-->
633
		<?php } ?>
634
	</div><!--flowWrapper-->
635
</div>
636

    
637
<script language="javascript" type="text/javascript">
638
   
639
        
640
 
641
	var harvestedTableOptions = {};
642
    var harvestedTable = null; 
643
 
644
 <?php
645
 if(isset($harvestedRelatedPublications)){
646
	 $i=count($harvestedRelatedPublications);
647
	 if($i>50){
648
		?>
649
		harvestedTableOptions  = {
650
			"bFilter": false,			 
651
			"lengthMenu": [[10, 20, 50, -1], [10, 20, 50, "All"]],
652
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
653
		}; 
654
	<?php	
655
	}else if($i>20){
656
		?>
657
		harvestedTableOptions  = {
658
			"bFilter": false,			 
659
			"lengthMenu": [[10, 20,   -1], [10, 20,   "All"]],
660
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
661
		}; 
662
	<?php
663
	}else if($i>10){
664
		?>
665
		harvestedTableOptions  = {
666
			"bFilter": false,			 
667
			"lengthMenu": [[10, -1], [10,  "All"]],
668
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
669
		}; 
670
	<?php
671
	}else {
672
		?>
673
		harvestedTableOptions  = {
674
			"bFilter": false,			 
675
			"dom": '<"top">rt<"bottom"f><"clear">'
676
		}; 
677
	<?php
678
	}
679
	?> 
680
	var claimedTableOptions = {};
681
	var claimedTable = null; 
682
	 
683
		 <?php
684
	$i=count($claimedRelatedPublications);
685
	 if($i>50){
686
		?>
687
		claimedTableOptions  = {
688
			"bFilter": false,			 
689
			"lengthMenu": [[10, 20, 50, -1], [10, 20, 50, "All"]],
690
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
691
		}; 
692
	<?php	
693
	}else if($i>20){
694
		?>
695
		claimedTableOptions  = {
696
			"bFilter": false,			 
697
			"lengthMenu": [[10, 20,   -1], [10, 20,   "All"]],
698
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
699
		}; 
700
	<?php
701
	}else if($i>10){
702
		?>
703
		claimedTableOptions  = {
704
			"bFilter": false,			 
705
			"lengthMenu": [[10, -1], [10,  "All"]],
706
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
707
		}; 
708
	<?php
709
	}else {
710
		?>
711
		claimedTableOptions  = {
712
			"bFilter": false,			 
713
			"dom": '<"top">rt<"bottom"f><"clear">'
714
		}; 
715
	<?php
716
	}
717
	?>  
718
	var inferredTableOptions = {};
719
	var inferredTable = null; 
720
	
721
	 <?php
722
	$i=count($inferredRelatedPublications);  
723
	if($i>50){
724
		?>
725
		inferredTableOptions  = {
726
			"bFilter": false,		
727
		   "order": [[ 2, "desc" ]],	 	 
728
			"lengthMenu": [[10, 20, 50, -1], [10, 20, 50, "All"]],
729
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
730
		}; 
731
	<?php	
732
	}else if($i>20){
733
		?>
734
		inferredTableOptions  = {
735
			"bFilter": false,	
736
		   "order": [[ 2, "desc" ]],	 		 
737
			"lengthMenu": [[10, 20,   -1], [10, 20,   "All"]],
738
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
739
		}; 
740
	<?php
741
	}else if($i>10){
742
		?>
743
		inferredTableOptions  = {
744
			"bFilter": false,		
745
		    "order": [[ 2, "desc" ]],	 	 
746
			"lengthMenu": [[10, -1], [10,  "All"]],
747
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
748
		}; 
749
	<?php
750
	}else {
751
	?>
752
		inferredTableOptions  = {
753
			"bFilter": false,		
754
			"order": [[ 2, "desc" ]],	 
755
			"dom": '<"top">rt<"bottom"f><"clear">'
756
		}; 
757
<?php
758
	}
759
?>
760
var relatedDatasetTableOptions = {};
761
    var relatedDatasetTable = null; 
762
 
763
 <?php
764
	 $i=count($this -> dataset -> relatedDatasets)+count($this -> dataset -> externalDatasets);
765
	 if($i>50){
766
		?>
767
		relatedDatasetTableOptions  = {
768
			"bFilter": false,			 
769
			"lengthMenu": [[10, 20, 50, -1], [10, 20, 50, "All"]],
770
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
771
		}; 
772
	<?php	
773
	}else if($i>20){
774
		?>
775
		relatedDatasetTableOptions  = {
776
			"bFilter": false,			 
777
			"lengthMenu": [[10, 20,   -1], [10, 20,   "All"]],
778
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
779
		}; 
780
	<?php
781
	}else if($i>10){
782
		?>
783
		relatedDatasetTableOptions  = {
784
			"bFilter": false,			 
785
			"lengthMenu": [[10, -1], [10,  "All"]],
786
			 "dom": '<"top"iflp>rt<"bottom"ifp><"clear">'
787
		}; 
788
	<?php
789
	}else {
790
		?>
791
		relatedDatasetTableOptions  = {
792
			"bFilter": false,			 
793
			 "dom": '<"top">rt<"bottom"f><"clear">'
794
		}; 
795
	<?php
796
	}
797
	?> 
798
    window.addEvent('domready', function() {        
799
        harvestedTable = jQuery('.harvestedTable').dataTable(harvestedTableOptions);			
800
		claimedTable = jQuery('.claimedTable').dataTable(claimedTableOptions);			
801
    	inferredTable = jQuery('.inferredTable').dataTable(inferredTableOptions);	
802
		relatedDatasetTable = jQuery('.relatedTable').dataTable(relatedDatasetTableOptions);					
803
    });
804
    <?php
805
}
806

    
807
?> 
808
    
809
</script>
(1-1/2)