{% include "header_pages.html.twig" %}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css">
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>
<main id="main">
<section id="doctors" class="doctors">
<div class="container">
<div class="section-title">
<h2>Profile {{ profile.prenom }} {{ profile.nom }}</h2>
</div>
<div class="main-body">
<div class="row gutters-sm">
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body">
<div class="d-flex flex-column align-items-center text-center">
{% if (profile.photoProfil == null) %}
<img src="{{ asset("img/default-user-icon-4.jpg") }}" alt="Admin"
class="rounded-circle" width="150">
{% else %}
<img src="{{ asset("admin/uploads/") ~ profile.photoProfil }}" alt="Admin"
class="rounded-circle" width="150">
{% endif %}
<div class="mt-3">
<h4>{{ profile.prenom }} {{ profile.nom }}</h4>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">
<a href="{{ asset('admin/uploads/'~ profile.CvEn ) }}" download="CV_{{ profile.prenom }}_{{ profile.nom }}"><i
class="bi bi-file-text">curriculum vitae</i>
</a> <br>
</h6>
</li>
</div>
</div>
</div>
</div>
<div class="card mt-3">
<ul class="list-group list-group-flush">
{% if profile.webPage != null %}
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">
<a href="{{ profile.webPage starts with 'http' ? profile.webPage : 'https://' ~ profile.webPage }}" class="globe" target="_blank">
<i class="bi bi-globe"></i> Website</a>
</h6>
<span class="text-secondary"></span>
</li>
{% endif %}
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">
<a href="mailto: {{ profile.email }}" target="_blank"><i
class="bi bi-mailbox"></i> Email</a>
</h6>
</li>
{% if profile.linkedin != null %}
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">
<a href="{{ profile.linkedin }}" class="-linkedin" target="_blank"><i
class="bi bi-linkedin"></i> Linkedin</a>
</h6>
<span class="text-secondary">link</span>
</li>
{% endif %}
</ul>
</div>
{% if profile.DBLPLink != null or profile.ScopusID != null %}
<div class="card mt-3">
<ul class="list-group list-group-flush">
{% if profile.DBLPLink != null %}
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">
<a href="{{ profile.DBLPLink }}" target="_blank">DBLP</a>
</h6>
<span class="text-secondary"></span>
</li>
{% endif %}
{% if profile.ScopusID != null %}
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">
<a href="{{ profile.ScopusID }}" target="_blank">SCOPUS</a>
</h6>
</li>
{% endif %}
</ul>
</div>
{% endif %}
</div>
<div class="col-md-8">
<div class="card mb-3">
<div class="card-body">
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">First Name</h6>
</div>
<div class="col-sm-9 text-secondary">
{{ profile.prenom }}
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">Last Name</h6>
</div>
<div class="col-sm-9 text-secondary">
{{ profile.nom }}
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0"> Address</h6>
</div>
<div class="col-sm-9 text-secondary">
{{ profile.adresse }}
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">Zip code</h6>
</div>
<div class="col-sm-9 text-secondary">
3038
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">Biography </h6>
</div>
<div class="col-sm-9 text-secondary">
{{ profile.ShBiography }}
</div>
</div>
{% if profile.ResKeywords != null %}
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0"> Research Interests</h6>
</div>
<div class="col-sm-9 text-secondary">
{{ profile.ResKeywords }}
</div>
</div>
{% endif %}
<!--<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">ResearcherID </h6>
</div>
<div class="col-sm-9 text-secondary">
{{ profile.ResKeywords }}
</div>
</div>-->
</div>
</div>
<div> <span class="badge bg-primary">H-index: {{ h_index }}</span> <span class="badge bg-primary">Total citation: {{total_citations}}</span></div>
<canvas id="citationsChart" height="120"></canvas>
<div class="card">
<h4>📚 Scientific Publications</h4>
{% if publicationsMembre is not empty %}
<table id="publicationsTable" class="display">
<thead>
<tr>
<th>Title & Authors</th>
<th>Conference/Revue</th>
<th>Year</th>
<th>Citations</th>
</tr>
</thead>
<tbody>
{% for pub in publicationsMembre %}
<tr>
<td><a href="{{ pub.link }}"
target="_blank">{{ pub.titre }}</a><br><span>{{ pub.authors }}</span></td>
<td>{{ pub.venue }}</td>
<td>{{ pub.year }}</td>
<td>{{ pub.citations }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="alert alert-info">No publication's.</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
</main><!-- End #main -->
<script>
$(document).ready(function() {
$('#publicationsTable').DataTable({
"pageLength": 10, // nombre de publications par page par défaut
"lengthMenu": [5, 10, 25, 50, 100],
"order": [[ 3, "desc" ]] // tri par année décroissante
});
});
</script>
<script>
const ctx = document.getElementById('citationsChart').getContext('2d');
const citationsChart = new Chart(ctx, {
type: 'bar',
data: {
labels: {{ citationsYears|json_encode|raw }},
datasets: [{
label: 'Citations',
data: {{ citationsCounts|json_encode|raw }},
backgroundColor: 'rgba(54, 162, 235, 0.7)',
borderColor: 'rgba(54, 162, 235, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: { beginAtZero: true }
}
}
});
</script>
{% include "footer.html.twig" %}
<style>
.th-scientific-pub {
background-color: #e2e2e2;
padding: 15px 12px 15px 8px;
white-space: nowrap;
color: #007095;
font-size: 16px;
margin-bottom: 1rem !important;
}
@media (min-width: 768px) {
.col-md-4 {
flex: 0 0 auto;
width: 24.33333333%;
}
}
@media (min-width: 768px) {
.col-md-8 {
flex: 0 0 auto;
width: 75.66666667%;
}
}
</style>