Revision 30919
Added by Argiro Kokogiannaki almost 10 years ago
modules/uoa-joomla/trunk/joomla-2.5.3/com_openaire/site/helpers/publicationhelper.php | ||
---|---|---|
23 | 23 |
public static function formatPublication($publication, $itemId) { |
24 | 24 |
if ($publication == NULL) |
25 | 25 |
return ''; |
26 |
|
|
26 |
//:: _formatTrustMeter($publication).PublicationHelper |
|
27 | 27 |
$publication = PublicationHelper :: _formatTitle(htmlspecialchars($publication -> title), $publication -> accessMode, $publication -> id, $publication -> source, $publication -> url, $itemId, |
28 | 28 |
isset($publication -> inferred)?$publication -> inferred:false, |
29 | 29 |
isset($publication -> trust)?$publication -> trust:"", |
30 |
isset($publication -> provenance)?$publication -> provenance:"") . PublicationHelper :: _formatData($publication, $itemId) . PublicationHelper :: _formatDescription($publication -> description);
|
|
30 |
isset($publication -> provenance)?$publication -> provenance:"") . PublicationHelper :: _formatData($publication, $itemId). PublicationHelper :: _formatDescription($publication -> description);
|
|
31 | 31 |
return ($publication == NULL) ? '' : ('<div class="srchRow">' . $publication . '</div>'); |
32 | 32 |
} |
33 | 33 |
|
... | ... | |
53 | 53 |
$accessModeClass = NULL; |
54 | 54 |
$accessModeTitle = NULL; |
55 | 55 |
} |
56 |
return ($title == NULL) ? '' : ('<h4' . (($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')) . '>' . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=article&Itemid=' . $itemId . '&articleId=' . $id) . '">')) : (($url == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . $url . '">'))) . $title . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('</a>')) : (($url == NULL) ? '' : ('</a>'))) . '</h4>'); |
|
56 |
//return ($title == NULL) ? '' : ('<h4' . (($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')) . '>' . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('<a href="' . JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=article&Itemid=' . $itemId . '&articleId=' . $id) . '">')) : (($url == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . $url . '">'))) . $title . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('</a>')) : (($url == NULL) ? '' : ('</a>'))) . ($inferred == true?" <span class='inferred'><img src='templates/yoo_solar/styles/openaire/images/box_info_ok.png' /></span><div style='display: none'><div class='inferred-popup' id='popup-". $id. "'>trust: $trust, provenance: $provenance </div></div>" :"") . '</h4>'); |
|
57 |
return ($title == NULL) ? '' : ('<h4' . (($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')) . '>' . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=article&Itemid=' . $itemId . '&articleId=' . $id) . '">')) : (($url == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . $url . '">'))) . $title . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('</a>')) : (($url == NULL) ? '' : ('</a>'))) . '</h4>'); |
|
57 | 58 |
} |
58 | 59 |
|
60 |
public static function formatTrustMeter($publication) { |
|
61 |
if ($publication == NULL) |
|
62 |
return ''; |
|
63 |
if ( property_exists($publication,'trust')){ |
|
64 |
if ( $publication->trust!=null){ |
|
65 |
return "<div title=\" ".($publication -> trust*100)."% \" style=\"float:right\" class=\"uk-progress\"><div class=\"uk-progress-bar\" style=\"width: ".($publication -> trust*100)."%;\"> </div></div>"; |
|
66 |
} |
|
67 |
} |
|
68 |
return ''; |
|
69 |
} |
|
59 | 70 |
public static function _formatData($publication, $itemId) { |
60 | 71 |
if ($publication == NULL) |
61 | 72 |
return ''; |
... | ... | |
68 | 79 |
$data = array_filter($data); |
69 | 80 |
return ($data == NULL) ? '' : ('<div class="biblio">' . implode('<br />', $data) . '</div>'); |
70 | 81 |
} |
71 |
|
|
72 | 82 |
public static function _formatAuthors($authors, $itemId) { |
73 | 83 |
$authors = ($authors == NULL) ? NULL : array_filter(array_map(function ($author) use ($itemId) {return PublicationHelper :: _formatAuthor($author, $itemId);}, $authors)); |
74 | 84 |
return ($authors == NULL) ? '' : (implode('; ', array_slice($authors, 0, PublicationHelper :: MAX_AUTHORS)) . ((count($authors) > PublicationHelper :: MAX_AUTHORS) ? ';...' : '')); |
... | ... | |
88 | 98 |
} |
89 | 99 |
|
90 | 100 |
public static function _formatProject($project, $itemId) { |
91 |
return (($project -> acronym == NULL) && ($project -> title == NULL)) ? '' : ('<span class="proj">' . (($project -> id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=project&Itemid=' . $itemId . '&projectId=' . $project -> id) . '">')) . (($project -> acronym == NULL) ? $project -> title : $project -> acronym) . (($project -> code == NULL) ? '' : (' (' . $project -> code . ')')) . (($project -> id == NULL) ? '' : '</a>') . '</span>'); |
|
101 |
return (($project -> acronym == NULL) && ($project -> title == NULL)) ? '' : ('<span class="proj">' . (($project -> id == NULL) ? '' : ('<a href="' . JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=project&Itemid=' . $itemId . '&projectId=' . $project -> id) . '">')) . (($project -> acronym == NULL) ? $project -> title : $project -> acronym) . (($project -> code == NULL) ? '' : (' (' . $project -> code . ')')) . (($project -> id == NULL) ? '' : '</a>') . '</span>');
|
|
92 | 102 |
} |
93 | 103 |
|
94 | 104 |
public static function _formatEmbargoEndDate($embargoEndDate) { |
95 |
return ($embargoEndDate == NULL) ? '' : (JText :: _('EMBARGO_END_DATE_') . ' <span class="embargoDate">' . date(JText :: _('DATE_FORMAT'), $embargoEndDate) . '</span>');
|
|
105 |
return ($embargoEndDate == NULL) ? '' : ('<span class="dchdr">'.JText :: _('EMBARGO_END_DATE_') . ' </span><span class="embargoDate">' . date(JText :: _('DATE_FORMAT'), $embargoEndDate) . '</span>');
|
|
96 | 106 |
} |
97 | 107 |
|
98 | 108 |
public static function _formatDescription($description) { |
99 | 109 |
return ($description == NULL) ? '' : ('<div class="description">' . ((strlen($description) > PublicationHelper :: MAX_DESCRIPTION) ? (substr($description, 0, PublicationHelper :: MAX_DESCRIPTION - strlen(PublicationHelper :: SUFFIX)) . PublicationHelper :: SUFFIX) : $description) . '</div>'); |
100 | 110 |
} |
111 |
|
|
112 |
public static function formatCitationLinks($citation) { |
|
113 |
if(sizeof($citation -> ids)==0){ |
|
114 |
return '<h5>'.$citation -> title.'</h5>'; |
|
115 |
}else{ |
|
116 |
$citationId=$citation -> ids[0]; |
|
117 |
if (sizeof($citation -> ids)>1){ |
|
118 |
usort($citation -> ids, function ($a, $b) {if ($a->confidenceLevel == $b->confidenceLevel) {return 0;}return ($a->confidenceLevel > $b->confidenceLevel) ? -1 : 1;}); |
|
119 |
$citationId=$citation -> ids[0]; |
|
120 |
} |
|
121 |
$link = '<h5>'.$citation -> title.'</h5>'; |
|
122 |
if(strcmp($citationId -> type,'openaire')==0){ |
|
123 |
$link ='<h5><a href="'. JURI :: base() . 'index.php?option=com_openaire&view=article&articleId='.$citationId->id.'">'.$citation -> title.'</a></h5>'; |
|
124 |
}else if(strcmp($citationId -> type,"pmid")==0){ |
|
125 |
$link ='<h5><a target="_blank" class="icon-external" href="http://www.ncbi.nlm.nih.gov/pubmed/'.$citationId->id.'">'.$citation -> title.'</a></h5>'; |
|
126 |
}else if(strcmp($citationId -> type,"pmcid")==0){ |
|
127 |
$link ='<h5><a target="_blank" class="icon-external" href="http://europepmc.org/articles/'.$citationId->id.'">'.$citation -> title.'</a></h5>'; |
|
128 |
}else if(strcmp($citationId -> type,"arxiv")==0){ |
|
129 |
$link ='<h5><a target="_blank" class="icon-external" href="http://arxiv.org/abs/'.$citationId->id.'">'.$citation -> title.'</a></h5>'; |
|
130 |
}else if(strcmp($citationId -> type,"doi")==0){ |
|
131 |
$link ='<h5><a target="_blank" class="icon-external" href="http://dx.doi.org/'.$citationId->id.'">'.$citation -> title.'</a></h5>'; |
|
132 |
} |
|
133 |
/*pmid 15558770 |
|
134 |
doi 4821630 |
|
135 |
other 380750 |
|
136 |
medline 22244 |
|
137 |
pii 8982 |
|
138 |
publisher-id 8382 |
|
139 |
pmcid 5107 |
|
140 |
coden 335 |
|
141 |
rrn 19 |
|
142 |
art-access-id 2 |
|
143 |
doaj 1 |
|
144 |
arxiv*/ |
|
145 |
|
|
146 |
//TODO add the rest id types |
|
147 |
return $link; |
|
148 |
} |
|
149 |
} |
|
150 |
|
|
101 | 151 |
} |
102 | 152 |
|
modules/uoa-joomla/trunk/joomla-2.5.3/com_openaire/site/helpers/datasethelper.php | ||
---|---|---|
49 | 49 |
$accessModeClass = NULL; |
50 | 50 |
$accessModeTitle = NULL; |
51 | 51 |
} |
52 |
return ($title == NULL) ? '' : ('<h4' . (($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')) . '>' . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=dataset&Itemid=' . $itemId . '&datasetId=' . $id) . '">')) : (($url == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . $url . '">'))) . $title . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('</a>')) : (($url == NULL) ? '' : ('</a>'))) . '</h4>'); |
|
52 |
//return ($title == NULL) ? '' : ('<h4' . (($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')) . '>' . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('<a href="' . JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=dataset&Itemid=' . $itemId . '&datasetId=' . $id) . '">')) : (($url == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . $url . '">'))) . $title . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('</a>')) : (($url == NULL) ? '' : ('</a>'))) . ($inferred == true?" <span class='inferred'><img src='templates/yoo_solar/styles/openaire/images/box_info_ok.png' /></span><div style='display: none'><div class='inferred-popup' id='popup-". $id. "'>trust: $trust, provenance: $provenance </div></div>" :"") . '</h4>'); |
|
53 |
return ($title == NULL) ? '' : ('<h4' . (($accessModeClass == NULL) ? '' : (' class="' . $accessModeClass . '" title="' . $accessModeTitle . '"')) . '>' . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=dataset&Itemid=' . $itemId . '&datasetId=' . $id) . '">')) : (($url == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . $url . '">'))) . $title . (($source == self :: OPENAIRE) ? (($id == NULL) ? '' : ('</a>')) : (($url == NULL) ? '' : ('</a>'))) . '</h4>'); |
|
54 |
|
|
53 | 55 |
} |
54 | 56 |
|
55 | 57 |
public static function _formatData($dataset, $itemId) { |
modules/uoa-joomla/trunk/joomla-2.5.3/com_openaire/site/language/en-GB/en-GB.com_openaire.ini | ||
---|---|---|
47 | 47 |
CHICAGO="Chicago" |
48 | 48 |
CITE_THIS_ARTICLE="Cite this article" |
49 | 49 |
CITE_THIS_DATASET="Cite this dataset" |
50 |
CLAIM_PUBLICATION="Link publication to" |
|
50 | 51 |
CLAIM_DATE="Claim Date" |
51 | 52 |
CLAIMED_ON_S="Claimed on %s" |
52 | 53 |
CLAIMED_PUBLICATIONS_DATASETS="Claimed Publications/Datasets" |
54 |
CLEAR_ALL="clear all" |
|
53 | 55 |
CLEAR_ALL_FILTERS="clear all filters" |
54 | 56 |
CLOSE="Close" |
55 | 57 |
CLOSED_ACCESS="Closed Access" |
... | ... | |
66 | 68 |
COUNTRY_="Country:" |
67 | 69 |
COUNTRY__="country" |
68 | 70 |
CONTEXT="Context" |
69 |
COMMUNITY="Community"
|
|
71 |
COMMUNITY="Related to communities"
|
|
70 | 72 |
COMMUNITIES="Communities" |
71 | 73 |
COMMUNITY_="Community:" |
72 | 74 |
CREATE_ALERT="Create Alert" |
... | ... | |
79 | 81 |
DATA_REPOSITORY_AGGREGATORS="Data Repository Aggregators" |
80 | 82 |
DATASET_DOI_RESOLVED_VIA_DATACITE_="Dataset DOI (resolved via DataCite)" |
81 | 83 |
DATASET_LANGUAGE="Dataset Language" |
84 |
DATASET_LANGUAGES_="Dataset Languages:" |
|
85 |
DATASET_SUBJECTS_="Dataset Subjects:" |
|
82 | 86 |
DATASET_TYPE="Dataset Type" |
87 |
DATASET_TYPE_="Dataset Type:" |
|
83 | 88 |
DATASOURCE="Datasource" |
84 | 89 |
DATASOURCE_LANGUAGE="Datasource Language" |
85 | 90 |
DATASOURCE_LANGUAGES_="Datasource Languages:" |
... | ... | |
98 | 103 |
DOCUMENT_LANGUAGES_="Document Languages:" |
99 | 104 |
DOCUMENT_TYPE="Document Type" |
100 | 105 |
DOCUMENT_TYPES_="Document Types:" |
106 |
DOCUMENT_SUBJECTS_="Document Subjects:" |
|
101 | 107 |
DOCUMENTS="Documents" |
102 | 108 |
DOCUMENTS__="documents" |
103 | 109 |
DOWNLOAD_EC_PROGRESS_REPORT_CSV_="Download EC progress report (CSV)" |
... | ... | |
179 | 185 |
IDENTIFY="Identify" |
180 | 186 |
IDENTIFY_PROJECT="Identify project" |
181 | 187 |
IEEE="IEEE" |
188 |
INFERRED_SUBJECTS_="Also classified by OpenAIRE into" |
|
189 |
INFERRED_SUBJECTS_TOOLTIP="Questions on how we extract these? Contact us at info@openaire.eu" |
|
182 | 190 |
IN_THE_LAST_10_YEARS="in the last 10 years" |
183 | 191 |
IN_THE_LAST_12_MONTHS="in the last 12 months" |
184 | 192 |
IN_THE_LAST_2_MONTHS="in the last 2 months" |
... | ... | |
208 | 216 |
LEGAL_PERSON="Legal Person" |
209 | 217 |
LIMITS="Limits" |
210 | 218 |
LINK_RESEARCH_RESULTS="Link Research Results" |
219 |
LINK_TO_PROJECT="Link to project" |
|
220 |
LINK_TO_DATA="Link to dataset" |
|
221 |
LINKED_TO="Related to " |
|
211 | 222 |
LOCATE_CONFIRM_PUBLICATIONS="Locate & Confirm Publications" |
212 | 223 |
LOCATE_REPOSITORY_VIA_YOUR_INSTITUTION="Locate repository via your institution" |
213 | 224 |
MANAGE_YOUR_ALERTS="Manage your alerts" |
... | ... | |
252 | 263 |
NO_FUNDER_STATISTICS_FOUND="No funder statistics found" |
253 | 264 |
NO_FUNDING_STREAM_STATISTICS_FOUND="No funding stream statistics found" |
254 | 265 |
NO_INSTITUTION_STATISTICS_FOUND="No institution statistics found" |
255 |
NO_METRICS_STAY_TUNED_="No metrics. Stay tuned!"
|
|
266 |
NO_METRICS_STAY_TUNED_="No metrics." |
|
256 | 267 |
NO_ORGANIZATION_DATASOURCES_FOUND="No organization datasources found" |
257 | 268 |
NO_ORGANIZATION_TYPE_STATISTICS_FOUND="No organization type statistics found" |
258 | 269 |
NO_ORGANIZATIONS_FOUND="No organizations found" |
... | ... | |
266 | 277 |
NO_PUBLICATION_STATISTICS_FOUND="No publication statistics found" |
267 | 278 |
NO_PUBLICATION_YEAR_STATISTICS_FOUND="No publication year statistics found" |
268 | 279 |
NO_PUBLICATIONS_FOUND="No publications found" |
269 |
NO_RELATED_DATA_STAY_TUNED_="No related data. Stay tuned!"
|
|
270 |
NO_RELATED_PUBLICATIONS_STAY_TUNED_="No related publications. Stay tuned!"
|
|
271 |
NO_SIMILAR_PUBLICATIONS_STAY_TUNED_="No similar publications. Stay tuned!"
|
|
280 |
NO_RELATED_DATA_STAY_TUNED_="No related data." |
|
281 |
NO_RELATED_PUBLICATIONS_STAY_TUNED_="No related publications." |
|
282 |
NO_SIMILAR_PUBLICATIONS_STAY_TUNED_="No similar publications." |
|
272 | 283 |
NO_REPOSITORIES_FOUND="No repositories found" |
273 | 284 |
NO_REPOSITORIES_FOUND_YOU_CAN_STILL_DEPOSIT_YOUR_PUBLICATIONS_AND_OR_DATA_IN_SZENODO_CERNS_AN_OPENAIRE_SPONSORED_REPOSITORY_="No repositories found. You can still deposit your publications and/or data in %sZenodo @ CERN%s, an OpenAIRE sponsored repository." |
274 | 285 |
NO_REPOSITORY_STATISTICS_FOUND="No repository statistics found" |
... | ... | |
342 | 353 |
REFINE_BY="Refine by" |
343 | 354 |
REJECT="reject" |
344 | 355 |
RELATED_DATA="Related Data" |
356 |
RELATED_DATA_TECHNOLOGY="The results below are discovered through our pilot algorithms. <a href="mailto:info@openaire.eu" class="icon-mail">Let us know how we are doing!</a>" |
|
345 | 357 |
RELATED_PUBLICATIONS="Related Publications" |
346 | 358 |
SIMILAR_PUBLICATIONS="Similar Publications" |
347 | 359 |
REMOVE="Remove" |
... | ... | |
384 | 396 |
SHORT_NAME="Short name" |
385 | 397 |
SHOW_FEWER="Show fewer" |
386 | 398 |
SHOW_MORE="Show more" |
399 |
SIMILAR_PUBLICATIONS_TECHNOLOGY="Discovered through pilot similarity algorithms. <a href="mailto:info@openaire.eu" class="icon-mail">Let us know how we are doing!</a>" |
|
387 | 400 |
SIMPLE_SEARCH_="Simple Search »" |
388 | 401 |
SIZE_="Size:" |
389 | 402 |
SMALL_MEDIUM_ENTERPRISE="Small-Medium Enterprise" |
... | ... | |
396 | 409 |
STATISTICS="Statistics" |
397 | 410 |
SUBJECT="Subject" |
398 | 411 |
SUBJECTS="Subjects" |
399 |
THE_SELECTED_INSTITUTION_DOESN_T_HAVE_AN_OPEN_ACCESS_REPOSITORY_="The selected institution doesn't have an open access repository." |
|
412 |
SUBJECTS_="Subjects:" |
|
413 |
THE_SELECTED_INSTITUTION_DOESN_T_HAVE_AN_OPEN_ACCESS_REPOSITORY_="The selected institution doesn't have an open access repository. You can still deposit your publications and/or data in %sZenodo @ CERN%s, an OpenAIRE sponsored repository." |
|
400 | 414 |
THESES="Theses" |
401 | 415 |
THEN_YOU_CAN_DEPOSIT_YOUR_PUBLICATIONS_AND_OR_DATA_IN_SZENODO_CERNS_AN_OPENAIRE_SPONSORED_REPOSITORY_="Then you can deposit your publications and/or data in %sZenodo @ CERN%s, an OpenAIRE sponsored repository." |
402 | 416 |
TITLE="Title" |
... | ... | |
405 | 419 |
TOTAL_NUMBER_OF_PUBLICATIONS_PUBLISHED_IN_FP7_S="Total number of publications published in FP7 - %s" |
406 | 420 |
TYPE="Type" |
407 | 421 |
TYPE_="Type:" |
422 |
TYPES_="Types:" |
|
408 | 423 |
TYPE_THE_NAME_OF_YOUR_INSTITUTION_="Type the name of your institution." |
409 | 424 |
TYPE_THE_PROJECT_TITLE_OR_THE_ACRONYM_OR_THE_GRANT_AGREEMENT_NUMBER_="Type the project title or the acronym or the grant agreement number." |
410 | 425 |
UNKNOWN="unknown" |
modules/uoa-joomla/trunk/joomla-2.5.3/com_openaire/site/models/search.php | ||
---|---|---|
3609 | 3609 |
throw new Exception('error parsing publication'); |
3610 | 3610 |
if (($typeNodes = $xpath -> query('./field[@name ="resulttypename"]/@value', $resultNode)) == FALSE) |
3611 | 3611 |
throw new Exception('error parsing publication'); |
3612 |
if (($subjectNodes = $xpath -> query('./field[@name = "subject"]', $resultNode)) == FALSE) |
|
3612 |
if (($subjectNodes = $xpath -> query('./field[@name = "subject" and field[@name="inferred" and @value="false"]]', $resultNode)) == FALSE)
|
|
3613 | 3613 |
throw new Exception('error parsing publication'); |
3614 |
if (($inferredSubjectNodes = $xpath -> query('./field[@name = "subject" and field[@name="inferred" and @value="true"]]', $resultNode)) == FALSE) |
|
3615 |
throw new Exception('error parsing publication'); |
|
3614 | 3616 |
if (($embargoEndDateNodes = $xpath -> query('./field[@name = "embargoenddate"]/@value', $resultNode)) == FALSE) |
3615 | 3617 |
throw new Exception('error parsing publication'); |
3616 | 3618 |
if (($descriptionNodes = $xpath -> query('./field[@name = "description"]/@value', $resultNode)) == FALSE) |
... | ... | |
3632 | 3634 |
if (($externalReferenceNodes = $xpath -> query('./field[@name = "externalreference"]', $resultNode)) == FALSE) |
3633 | 3635 |
throw new Exception('error parsing publication'); |
3634 | 3636 |
if (($contextNodes = $xpath -> query('./field[@name = "context"]', $resultNode)) == FALSE) |
3635 |
throw new Exception('error parsing publication'); |
|
3637 |
throw new Exception('error parsing publication'); |
|
3638 |
if (($citationNodes = $xpath -> query('./field[@name = "citation"]', $resultNode)) == FALSE) |
|
3639 |
throw new Exception('error parsing publication'); |
|
3636 | 3640 |
$publication = new JObject(); |
3637 | 3641 |
$publication -> id = (($idNode = $idNodes -> item(0)) == NULL) ? NULL : trim($idNode -> nodeValue); |
3638 | 3642 |
$publication -> source = 'openaire'; |
... | ... | |
3646 | 3650 |
$publication -> languages = array(); |
3647 | 3651 |
$publication -> type = array(); |
3648 | 3652 |
$publication -> subjects = array(); |
3653 |
$publication -> inferredSubjects = array(); |
|
3649 | 3654 |
$publication -> embargoEndDate = (($embargoEndDateNode = $embargoEndDateNodes -> item(0)) == NULL) ? NULL : strtotime(trim($embargoEndDateNode -> nodeValue)); |
3650 | 3655 |
$publication -> description = (($descriptionNode = $descriptionNodes -> item(0)) == NULL) ? NULL : trim($descriptionNode -> nodeValue); |
3651 | 3656 |
$publication -> datasources = array(); |
... | ... | |
3659 | 3664 |
$publication -> externalPublications = array(); |
3660 | 3665 |
$publication -> externalDatasets = array(); |
3661 | 3666 |
$publication -> contexts = array(); |
3667 |
$publication -> citations = array(); |
|
3662 | 3668 |
foreach ($authorNodes as $authorNode) { |
3663 | 3669 |
if (($idNodes = $xpath -> query('./field[@name = "personId"]/@value', $authorNode)) == FALSE) |
3664 | 3670 |
throw new Exception('error parsing publication'); |
... | ... | |
3697 | 3703 |
if (($subject -> title != NULL) || ($subject -> inferred != NULL) || ($subject -> trust != NULL) || ($subject -> provenance != NULL)) |
3698 | 3704 |
$publication -> subjects[] = $subject; |
3699 | 3705 |
} |
3706 |
$inferredSubjectsTempArray=array(); |
|
3707 |
foreach ($inferredSubjectNodes as $subjectNode) { |
|
3708 |
if (($titleNodes = $xpath -> query('./@value', $subjectNode)) == FALSE) |
|
3709 |
throw new Exception('error parsing publications'); |
|
3710 |
if (($inferredNodes = $xpath -> query('./field[@name = "inferred"]/@value', $subjectNode)) == FALSE) |
|
3711 |
throw new Exception('error parsing publications'); |
|
3712 |
if (($trustNodes = $xpath -> query('./field[@name = "trust"]/@value', $subjectNode)) == FALSE) |
|
3713 |
throw new Exception('error parsing publications'); |
|
3714 |
if (($provenanceNodes = $xpath -> query('./field[@name = "provenance"]/@value', $subjectNode)) == FALSE) |
|
3715 |
throw new Exception('error parsing publications'); |
|
3716 |
if (($taxonomyNodes = $xpath -> query('./field[@name = "taxonomy"]/@value', $subjectNode)) == FALSE) |
|
3717 |
throw new Exception('error parsing publications'); |
|
3718 |
|
|
3719 |
$subject = new JObject(); |
|
3720 |
$subject -> title = (($titleNode = $titleNodes -> item(0)) == NULL) ? NULL : trim($titleNode -> nodeValue); |
|
3721 |
$subject -> inferred = (($inferredNode = $inferredNodes -> item(0)) == NULL) ? NULL : trim($inferredNode -> nodeValue)=="true"?true:false; |
|
3722 |
$subject -> trust = (($trustNode = $trustNodes -> item(0)) == NULL) ? NULL : trim($trustNode -> nodeValue); |
|
3723 |
$subject -> provenance = (($provenanceNode = $provenanceNodes -> item(0)) == NULL) ? NULL : trim($provenanceNode -> nodeValue); |
|
3724 |
$subject -> taxonomy = (($taxonomyNode = $taxonomyNodes -> item(0)) == NULL) ? NULL : trim($taxonomyNode -> nodeValue); |
|
3725 |
|
|
3726 |
if (($subject -> title != NULL) || ($subject -> inferred != NULL) || ($subject -> trust != NULL) || ($subject -> provenance != NULL)|| ($subject -> taxonomy != NULL)){ |
|
3727 |
$miniSubject=new JObject(); |
|
3728 |
$miniSubject->title=$subject->title; |
|
3729 |
$miniSubject->trust=$subject->trust; |
|
3730 |
$inferredSubjectsTempArray[$subject -> taxonomy][]= $miniSubject; |
|
3731 |
} |
|
3732 |
} |
|
3733 |
//Sort the subjects on trust |
|
3734 |
foreach($inferredSubjectsTempArray as $taxonomyKey => $subjectsValues){ |
|
3735 |
usort($subjectsValues, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
3736 |
$publication -> inferredSubjects[$taxonomyKey]=$subjectsValues; |
|
3737 |
} |
|
3738 |
|
|
3700 | 3739 |
foreach ($datasourceNodes as $datasourceNode) { |
3701 | 3740 |
if (($idNodes = $xpath -> query('./field[@name = "hostedby"]/@value_original', $datasourceNode)) == FALSE) |
3702 | 3741 |
throw new Exception('error parsing publication'); |
... | ... | |
3985 | 4024 |
if (($context -> id != NULL) || ($context -> name != NULL) || ($context -> categories != NULL)) |
3986 | 4025 |
$publication -> contexts[] = $context; |
3987 | 4026 |
} |
4027 |
foreach ($citationNodes as $citationNode) { |
|
4028 |
if (($titleNodes = $xpath -> query('./field[@name = "rawText"]/@value', $citationNode)) == FALSE) |
|
4029 |
throw new Exception('error parsing publications'); |
|
4030 |
if (($idsNodes = $xpath -> query('./field[@name = "citationId"]', $citationNode)) == FALSE) |
|
4031 |
throw new Exception('error parsing publications'); |
|
4032 |
$citation = new JObject(); |
|
4033 |
$citation -> title = (($titleNode = $titleNodes -> item(0)) == NULL) ? NULL : trim($titleNode -> nodeValue); |
|
4034 |
$citation -> ids=array(); |
|
4035 |
foreach ($idsNodes as $citationIdNode) { |
|
4036 |
if (($idNodes = $xpath -> query('./field[@name = "id"]/@value', $citationIdNode)) == FALSE) |
|
4037 |
throw new Exception('error parsing publications'); |
|
4038 |
if (($typeNodes = $xpath -> query('./field[@name = "type"]/@value', $citationIdNode)) == FALSE) |
|
4039 |
throw new Exception('error parsing publications'); |
|
4040 |
if (($confidenceLevelNodes = $xpath -> query('./field[@name = "confidenceLevel"]/@value', $citationIdNode)) == FALSE) |
|
4041 |
throw new Exception('error parsing publications'); |
|
4042 |
$ids=new JObject(); |
|
4043 |
$ids->id = (($idNode = $idNodes -> item(0)) == NULL) ? NULL : trim($idNode -> nodeValue); |
|
4044 |
$ids->type = (($typeNode = $typeNodes -> item(0)) == NULL) ? NULL : trim($typeNode -> nodeValue); |
|
4045 |
$ids->confidenceLevel = (($confidenceLevelNode = $confidenceLevelNodes -> item(0)) == NULL) ? NULL : trim($confidenceLevelNode -> nodeValue); |
|
4046 |
$citation -> ids[]=$ids; |
|
4047 |
} |
|
4048 |
|
|
4049 |
$publication->citations[]=$citation; |
|
4050 |
/* $subject -> inferred = (($inferredNode = $inferredNodes -> item(0)) == NULL) ? NULL : trim($inferredNode -> nodeValue)=="true"?true:false; |
|
4051 |
$subject -> trust = (($trustNode = $trustNodes -> item(0)) == NULL) ? NULL : trim($trustNode -> nodeValue); |
|
4052 |
$subject -> provenance = (($provenanceNode = $provenanceNodes -> item(0)) == NULL) ? NULL : trim($provenanceNode -> nodeValue); |
|
4053 |
$subject -> taxonomy = (($taxonomyNode = $taxonomyNodes -> item(0)) == NULL) ? NULL : trim($taxonomyNode -> nodeValue); |
|
4054 |
*/ |
|
4055 |
} |
|
3988 | 4056 |
return $publication; |
3989 | 4057 |
} |
3990 | 4058 |
|
modules/uoa-joomla/trunk/joomla-2.5.3/com_openaire/site/views/article/tmpl/default.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
defined('_JEXEC') or die('Access denied'); |
4 |
|
|
5 | 4 |
jimport('joomla.environment.uri'); |
6 | 5 |
jimport('joomla.html.html'); |
7 | 6 |
jimport('joomla.methods'); |
... | ... | |
65 | 64 |
$document -> addCustomTag('<link rel="canonical" href="' . $canonicalUrl . '" />'); ?> |
66 | 65 |
<div class="innerLeft"> |
67 | 66 |
<div class="publication"> |
68 |
<div class="publicationIcon"> </div> |
|
67 |
<div class="publicationIcon"> |
|
68 |
<!-- NMI should this be in input submit? to avoid bots --> |
|
69 |
<span style="float:right"> |
|
70 |
<a class="button-default button-primary-add openClaimBox" href="<?php $url = JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=claiminline&tmpl=modal&activePublicationId=' . $this -> article -> id); echo $url;?>"><?php echo(JText :: _('LINK_TO_PROJECT')); ?></a> |
|
71 |
<a class="button-default button-primary-add openClaimBox" href="<?php $url = JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=claiminline2&tmpl=modal&activePublicationId=' . $this -> article -> id); echo $url;?>"><?php echo(JText :: _('LINK_TO_DATA')); ?></a> |
|
72 |
</span> |
|
73 |
|
|
74 |
</div> |
|
69 | 75 |
<div class="pubTitle"> |
70 | 76 |
<?php switch ($this -> article -> accessMode) { |
71 | 77 |
case OpenAireViewArticle :: OPEN_ACCESS: |
... | ... | |
101 | 107 |
<?php } |
102 | 108 |
if ($this -> article -> publisher != NULL) { ?> |
103 | 109 |
<div class="dcinfo"> |
104 |
<?php echo ($this -> article -> publisher); ?>
|
|
110 |
<span class="dchdr"> <?php echo (JText :: _('PUBLISHER_') . '</span> ' . $this -> article -> publisher); ?>
|
|
105 | 111 |
</div> |
106 | 112 |
<?php } |
107 | 113 |
if ($this -> article -> languages != NULL) { ?> |
108 | 114 |
<div class="dcinfo"> |
109 |
<?php echo(implode(', ', $this -> article -> languages)); ?>
|
|
115 |
<span class="dchdr"> <?php echo( JText :: _('LANGUAGES_') . '</span> ' . implode(', ', $this -> article -> languages)); ?>
|
|
110 | 116 |
</div> |
111 | 117 |
<?php } |
112 | 118 |
if ($this -> article -> type != NULL) { ?> |
113 | 119 |
<div class="dcinfo"> |
114 |
<?php echo(implode(",", $this -> article -> type)); ?> |
|
120 |
<span class="dchdr"> <?php echo(JText :: _('TYPES_'). '</span> ' . implode(",", $this -> article -> type)); ?> |
|
121 |
<!--<?php echo(JText :: _('TYPES_') . ' ' . implode(",", $this -> article -> type)); ?> --> |
|
115 | 122 |
</div> |
116 | 123 |
<?php } |
117 |
if ($this -> article -> subjects != NULL) { |
|
124 |
if ($this -> article -> subjects != NULL) {
|
|
118 | 125 |
?> |
119 | 126 |
<?php $subjects_clean = array(); |
127 |
$subjects_inferred= array(); |
|
120 | 128 |
foreach ($this->article->subjects as $subject){ |
121 |
$subjects_clean[] = ("<span class=\"subject_item".($subject->inferred?" inferred":"")."\">" . str_replace("::", "/", $subject->title). ($subject->inferred == true?" <span class='inferred'><img src='templates/yoo_solar/styles/openaire/images/box_info_ok.png'></span><div style='display: none'><div class='inferred-popup' id='popup-". uniqid(). "'>trust: $subject->trust, provenance: $subject->provenance </div></div>":"") . "</span>");
|
|
129 |
$subjects_clean[] = ("<span class=\"subject_item\">".$subject->title."</span>");
|
|
122 | 130 |
} |
131 |
foreach ($this->article->inferredSubjects as $key => $subjects){ |
|
132 |
foreach($subjects as $subject){ |
|
133 |
$subjects_inferred[$key][] = ("<span class=\"subject_item inferred\">" . $subject->title."</span>"); |
|
134 |
} |
|
135 |
} |
|
136 |
/* NMI following commented out line contains tooltips. Leave for later use */ |
|
137 |
/* NMI group by classification scheme and in each scheme sort by higher trust level*/ |
|
138 |
//foreach ($this->article->subjects as $subject){ |
|
139 |
//if ($subject->inferred == false) $subjects_clean[] = ("<span class=\"subject_item\">".$subject->title."</span>"); |
|
140 |
/* NMI following commented out line contains tooltips. Leave for later use */ |
|
141 |
/*if ($subject->inferred == true) $subjects_inferred[] = ("<span class=\"subject_item".($subject->inferred?" inferred":"")."\">" . str_replace("::", "/", $subject->title). ($subject->inferred == true?" <span class='inferred'><img src='templates/yoo_solar/styles/openaire/images/box_info_ok.png'></span><div style='display: none'><div class='inferred-popup' id='popup-". uniqid(). "'>trust: $subject->trust, provenance: $subject->provenance </div></div>":"") . "</span>");*/ |
|
142 |
/* NMI group by classification scheme and in each scheme sort by higher trust level*/ |
|
143 |
//if ($subject->inferred == true) $subjects_inferred[] = ("<span class=\"subject_item".($subject->inferred?" inferred":"")."\">" . $subject->title. "</span>"); |
|
144 |
//} |
|
145 |
if($subjects_inferred!=null||$subjects_clean!=null){ |
|
123 | 146 |
?> |
124 |
<div class="dcinfo"> |
|
125 |
<?php echo(implode(', ', $subjects_clean)); ?> |
|
147 |
<div class="dcinfo"> |
|
148 |
<!--<span class="dchdr"><?php echo(JHTML::tooltip('This is a tooltip attached to text', '', '', JText :: _('SUBJECTS_')) . '</span> ' . implode(', ', $subjects_clean)); ?>--> |
|
149 |
<span class="dchdr"><?php echo (JText :: _('SUBJECTS_') . '</span> ' . implode(', ', $subjects_clean)); ?> |
|
126 | 150 |
</div> |
127 |
<?php } |
|
151 |
|
|
152 |
<!-- Check out this: https://beta.openaire.eu/search/publication?articleId=od________18::719f54c785ecac578e13db2a400a8fb1 |
|
153 |
even though there is no inferred subject it shows the outside borders and header. Same happens in identifiers in some cases --> |
|
154 |
<?php |
|
155 |
} |
|
156 |
if($subjects_inferred!=null){ ?> |
|
157 |
<div class="dcinfo"> |
|
158 |
<div class="inferred_section"> |
|
159 |
<!-- NMI tooltip must be nicer. Do something --> |
|
160 |
<!--<a title="<?php echo(JText :: _('INFERRED_SUBJECTS_TOOLTIP')); ?>" class="inferred-popup"><span class="tooltip-info"><?php echo(JText :: _('INFERRED_SUBJECTS_')); ?></span></a> |
|
161 |
<?php echo(implode(', ', $subjects_inferred)); ?> |
|
162 |
--> |
|
163 |
<?php |
|
164 |
foreach($subjects_inferred as $taxonomy => $taxonomySubjects){ |
|
165 |
?> |
|
166 |
<span class="dchdr"><a><?php echo(JText :: _($taxonomy).":"); ?></a> </span> |
|
167 |
<!-- |
|
168 |
<a title="<?php echo(JText :: _('INFERRED_SUBJECTS_TOOLTIP')); ?>" class="inferred-popup"><span class="tooltip-info"><?php echo(JText :: _($taxonomy).":"); ?></span></a> |
|
169 |
--> |
|
170 |
<?php |
|
171 |
echo(implode(', ', $taxonomySubjects)."<br>"); |
|
172 |
} |
|
173 |
?> |
|
174 |
</div> |
|
175 |
</div> |
|
176 |
|
|
177 |
<?php }} |
|
128 | 178 |
if ($this -> article -> embargoEndDate != NULL) { ?> |
129 | 179 |
<div class="dcinfo"> |
130 |
<?php echo($this -> article -> embargoEndDate); ?>
|
|
180 |
<?php echo(PublicationHelper :: _formatEmbargoEndDate($this -> article -> embargoEndDate)); ?>
|
|
131 | 181 |
</div> |
132 | 182 |
<?php } |
133 |
if ($this -> article -> pids != NULL) { ?> |
|
183 |
if ($this -> article -> pids != NULL) { ?>
|
|
134 | 184 |
<div class="dcinfo"> |
135 |
<?php echo(JText :: _('IDENTIFIERS_') . implode(', ', array_filter(array_map(function ($pid) { |
|
136 |
switch ($pid -> clazz) { |
|
185 |
<!-- TODO add more cases for other article types --> |
|
186 |
<span class="dchdr"><?php echo(JText :: _('IDENTIFIERS_')."</span>" . implode(', ', array_filter(array_map(function ($pid) { |
|
187 |
switch ($pid -> clazz) { |
|
137 | 188 |
case OpenAireViewArticle :: DOI: |
138 | 189 |
return ($pid -> value == NULL) ? '' : ('<a target="_blank" class="icon-external" href="' . OpenAireViewArticle :: DOI_URL . urlencode($pid -> value) . '">' . ((substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . '</a>'); |
139 | 190 |
case OpenAireViewArticle :: PMC: |
... | ... | |
153 | 204 |
<div class="slideshow tabs" data-widgetkit="slideshow" data-options="{"style":"tabs","autoplay":0,"interval":5000,"width":"auto","height":"auto","duration":500,"index":0,"order":"default","navigation":"left","animated":"fade"}"> |
154 | 205 |
<div class="nav-container nav-left clearfix"> |
155 | 206 |
<ul class="tabs" persist="true"> |
156 |
<li class="selected"><a rel="datatab"><?php echo(JText :: _('RELATED_DATA')); ?></a></li> |
|
157 |
<li><a rel="publtab"><?php echo(JText :: _('RELATED_PUBLICATIONS')); ?></a></li> |
|
158 |
<li><a rel="similartab"><?php echo(JText :: _('SIMILAR_PUBLICATIONS')); ?></a></li> |
|
207 |
<li class="selected"><a rel="citationsTab">Citations</a></li> |
|
208 |
<li ><a rel="datatab"><?php echo(JText :: _('RELATED_DATA')); ?></a></li> |
|
209 |
<!-- Related publications title tab --> |
|
210 |
<!--<li><a rel="publtab"><?php echo(JText :: _('RELATED_PUBLICATIONS')); ?></a></li> --> |
|
211 |
<li><a rel="similartab"><?php echo(JText :: _('SIMILAR_PUBLICATIONS')); ?></a></li> |
|
159 | 212 |
<li><a rel="statstab"><?php echo(JText :: _('METRICS')); ?></a></li> |
160 | 213 |
</ul> |
161 | 214 |
</div> |
162 | 215 |
<div class="tabcontents"> |
216 |
<div id="citationsTab" class="tabcontent"> |
|
217 |
<?php if (($this -> article -> citations == NULL)) { ?> |
|
218 |
<!--//TODO add this to .ini |
|
219 |
<div class="box-info"><?php echo(JText :: _('NO_CITATIONS_STAY_TUNED_')); ?></div>--> |
|
220 |
<div class="box-info">No citation.</div> |
|
221 |
<?php } else { ?> |
|
222 |
<!--//TODO add this to .ini |
|
223 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('CITATIONS_TECHNOLOGY')); ?></blockquote> |
|
224 |
--> |
|
225 |
<blockquote class="blockquote-nopad">CITATIONS_TECHNOLOGY</blockquote> |
|
226 |
|
|
227 |
<div class="searchResults"> |
|
228 |
|
|
229 |
<?php |
|
230 |
/* Remove the usort if citations are sorted from db*/ |
|
231 |
usort($this -> article -> citations , function ($citation1, $citation2) {return explode("]",explode("[",$citation1 -> title)[1])[0] - explode("]",explode("[",$citation2 -> title)[1])[0] ;}); |
|
232 |
foreach (array_slice($this -> article -> citations, 0, OpenAireViewArticle :: MAX_RELATED) as $citation) { |
|
233 |
echo(PublicationHelper :: formatCitationLinks($citation)); |
|
234 |
} |
|
235 |
if (count($this -> article -> citations) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
236 |
<div class="pageController"> |
|
237 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($this -> article -> citations)); ?></a> |
|
238 |
</div> |
|
239 |
<div class="more"> |
|
240 |
<?php foreach (array_slice($this -> article -> citations, OpenAireViewArticle :: MAX_RELATED) as $citation) { |
|
241 |
echo(PublicationHelper :: formatCitationLinks($citation)); |
|
242 |
} ?> |
|
243 |
</div> |
|
244 |
<?php } ?> |
|
245 |
</div> |
|
246 |
|
|
247 |
<?php } ?> |
|
248 |
</div> |
|
163 | 249 |
<div id="datatab" class="tabcontent"> |
250 |
<!-- NMI should this be in input submit? to avoid bots --> |
|
251 |
<div style="text-align: right;"> |
|
252 |
<a class="button-default button-primary-add openClaimBox" href="<?php $url = JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=claiminline2&tmpl=modal&activePublicationId=' . $this -> article -> id); echo $url;?>"><?php echo(JText :: _('LINK_TO_DATA')); ?></a> |
|
253 |
</div> |
|
254 |
|
|
255 |
<!-- NMI this has 3 sections: harvested, claimed, inferred, so enclose each in a respective div: section_harvested, section_claimed, section_inferred |
|
256 |
In each section a dataset can be either an internal one (i.e., in OpenAIRE index as an entity) or external (link in publication DC). These should be |
|
257 |
surrounded by <span class="internal-dataset> or <span class="external-dataset" which may be in the helper> |
|
258 |
For the inferred content we should have the capability of sorting by trust level descending, or showing a meter bar: include title of publisation |
|
259 |
in <span class="show_trust" width=X%> where X is the trust level --> |
|
260 |
|
|
164 | 261 |
<?php if (($this -> article -> relatedDatasets == NULL) && ($this -> article -> externalDatasets == NULL)) { ?> |
165 | 262 |
<div class="box-info"><?php echo(JText :: _('NO_RELATED_DATA_STAY_TUNED_')); ?></div> |
166 |
<?php } else { ?> |
|
263 |
<?php } else { |
|
264 |
$inferredRelatedDatasets=array(); |
|
265 |
$harvestedRelatedDatasets=array(); |
|
266 |
$claimedRelatedDatasets=array(); |
|
267 |
$otherRelatedDatasets=array(); |
|
268 |
foreach ($this -> article -> relatedDatasets as $relatedDataset ){ |
|
269 |
if($relatedDataset->provenance!=null){ |
|
270 |
if(strpos($relatedDataset->provenance,'iis')!==false){ |
|
271 |
$inferredRelatedDatasets[]=$relatedDataset; |
|
272 |
}else if(strpos($relatedDataset->provenance,'sysimport')!==false){ |
|
273 |
$harvestedRelatedDatasets[]=$relatedDataset; |
|
274 |
}else if(strpos($relatedDataset->provenance,'user')!==false){ |
|
275 |
$claimedRelatedDatasets[]=$relatedDataset; |
|
276 |
|
|
277 |
}else{ |
|
278 |
$otherRelatedDatasets[]=$relatedDataset; |
|
279 |
} |
|
280 |
} |
|
281 |
} |
|
282 |
$externalInferredDatasets=array(); |
|
283 |
$externalHarvestedDatasets=array(); |
|
284 |
$externalClaimedDatasets=array(); |
|
285 |
$externalOtherDatasets=array(); |
|
286 |
foreach ($this -> article -> externalDatasets as $externalDataset ){ |
|
287 |
if($externalDataset->provenance!=null){ |
|
288 |
if(strpos($externalDataset->provenance,'iis')!==false){ |
|
289 |
$externalInferredDatasets[]=$externalDataset; |
|
290 |
}else if(strpos($relatedDataset->provenance,'sysimport')!==false){ |
|
291 |
$externalHarvestedDatasets[]=$externalDataset; |
|
292 |
}else if(strpos($relatedDataset->provenance,'user')!==false){ |
|
293 |
$externalClaimedDatasets[]=$externalDataset; |
|
294 |
|
|
295 |
}else{ |
|
296 |
$externalOtherDatasets[]=$externalDataset; |
|
297 |
} |
|
298 |
} |
|
299 |
} |
|
300 |
if($harvestedRelatedDatasets!=null||$externalHarvestedDatasets!=null){?> |
|
301 |
<div class="section_harvested"> |
|
302 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('RELATED_DATA_TECHNOLOGY')); ?></blockquote> |
|
303 |
<?php if($harvestedRelatedDatasets!=null){ |
|
304 |
usort($harvestedRelatedDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
305 |
?> |
|
306 |
|
|
307 |
<span class="internal-dataset"> |
|
308 |
<div class="searchResults"> |
|
309 |
<?php foreach (array_slice($harvestedRelatedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
310 |
/* NMI this is a sample, width must be a parameter. This code could be in the datahelper php file. DO the same in the similar documents */ |
|
311 |
|
|
312 |
echo("<div title=\" ".($relatedDataset -> trust*100)."% \" style=\"float:right\" class=\"uk-progress\"><div class=\"uk-progress-bar\" style=\"width: ".($relatedDataset -> trust*100)."%;\"> </div></div>"); |
|
313 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
314 |
} |
|
315 |
if (count($harvestedRelatedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
316 |
<div class="pageController"> |
|
317 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($harvestedRelatedDatasets)); ?></a> |
|
318 |
</div> |
|
319 |
<div class="more"> |
|
320 |
<?php foreach (array_slice($harvestedRelatedDatasets, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
321 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
322 |
} ?> |
|
323 |
</div> |
|
324 |
<?php } ?> |
|
325 |
|
|
326 |
</div> |
|
327 |
</span> |
|
328 |
<?php } ?> |
|
329 |
|
|
330 |
<?php |
|
331 |
if($externalHarvestedDatasets!=null){ |
|
332 |
usort($externalHarvestedDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
333 |
?> |
|
334 |
|
|
335 |
<span class="external-dataset"> |
|
336 |
<div class="searchResults"> |
|
337 |
<?php foreach (array_slice($externalHarvestedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
338 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
339 |
} |
|
340 |
if (count($externalHarvestedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
341 |
<div class="pageController"> |
|
342 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($externalHarvestedDatasets)); ?></a> |
|
343 |
</div> |
|
344 |
<div class="more"> |
|
345 |
<?php foreach (array_slice($externalHarvestedDatasets, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
346 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
347 |
} ?> |
|
348 |
</div> |
|
349 |
<?php } ?> |
|
350 |
</div> |
|
351 |
</span> |
|
352 |
<?php } ?> |
|
353 |
|
|
354 |
</div> |
|
355 |
<?php } |
|
356 |
if($claimedRelatedDatasets!=null||$externalClaimedDatasets!=null){?> |
|
357 |
?> |
|
358 |
<div class="section_claimed"> |
|
359 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('RELATED_DATA_TECHNOLOGY')); ?></blockquote> |
|
360 |
<?php if($claimedRelatedDatasets!=null){ |
|
361 |
usort($claimedRelatedDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
362 |
?> |
|
363 |
|
|
364 |
<span class="internal-dataset"> |
|
365 |
<div class="searchResults"> |
|
366 |
<?php foreach (array_slice($claimedRelatedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
367 |
echo("<div title=\" ".($relatedDataset -> trust*100)."% \" style=\"float:right\" class=\"uk-progress\"><div class=\"uk-progress-bar\" style=\"width: ".($relatedDataset -> trust*100)."%;\"> </div></div>"); |
|
368 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
369 |
} |
|
370 |
if (count($claimedRelatedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
371 |
<div class="pageController"> |
|
372 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($claimedRelatedDatasets)); ?></a> |
|
373 |
</div> |
|
374 |
<div class="more"> |
|
375 |
<?php foreach (array_slice($claimedRelatedDatasets, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
376 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
377 |
} ?> |
|
378 |
</div> |
|
379 |
<?php } ?> |
|
380 |
|
|
381 |
</div> |
|
382 |
</span> |
|
383 |
<?php } ?> |
|
384 |
|
|
385 |
<?php |
|
386 |
if($externalClaimedDatasets!=null){ |
|
387 |
usort($externalClaimedDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
388 |
?> |
|
389 |
|
|
390 |
<span class="external-dataset"> |
|
391 |
<div class="searchResults"> |
|
392 |
<?php foreach (array_slice($externalClaimedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
393 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
394 |
} |
|
395 |
if (count($externalClaimedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
396 |
<div class="pageController"> |
|
397 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($externalClaimedDatasets)); ?></a> |
|
398 |
</div> |
|
399 |
<div class="more"> |
|
400 |
<?php foreach (array_slice($externalClaimedDatasets, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
401 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
402 |
} ?> |
|
403 |
</div> |
|
404 |
<?php } ?> |
|
405 |
</div> |
|
406 |
</span> |
|
407 |
<?php } ?> |
|
408 |
|
|
409 |
</div> |
|
410 |
<?php |
|
411 |
} |
|
412 |
if($inferredRelatedDatasets!=null||$externalInferredDatasets!=null){?> |
|
413 |
|
|
414 |
<div class="section_inferred"> |
|
415 |
|
|
416 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('RELATED_DATA_TECHNOLOGY')); ?></blockquote> |
|
417 |
<?php if($inferredRelatedDatasets!=null){ |
|
418 |
usort($inferredRelatedDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
419 |
?> |
|
420 |
|
|
421 |
<span class="internal-dataset"> |
|
422 |
<div class="searchResults"> |
|
423 |
<?php foreach (array_slice($inferredRelatedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
424 |
echo("<div title=\" ".($relatedDataset -> trust*100)."% \" style=\"float:right\" class=\"uk-progress\"><div class=\"uk-progress-bar\" style=\"width: ".($relatedDataset -> trust*100)."%;\"> </div></div>"); |
|
425 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
426 |
} |
|
427 |
if (count($inferredRelatedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
428 |
<div class="pageController"> |
|
429 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($inferredRelatedDatasets)); ?></a> |
|
430 |
</div> |
|
431 |
<div class="more"> |
|
432 |
<?php foreach (array_slice($inferredRelatedDatasets, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
433 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
434 |
} ?> |
|
435 |
</div> |
|
436 |
<?php } ?> |
|
437 |
</div> |
|
438 |
</span> |
|
439 |
<?php } ?> |
|
440 |
|
|
441 |
<?php |
|
442 |
if($externalInferredDatasets!=null){ |
|
443 |
usort($externalInferredDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
444 |
?> |
|
445 |
|
|
446 |
<span class="external-dataset"> |
|
447 |
<div class="searchResults"> |
|
448 |
<?php foreach (array_slice($externalInferredDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
449 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
450 |
} |
|
451 |
if (count($externalInferredDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
452 |
<div class="pageController"> |
|
453 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($externalInferredDatasets)); ?></a> |
|
454 |
</div> |
|
455 |
<div class="more"> |
|
456 |
<?php foreach (array_slice($externalInferredDatasets, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
457 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
458 |
} ?> |
|
459 |
</div> |
|
460 |
<?php } ?> |
|
461 |
</div> |
|
462 |
</span> |
|
463 |
<?php } ?> |
|
464 |
|
|
465 |
</div> |
|
466 |
<?php } |
|
467 |
|
|
468 |
if($otherRelatedDatasets!=null||$externalOtherDatasets!=null){?> |
|
469 |
?> |
|
470 |
<div class="section_other"> |
|
471 |
|
|
472 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('RELATED_DATA_TECHNOLOGY')); ?></blockquote> |
|
473 |
<?php if($otherRelatedDatasets!=null){ |
|
474 |
usort($otherRelatedDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
475 |
?> |
|
476 |
|
|
477 |
<span class="internal-dataset"> |
|
478 |
<div class="searchResults"> |
|
479 |
<?php foreach (array_slice($otherRelatedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
480 |
echo("<div title=\" ".($relatedDataset -> trust*100)."% \" style=\"float:right\" class=\"uk-progress\"><div class=\"uk-progress-bar\" style=\"width: ".($relatedDataset -> trust*100)."%;\"> </div></div>"); |
|
481 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
482 |
} |
|
483 |
if (count($otherRelatedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
484 |
<div class="pageController"> |
|
485 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($otherRelatedDatasets)); ?></a> |
|
486 |
</div> |
|
487 |
<div class="more"> |
|
488 |
<?php foreach (array_slice($otherRelatedDatasets, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
|
489 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
490 |
} ?> |
|
491 |
</div> |
|
492 |
<?php } ?> |
|
493 |
</div> |
|
494 |
</span> |
|
495 |
<?php } ?> |
|
496 |
|
|
497 |
<?php |
|
498 |
if($externalOtherDatasets!=null){ |
|
499 |
usort($externalOtherDatasets, function ($a, $b) {if ($a->trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
500 |
?> |
|
501 |
|
|
502 |
<span class="external-dataset"> |
|
503 |
<div class="searchResults"> |
|
504 |
<?php foreach (array_slice($externalOtherDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
505 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
506 |
} |
|
507 |
if (count($externalOtherDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
|
508 |
<div class="pageController"> |
|
509 |
<a class="viewall"><?php JText :: printf('VIEW_ALL_N', count($externalOtherDatasets)); ?></a> |
|
510 |
</div> |
|
511 |
<div class="more"> |
|
512 |
<?php foreach (array_slice($externalOtherDatasets, OpenAireViewArticle :: MAX_RELATED) as $externalDataset) { |
|
513 |
echo(DatasetHelper :: formatDataset($externalDataset, $this -> itemId)); |
|
514 |
} ?> |
|
515 |
</div> |
|
516 |
<?php } ?> |
|
517 |
</div> |
|
518 |
</span> |
|
519 |
<?php } ?> |
|
520 |
|
|
521 |
</div> |
|
522 |
<?php } ?> |
|
523 |
|
|
524 |
<!-- <div class="section_inferred"> |
|
525 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('RELATED_DATA_TECHNOLOGY')); ?></blockquote> |
|
526 |
|
|
167 | 527 |
<div class="searchResults"> |
168 | 528 |
<?php foreach (array_slice($this -> article -> relatedDatasets, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedDataset) { |
169 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
529 |
/* NMI this is a sample, width must be a parameter. This code could be in the datahelper php file. DO the same in the similar documents */ |
|
530 |
|
|
531 |
echo("<div title=\" ".($relatedDataset -> trust*100)."% \" style=\"float:right\" class=\"uk-progress\"><div class=\"uk-progress-bar\" style=\"width: ".($relatedDataset -> trust*100)."%;\"> </div></div>"); |
|
532 |
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); |
|
170 | 533 |
} |
171 | 534 |
if (count($this -> article -> relatedDatasets) > OpenAireViewArticle :: MAX_RELATED) { ?> |
172 | 535 |
<div class="pageController"> |
... | ... | |
194 | 557 |
</div> |
195 | 558 |
<?php } ?> |
196 | 559 |
</div> |
560 |
</div> |
|
561 |
--> |
|
562 |
|
|
197 | 563 |
<?php } ?> |
198 | 564 |
</div> |
199 |
<div id="publtab" class="tabcontent"> |
|
565 |
<!-- Related Publications content tab --> |
|
566 |
<!-- <div id="publtab" class="tabcontent"> |
|
200 | 567 |
<?php if (($this -> article -> relatedPublications == NULL) && ($this -> article -> externalPublications == NULL)) { ?> |
201 | 568 |
<div class="box-info"><?php echo(JText :: _('NO_RELATED_PUBLICATIONS_STAY_TUNED_')); ?></div> |
202 | 569 |
<?php } else { ?> |
... | ... | |
232 | 599 |
</div> |
233 | 600 |
<?php } ?> |
234 | 601 |
</div> |
602 |
--> |
|
235 | 603 |
<div id="similartab" class="tabcontent"> |
236 | 604 |
<?php if (($this -> article -> similarPublications == NULL)) { ?> |
237 | 605 |
<div class="box-info"><?php echo(JText :: _('NO_SIMILAR_PUBLICATIONS_STAY_TUNED_')); ?></div> |
238 | 606 |
<?php } else { ?> |
607 |
<blockquote class="blockquote-nopad"><?php echo(JText :: _('SIMILAR_PUBLICATIONS_TECHNOLOGY')); ?></blockquote> |
|
608 |
|
|
239 | 609 |
<div class="searchResults"> |
240 |
<?php foreach (array_slice($this -> article -> similarPublications, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedPublication) { |
|
610 |
<?php |
|
611 |
usort($this -> article -> similarPublications, function ($a, $b) {if ($a->trust == $b->trust) { |
|
612 |
if($a->year==null||$b->year==null||$a->year==$b->year){return 0;}return $a->year < $b->year;}return ($a->trust > $b->trust) ? -1 : 1;}); |
|
613 |
foreach (array_slice($this -> article -> similarPublications, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedPublication) { |
|
614 |
echo(PublicationHelper :: formatTrustMeter($relatedPublication)); |
|
241 | 615 |
echo(PublicationHelper :: formatPublication($relatedPublication, $this -> itemId)); |
242 | 616 |
} |
243 | 617 |
if (count($this -> article -> similarPublications) > OpenAireViewArticle :: MAX_RELATED) { ?> |
... | ... | |
246 | 620 |
</div> |
247 | 621 |
<div class="more"> |
248 | 622 |
<?php foreach (array_slice($this -> article -> similarPublications, OpenAireViewArticle :: MAX_RELATED) as $relatedPublication) { |
623 |
echo(PublicationHelper :: formatTrustMeter($relatedPublication)); |
|
249 | 624 |
echo(PublicationHelper :: formatPublication($relatedPublication, $this -> itemId)); |
250 | 625 |
} ?> |
251 | 626 |
</div> |
... | ... | |
281 | 656 |
<a href="https://plus.google.com/share?url=<?php echo(urlencode(JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=article&articleId=' . $this -> articleId))); ?>" target="_blank" rel="nofollow" title="<?php echo(JText :: _('SHARE_ON_GOOGLE_')); ?>" class="social-button social-google" onclick="return track('sharePublicationGoogle');"></a> |
282 | 657 |
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo(urlencode(JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=article&articleId=' . $this -> articleId))); ?>&title=<?php echo(urlencode($this -> article -> title)); ?>&source=<?php echo(urlencode(JText :: _('OPENAIRE'))); ?>&summary=<?php echo(urlencode(($this -> article -> description == NULL) ? '-' : $this -> article -> description)); ?>" target="_blank" rel="nofollow" title="<?php echo(JText :: _('SHARE_ON_LINKEDIN')); ?>" class="social-button social-linkedin" onclick="return track('sharePublicationLinkedIn');"></a> |
283 | 658 |
</div> |
284 |
<div class="functionsSection"> |
|
285 |
<h3 class="title"><?php echo(JText :: _('CLAIM')); ?></h3> |
|
286 |
<a href="<?php $url = JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=claiminline&tmpl=modal&activePublicationId=' . $this -> article -> id); echo $url;?>" class="openClaimBox">open claim window</a><br /> |
|
287 |
<a href="<?php $url = JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=claiminline2&tmpl=modal&activePublicationId=' . $this -> article -> id); echo $url;?>" class="openClaimBox">open claim window</a> |
|
288 |
</div> |
|
289 | 659 |
<?php if (array_filter(array_map(function ($datasource) {return ($datasource -> name != NULL) && ($datasource -> name != OpenAireViewArticle :: OTHER_RESOURCES) && ($datasource -> name != OpenAireViewArticle :: UNKNOWN_REPOSITORY);}, $this -> article -> datasources)) != NULL) { ?> |
290 | 660 |
<div class="functionsSection"> |
291 | 661 |
<h3 class="title"><?php echo(JText :: _('DOWNLOAD_FROM')); ?></h3> |
... | ... | |
357 | 727 |
</ul> |
358 | 728 |
</div> |
359 | 729 |
<?php } ?> |
360 |
<div class="functionsSection"> |
|
361 |
<h3 class="title"><?php echo(JText :: _('FUNDED_BY_PROJECTS')); ?></h3> |
|
362 |
<?php if ($this -> article -> projects == NULL) { ?> |
|
363 |
<div class="box-info"><?php echo(JText :: _('NO_PROJECTS_FOUND')); ?></div> |
|
364 |
<?php } else { ?> |
|
730 |
<?php if ($this -> article -> projects != NULL) { ?> |
|
731 |
<div class="functionsSection"> |
|
732 |
<h3 class="title"><?php echo(JText :: _('FUNDED_BY_PROJECTS')); ?></h3> |
|
365 | 733 |
<ul class="line"> |
366 | 734 |
<?php foreach($this -> article -> projects as $project) { |
367 | 735 |
if (($project != NULL) && (($project -> acronym != NULL) || ($project -> title != NULL))) { ?> |
368 | 736 |
<li><span><?php echo((($project -> id == NULL) ? '' : ('<a href="' . JRoute :: _('index.php?option=com_openaire&view=project&Itemid=' . $this -> itemId . '&projectId=' . $project -> id) . '">')) . ($project -> funding->funding_level_0 != NULL?$project -> funding->funding_level_0 . ": ":"") . (($project -> acronym == NULL) ? $project -> title : $project -> acronym) . (($project -> code == NULL) ? '' : (' (' . $project -> code . ')')) . (($project -> id == NULL) ? '' : ('</a>'))); ?></span> |
369 | 737 |
<span onmouseover="tooltip.ajax(this, 'index.php?option=com_openaire&view=projectfundings&format=raw&Itemid=<?php echo JRequest :: getUInt('Itemid', 0)?>&publicationId=<?php echo $this -> article -> id?>&project=<?php echo $project->id?>');"><img src="templates/yoo_solar/styles/openaire/images/box_info<?php echo ($project -> inferred)?"_ok":""?>.png" /></span> |
370 | 738 |
</li> |
371 |
<?php } |
|
372 |
} ?>
|
|
739 |
<?php }?>
|
|
740 |
<?php }?>
|
|
373 | 741 |
</ul> |
374 |
<?php } ?> |
|
375 |
</div> |
|
742 |
</div> |
|
743 |
<?php } ?> |
|
744 |
|
|
376 | 745 |
<?php if (count($this->article->contexts)){?> |
377 |
<div class="functionsSection">
|
|
378 |
<?php foreach($this -> article -> contexts as $context) {
|
|
379 |
if ($context->type != "community") continue; |
|
380 |
?>
|
|
381 |
<h3 class="title"><?php echo(JText :: _('COMMUNITY')); ?>: <?php echo $context->name ;?></h3>
|
|
746 |
<div class="functionsSection section_context">
|
|
747 |
<?php foreach($this -> article -> contexts as $context) {
|
|
748 |
if ($context->type != "community") continue;
|
|
749 |
?>
|
|
750 |
<h3 class="title"><?php echo(JText :: _('LINKED_TO')); ?> </h3>
|
|
382 | 751 |
<ul class="line"> |
383 | 752 |
<?php foreach($context -> categories as $category) { |
384 | 753 |
foreach ($category->concepts as $concept) {?> |
385 |
<li><?php echo $category -> name; ?>: <?php echo $concept -> name; ?></li> |
|
754 |
<!-- NMI: can we put a link for search contenct around the context name? --> |
|
755 |
<li><span class="context_name"><?php echo $context->name ;?></span><?php echo $category -> name; ?>: <?php echo $concept -> name; ?></li> |
|
386 | 756 |
<?php } ?> |
387 | 757 |
<?php } ?> |
388 | 758 |
</ul> |
... | ... | |
421 | 791 |
<?php } ?> |
422 | 792 |
</div><!--flowWrapper--> |
423 | 793 |
</div> |
424 |
|
modules/uoa-joomla/trunk/joomla-2.5.3/yoo_solar-1.0.1/styles/openaire/layouts/modal.php | ||
---|---|---|
6 | 6 |
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL |
7 | 7 |
*/ |
8 | 8 |
|
9 |
// no direct access |
|
10 |
defined('_JEXEC') or die('Restricted access'); |
|
9 |
// get template configuration |
|
10 |
include($this['path']->path('layouts:template.config.php')); |
|
11 |
|
|
12 |
?> |
|
13 |
<!DOCTYPE HTML> |
|
14 |
<html lang="<?php echo $this['config']->get('language'); ?>" dir="<?php echo $this['config']->get('direction'); ?>"> |
|
11 | 15 |
|
12 |
// include config |
|
13 |
include_once(dirname(__FILE__).'/config.php'); |
|
16 |
<head> |
|
17 |
<?php echo $this['template']->render('head'); ?> |
|
18 |
</head> |
|
14 | 19 |
|
15 |
// get warp |
|
16 |
$warp = Warp::getInstance(); |
|
20 |
<body id="page" class="page <?php echo $this['config']->get('body_classes'); ?>" data-config='<?php echo $this['config']->get('body_config','{}'); ?>'> |
|
17 | 21 |
|
18 |
// load main template file, located in /layouts/template.php |
|
19 |
echo $warp['template']->render('modal'); |
|
22 |
<?php if ($this['modules']->count('absolute')) : ?> |
|
23 |
<div id="absolute"> |
|
24 |
<?php echo $this['modules']->render('absolute'); ?> |
|
25 |
</div> |
|
26 |
<?php endif; ?> |
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
<?php if ($this['modules']->count('top-b + innertop + innerbottom + sidebar-a + sidebar-b') || $this['config']->get('system_output')) : ?> |
|
31 |
<div id="block-main"> |
|
32 |
<div class="wrapper <?php if($this['config']->get('block-main')) echo 'max-width'.$this['config']->get('block-main'); ?>"> |
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
<?php if ($this['modules']->count('innertop + innerbottom + sidebar-a + sidebar-b') || $this['config']->get('system_output')) : ?> |
|
37 |
<div id="main" class="grid-block"> |
|
38 |
|
|
39 |
<div id="maininner" class="grid-box"> |
|
40 |
|
|
41 |
|
|
42 |
<?php if ($this['config']->get('system_output')) : ?> |
|
43 |
<section id="content" class="grid-block"><?php echo $this['template']->render('content'); ?></section> |
|
44 |
<?php endif; ?> |
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
</div> |
|
49 |
|
|
50 |
|
|
51 |
</div> |
|
52 |
<?php endif; ?> |
|
53 |
|
|
54 |
</div> |
|
55 |
</div> |
|
56 |
<?php endif; ?> |
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
</body> |
|
64 |
</html> |
Also available in: Unified diff
changes after merging with yannis files, changes in article view:subjects in trust order - citations - related data splitted in sections - similar publications in trust order