From 03b79ed91fe4e9833af649d198ea610c40d882d2 Mon Sep 17 00:00:00 2001 From: Luca Trupiano Date: Thu, 21 Dec 2023 12:48:32 +0100 Subject: [PATCH] Fissato bug   , modificata grafica badge risultati --- css/custom2_4.3.css | 6 +++++- js/cesareBrowse.js | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/css/custom2_4.3.css b/css/custom2_4.3.css index 64733d5..2cff08f 100644 --- a/css/custom2_4.3.css +++ b/css/custom2_4.3.css @@ -75,7 +75,7 @@ html, body { border-bottom-style: double !important; } -.badge-outline-info { +.badge-outline-info, .badge-outline-warning { padding: .1rem .15rem; margin-left: .15rem; margin-right: .2rem; @@ -343,6 +343,10 @@ li::marker { color: #734450; border-color: #734450; } +.badge-outline-warning { + color: #325a7d; + border-color: #325a7d; +} .navig-canto:hover, .citazioneFrase:hover { color: #734450 !important; } diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 5f58f10..b43aa81 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -16,7 +16,7 @@ $(document).ready(function() { lsid=''; removeGraph=false; - const cantobadgeclass = 'badge badge-outline-info badge-pill' + const cantobadgeclass = 'badge badge-outline-warning badge-pill' const sparqlGenerator = sparqljs.Generator; const myEngine = new Comunica.QueryEngine(); @@ -775,12 +775,14 @@ function resetFrasi(){ } } + function removeHtmlTags(value){ var text = value; if (text != null){ text = text.replace(/<(.|\n)*?>/g, ''); text = text.replace("«",""); text = text.replace("»",""); + text = text.replace(/\ /g, ' '); text = text.replace(/[\r\n]+/gm, ' '); return text; } @@ -974,7 +976,7 @@ function resetFrasi(){ else { nomeAutore = comments.NomeAutoreCitazione; } - if (comments.AutoreCitazione != null) { + if (comments.AutoreCitazione != null) { rigaNota.append('Autore della fonte: ' + nomeAutore + ' '); } else { rigaNota.append('Autore della fonte: ' + nomeAutore + '');