Inborn Errors Working Party of the Society for European Blood and Marrow Transplantation and the European Society for Immune Deficiencies on behalf of the
Identyfikatory
BPP ID
30931Wyszukaj publikacje autora
Znajdź publikacje powiązane z autorem Inborn Errors Working Party of the Society for European Blood and Marrow Transplantation and the European Society for Immune Deficiencies on behalf of the
Kod do osadzenia publikacji na stronie WWW ▶
Kliknij aby rozwinąć i skopiować kod JavaScript do wyświetlania Twoich publikacji na własnej stronie
Instrukcja: Skopiuj poniższy kod i wklej go w miejscu na swojej stronie WWW, gdzie chcesz wyświetlić listę swoich najnowszych publikacji z systemu BPP.
<!-- BPP - Lista publikacji autora Inborn Errors Working Party of the Society for European Blood and Marrow Transplantation and the European Society for Immune Deficiencies on behalf of the -->
<!-- Ten kod automatycznie pobiera i wyświetla 25 najnowszych publikacji z systemu BPP -->
<div id="bpp-publikacje" style="font-family: Arial, sans-serif;">
<div style="text-align: center; padding: 20px; color: #666;">
Ładowanie publikacji...
</div>
</div>
<script>
(function() {
// Konfiguracja - te wartości są już ustawione dla Twojego profilu
const BPP_SERVER = 'https://bpp.umlub.pl'; // Adres serwera BPP
const AUTOR_ID = 30931; // Twój identyfikator w systemie BPP
// Funkcja pobierająca i wyświetlająca publikacje
async function zaladujPublikacjeBPP() {
const container = document.getElementById('bpp-publikacje');
try {
// Pobierz dane z API BPP
const response = await fetch(`${BPP_SERVER}/api/v1/recent_author_publications/${AUTOR_ID}/`);
if (!response.ok) {
throw new Error('Nie udało się pobrać danych');
}
const data = await response.json();
// Wyczyść kontener
container.innerHTML = '';
// Sprawdź czy są publikacje
if (data.publications && data.publications.length > 0) {
// Utwórz nagłówek
const header = document.createElement('h3');
header.textContent = 'Publikacje';
header.style.cssText = 'color: #2c3e50; margin-bottom: 20px; font-size: 1.5rem;';
container.appendChild(header);
// Utwórz listę publikacji
const list = document.createElement('ol');
list.style.cssText = 'padding-left: 20px; line-height: 1.8;';
data.publications.forEach(pub => {
const item = document.createElement('li');
item.style.cssText = 'margin-bottom: 15px; color: #333;';
// Opis bibliograficzny
const opis = document.createElement('span');
opis.innerHTML = pub.opis_bibliograficzny;
item.appendChild(opis);
// Link do szczegółów
const link = document.createElement('a');
link.href = pub.url;
link.target = '_blank';
link.textContent = ' [szczegóły]';
link.style.cssText = 'color: #3498db; text-decoration: none; font-size: 0.9em;';
link.onmouseover = function() { this.style.textDecoration = 'underline'; };
link.onmouseout = function() { this.style.textDecoration = 'none'; };
item.appendChild(link);
list.appendChild(item);
});
container.appendChild(list);
// Dodaj stopkę z informacją
const footer = document.createElement('p');
footer.style.cssText = 'margin-top: 20px; padding-top: 15px; border-top: 1px solid #e9ecef; color: #7f8c8d; font-size: 0.85em; font-style: italic;';
footer.innerHTML = `Wyświetlono ${data.count} ostatnich publikacji. ` +
`<a href="${BPP_SERVER}/bpp/autor/on-behalf-of-the-Inborn-Errors-Working-Party-of-the-Society-for-European-Blood-and-Marrow-Transplantation-and-the-European-Society-for-Immune-Deficiencies/" target="_blank" style="color: #3498db;">` +
`Zobacz pełny profil w systemie BPP →</a>`;
container.appendChild(footer);
} else {
container.innerHTML = '<p style="color: #7f8c8d;">Brak publikacji do wyświetlenia.</p>';
}
} catch (error) {
// Obsługa błędów
console.error('Błąd BPP:', error);
container.innerHTML = `
<div style="padding: 20px; background: #fee; border: 1px solid #fcc; border-radius: 4px; color: #c00;">
Nie udało się załadować listy publikacji.
<a href="${BPP_SERVER}/bpp/autor/on-behalf-of-the-Inborn-Errors-Working-Party-of-the-Society-for-European-Blood-and-Marrow-Transplantation-and-the-European-Society-for-Immune-Deficiencies/" target="_blank" style="color: #3498db;">
Zobacz publikacje w systemie BPP
</a>
</div>
`;
}
}
// Uruchom po załadowaniu strony
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', zaladujPublikacjeBPP);
} else {
zaladujPublikacjeBPP();
}
})();
</script>💡 Podpowiedź: Ten kod jest w pełni samodzielny i będzie działał na każdej stronie HTML. Automatycznie pobiera najnowsze publikacje z systemu BPP i wyświetla je w czytelnej formie.