Skip to content
Snippets Groups Projects
Commit 1d320535 authored by Alexandre MEYER's avatar Alexandre MEYER
Browse files

publications

parent 7af01072
No related branches found
No related tags found
No related merge requests found
Pipeline #176628 failed
Showing
with 23 additions and 6 deletions
...@@ -9,7 +9,7 @@ def ensure_url_scheme(url): ...@@ -9,7 +9,7 @@ def ensure_url_scheme(url):
def get_publications_from_hal(author_id): def get_publications_from_hal(author_id):
# URL pour l'API de HAL # URL pour l'API de HAL
url = f"https://api.archives-ouvertes.fr/search/?q=authIdHal_s:{author_id}&wt=json&fl=title_s,authFullName_s,producedDateY_i,uri_s,conferenceTitle_s,journalTitle_s,doi_s" url = f"https://api.archives-ouvertes.fr/search/?q=authIdHal_s:{author_id}&wt=json&fl=title_s,authFullName_s,producedDateY_i,uri_s,conferenceTitle_s,journalTitle_s,doiId_s,docType_s"
# Envoyer une requête GET à l'API de HAL # Envoyer une requête GET à l'API de HAL
response = requests.get(url) response = requests.get(url)
...@@ -82,7 +82,8 @@ def create_html(publications): ...@@ -82,7 +82,8 @@ def create_html(publications):
uri = pub.get('uri_s', '') uri = pub.get('uri_s', '')
conference = pub.get('conferenceTitle_s', '') conference = pub.get('conferenceTitle_s', '')
journal = pub.get('journalTitle_s', '') journal = pub.get('journalTitle_s', '')
doi = pub.get('doi_s', '') doi = pub.get('doiId_s', '')
doc_type = pub.get('docType_s', '')
# Télécharger l'image de la publication si disponible # Télécharger l'image de la publication si disponible
image_path = '' image_path = ''
...@@ -93,7 +94,7 @@ def create_html(publications): ...@@ -93,7 +94,7 @@ def create_html(publications):
image_url = img_tag['src'] image_url = img_tag['src']
# Remplacer les caractères spéciaux et les espaces dans le titre # Remplacer les caractères spéciaux et les espaces dans le titre
safe_title = title.replace(' ', '_').replace('/', '_').replace('\\', '_').replace(':', '_').replace('*', '_').replace('?', '_').replace('"', '_').replace('<', '_').replace('>', '_').replace('|', '_') safe_title = title.replace(' ', '_').replace('/', '_').replace('\\', '_').replace(':', '_').replace('*', '_').replace('?', '_').replace('"', '_').replace('<', '_').replace('>', '_').replace('|', '_')
image_path = f"images/{safe_title}.jpg" image_path = f"web/content/research/images/{safe_title}.jpg"
download_image(image_url, image_path) download_image(image_url, image_path)
# Ajouter une section pour chaque année # Ajouter une section pour chaque année
...@@ -107,6 +108,16 @@ def create_html(publications): ...@@ -107,6 +108,16 @@ def create_html(publications):
reference_parts = [title] reference_parts = [title]
if authors: if authors:
reference_parts.append(authors) reference_parts.append(authors)
if doc_type == 'HDR':
reference_parts.append("HDR, Université")
if doc_type == 'Rapport de recherche':
reference_parts.append("Rapport de recherche")
if doc_type == 'Logiciel':
reference_parts.append("Code informatique")
if conference or journal: if conference or journal:
reference_parts.append(f"{conference}, {journal}, {year}") reference_parts.append(f"{conference}, {journal}, {year}")
...@@ -118,8 +129,7 @@ def create_html(publications): ...@@ -118,8 +129,7 @@ def create_html(publications):
<p><strong>{title}</strong></p> <p><strong>{title}</strong></p>
<p>{authors}</p> <p>{authors}</p>
<p>{conference or journal}, {year}</p> <p>{conference or journal}, {year}</p>
<p><a href="{uri}">Lien vers HAL</a></p> <p><a href="{uri}">Lien vers HAL</a> {f'<a href="https://doi.org/{doi}">, Lien DOI</a>' if doi else ''}</p>
{f'<p><a href="{doi}">Lien DOI</a></p>' if doi else ''}
</li> </li>
""" """
...@@ -129,7 +139,7 @@ def create_html(publications): ...@@ -129,7 +139,7 @@ def create_html(publications):
</html> </html>
""" """
with open('publications.html', 'w', encoding='utf-8') as f: with open('web/content/research/publications.html', 'w', encoding='utf-8') as f:
f.write(html_content) f.write(html_content)
# Exemple d'utilisation # Exemple d'utilisation
......
...@@ -14,6 +14,7 @@ My research is at the interface between computer graphics and computer vision, w ...@@ -14,6 +14,7 @@ My research is at the interface between computer graphics and computer vision, w
## List of publications ## List of publications
List of publications List of publications
* [At the end of this page](list_pub)
* [LIRIS](https://liris.cnrs.fr/membres?idn=ameyer&set_language=fr) * [LIRIS](https://liris.cnrs.fr/membres?idn=ameyer&set_language=fr)
* [GoogleScholar](https://scholar.google.com/citations?user=hfS9EakAAAAJ&hl=fr) * [GoogleScholar](https://scholar.google.com/citations?user=hfS9EakAAAAJ&hl=fr)
* [DBLP](https://dblp.org/pid/37/1744.html) * [DBLP](https://dblp.org/pid/37/1744.html)
...@@ -59,3 +60,9 @@ Committe member: ...@@ -59,3 +60,9 @@ Committe member:
* CASA 2023 * CASA 2023
* Web3D 2024 * Web3D 2024
* ... * ...
## Publications list
{{< include-html "publications.html" >}}
\ No newline at end of file
web/content/research/images/Automatic_Affect_Analysis__From_Children_to_Adults.jpg

43 B

web/content/research/images/Feature_points_based_facial_animation_retargeting.jpg

43 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment