Kaynağa Gözat

Added titles on buttons

Alessia 1 yıl önce
ebeveyn
işleme
2d21688092
6 değiştirilmiş dosya ile 25 ekleme ve 25 silme
  1. 6 6
      js/lettera.js
  2. 3 3
      js/map.js
  3. 9 9
      js/object.js
  4. 4 4
      js/people.js
  5. 2 2
      lettera.html
  6. 1 1
      object.html

+ 6 - 6
js/lettera.js

@@ -58,11 +58,11 @@ function updatePage(){
 
 			var uri = pageInfo.query1.subject.value;
 
-			var Buttons = '<button class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
+			var Buttons = '<button title="Apri risorsa originale" class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
 			<i class="fas fa-external-link-alt" aria-hidden="true"></i></button> \
-			<button type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
-			<button type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
-			<a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
+			<button title="Citazione" type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
+			<button title="Permalink" type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
+			<a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button title="Naviga il grafo" type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
 
 			document.getElementById("link_buttons").innerHTML = Buttons;
 		}
@@ -146,8 +146,8 @@ function createButton(buttonClass, text, onClickFunction){
 
 function createButtonEVT(sigla){
 	htmlCode = '\
-		<button type="button" class="btn btn-secondary" onclick="loadPageEVT(\'<SIGLA>\')">\
-		Button EVT</button>\
+		<button title="Edition Visualization Technology" type="button" class="btn btn-secondary" onclick="loadPageEVT(\'<SIGLA>\')">\
+		Apri EVT</button>\
 		'.replace("<SIGLA>", sigla);
 	return htmlCode;
 }

+ 3 - 3
js/map.js

@@ -324,9 +324,9 @@ function handle_data(json) {
           note = "Nessuna informazione trovata";
         }
 
-        var Buttons = '<button type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
-        <button type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
-        <a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
+        var Buttons = '<button title="Citazione" type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
+        <button title="Permalink" type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
+        <a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button title="Naviga il grafo" type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
 
 
         document.getElementById("grafo").innerHTML = graph;

+ 9 - 9
js/object.js

@@ -342,23 +342,23 @@ function handle_objectData(json) {
         }
 
         if (identifier != "") {
-          button_ext = '<a href= "' + uri + '">' + identifier + '</a>';
+          button_ext = '<a title="Apri risorsa originale" href= "' + uri + '">' + identifier + '</a>';
         }
 
         if (uri_composed != "") {
-          button_doc = '<button id="' + uri_composed + '" class="object btn btn-default" type="button" title="Bene culturale" > \
+          button_doc = '<button title="Apri risorsa di livello superiore" id="' + uri_composed + '" class="object btn btn-default" type="button" title="Bene culturale" > \
           <i class="fa fa-book" aria-hidden="true">	<p class="btn-text">Bene culturale</p></i></button>';
         }
 
         if (owner != "") {
-          button_owner = '<a href= "' + uri_owner + '">' + current_owner + '</a>';
+          button_owner = '<a title="Vai al sito dell\'Istituto" href= "' + uri_owner + '">' + current_owner + '</a>';
         }
 
-        var Buttons = '<button class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
+        var Buttons = '<button title="Apri risorsa originale" class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
         <i class="fas fa-external-link-alt" aria-hidden="true"></i></button> \
-        <button type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
-        <button type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
-        <a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
+        <button title="Citazione" type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
+        <button title="Permalink" type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
+        <a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button type="button" title="Naviga il grafo" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
 
 
         document.getElementById("grafo").innerHTML = dataset;
@@ -713,7 +713,7 @@ function handle_citedPeople(json) {
     document.getElementById("cited_people").innerHTML = Person;
   
     if (people.length==0) {
-      var messaggio = "<p class='no-results'>Nessun risultato trovato</p>";
+      var messaggio = "<p class='no-results'>Questa ricerca non ha prodotto risultati</p>";
       document.getElementById("cited_people").innerHTML = messaggio;
     }
 
@@ -755,7 +755,7 @@ function handle_luoghiDocumento(json) {
   document.getElementById("section_places").innerHTML = Luoghi;
 
   if (places.length==0) {
-    var messaggio = "<p class='no-results'>Nessun risultato trovato</p>";
+    var messaggio = "<p class='no-results'>Questa ricerca non ha prodotto risultati</p>";
     document.getElementById("section_places").innerHTML = messaggio;
   }
   

+ 4 - 4
js/people.js

@@ -638,11 +638,11 @@ function handle_data(json) {
 
         //console.log(variants);
 
-        var Buttons = '<button class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
+        var Buttons = '<button title="Apri risorsa originale" class="btn btn-default" type="button" onclick="schedaASPO(\'' + uri + '\')"> \
         <i class="fas fa-external-link-alt" aria-hidden="true"></i></button> \
-        <button type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
-        <button type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
-        <a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
+        <button title="Citazione" type="button" value="object" id="' + uri + '" class="cit btn btn-default" alt="scheda" title="Citazione"><i class="fa fa-quote-right"></i></button> \
+        <button title="Permalink" type="button" value="object" id="' + uri + '" class="hyp btn btn-default" alt="scheda" title="Hyperlink"><i class="fa fa-link"></i></button> \
+        <a href="http://dev.restore.ovi.cnr.it/lodlive/?' + uri + '" target="_blank"><button type="button" title="Naviga il grafo" class="btn btn-default info" alt="LOD" title="LodLive"><i class="fa fa-share-alt"></i></button></a></div></div>';
 
 
         var id_snippet = "<div class='col-sm-4'><span class='label'>" + id_type + ":</span></div><div class='col' id='identificatore'>" + identifier + "</div>";

+ 2 - 2
lettera.html

@@ -267,7 +267,7 @@
 									<div class="row align-items-center justify-content-end" id="row_evt">
 										<div id="evt_button" class="col-auto"></div>
 										<div class="col-auto">
-											<button type="button" class="btn btn-secondary" onclick="loadPageLOD()">Button LOD</button>
+											<button title="Naviga il grafo" type="button" class="btn btn-secondary" onclick="loadPageLOD()">Apri LodLive</button>
 										</div>
 									</div>
 
@@ -298,7 +298,7 @@
 														<tr>
 															<th class="col-4">Lemma</th>
 															<th class="col-2">Tipo</th>
-															<th class="col-2">PoS</th>
+															<th class="col-2">Categoria grammaticale</th>
 															<th class="col-2">Iperlemma</th>
 															<th class="col-2">Esplora</th>
 														</tr>

+ 1 - 1
object.html

@@ -223,7 +223,7 @@
 
 										<div class="row mb-2" id="argomento" style="display:none;">
 											<div class="col-sm-4">
-												<span class="label">Note sul contenuto:</span>
+												<span class="label">Entità citate nel testo:</span>
 											</div>
 											<div class="col" id="subject"></div>
 										</div>