-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublications.html
100 lines (85 loc) · 3.18 KB
/
publications.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Publications | Dr. Haradhan Adhikary</title>
<link rel="stylesheet" href="style.css" />
<script src="script.js" defer></script>
</head>
<body>
<!-- Navbar will load dynamically -->
<div class="container" style="padding: 50px 0;">
<h1>Latest Publications</h1>
<div id="publications">
Loading publications...
</div>
</div>
<section>
<h2>Publications during PhD</h2>
<div class="container">
<ul>
<li>
<strong
>Search for a critical point of strongly interacting
matter</strong
>
<br />Published in Eur.Phys.J.C 84 (2024) -
<a href="https://arxiv.org/abs/2401.03445" target="_blank"
>Read Paper</a
>
</li>
<li>
<strong>Proton intermittency in NA61/SHINE experiments</strong>
<br />Under review -
<a href="https://cernbox.cern.ch/s/Y0DgqBxpvrNascb" target="_blank"
>Collaboration Results</a
>
</li>
</ul>
</div>
</section>
<footer>
<div class="container">
<p>© 2024 Dr. Haradhan Adhikary. All rights reserved.</p>
</div>
</footer>
<script>
async function fetchPublications() {
const apiUrl = 'https://inspirehep.net/literature?sort=mostrecent&size=25&page=1&q=author%20H%20Adhikary';
const publicationsContainer = document.getElementById('publications');
try {
const response = await fetch(apiUrl);
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
// Check if data has results
if (data.hits.total > 0) {
const publications = data.hits.hits;
// Build HTML content
let publicationsHTML = '<ul>';
publications.forEach(pub => {
const title = pub.metadata.title[0] || "Untitled Publication";
const link = pub.links.doi || '#';
publicationsHTML += `
<li>
<a href="${link}" target="_blank">${title}</a>
</li>
`;
});
publicationsHTML += '</ul>';
publicationsContainer.innerHTML = publicationsHTML;
} else {
publicationsContainer.innerHTML = "No publications found.";
}
} catch (error) {
console.error('Failed to load publications:', error);
publicationsContainer.innerHTML = "Failed to load publications. Please try again later.";
}
}
// Fetch publications on page load
fetchPublications();
</script>
</body>
</html>