瀏覽代碼

Translate in EN

Alessia 1 年之前
父節點
當前提交
8ea8540410
共有 2 個文件被更改,包括 22 次插入22 次删除
  1. 12 12
      js/advanced_search.js
  2. 10 10
      js/search.js

+ 12 - 12
js/advanced_search.js

@@ -33,10 +33,10 @@ const choiceArray = [
 	];
 
 const typeArray = [
-	["Oggetto", "Object"], 
-	["Lettera", "Letter"],
-	["Opera d'Arte", "OA"],
-	["Persona", "Person"]
+	["Object", "Object"], 
+	["Letter", "Letter"],
+	["Artwork", "OA"],
+	["Person", "Person"]
 	];
 
 const graphArray = [
@@ -219,7 +219,7 @@ function populateOptions(selector, myArray) {
 			<input type="date" id="inputchoiceSelector_'+ numberId +'_b" name="end" value="1900-12-31"> \
 			</select></div></div></div>';*/
 		}
-		else if (inputText == "Data partenza"){
+		else if (inputText == "Departure date"){
 			var inp = '<div style="display:flex;"><div id="box_' + numberId + '_a" class="container_choice"><div class="choice_box">Da <select style="display:none;" id ="choice_selector-' + numberId + '_a" value=' + numberId + '_a" name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
 			<option selected value="0">Data partenza inizio</option> \
 			<input type="date" id="inputchoiceSelector_'+ numberId +'_a" name="start" value="1300-01-01"> \
@@ -229,7 +229,7 @@ function populateOptions(selector, myArray) {
 			<input type="date" id="inputchoiceSelector_'+ numberId +'_b" name="end" value="1900-12-31"> \
 			</select></div></div></div>';
 		}
-		else if (inputText == "Data arrivo"){
+		else if (inputText == "Arrival date"){
 			var inp = '<div style="display:flex;"><div id="box_' + numberId + '_a" class="container_choice"><div class="choice_box">Da <select style="display:none;" id ="choice_selector-' + numberId + '_a" value=' + numberId + '_a" name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
 			<option selected value="0">Data arrivo inizio</option> \
 			<input type="date" id="inputchoiceSelector_'+ numberId +'_a" name="start" value="1300-01-01"> \
@@ -261,7 +261,7 @@ var val = 0;
 function addToList() {
 	val = val+1;
 	var sel = '<div id="box_' + val + '" class="container_choice"><div class="remove"><a onclick="removeElement(\'box_' + val + '\')"><i class="fa fa-trash" aria-hidden="true"></i></a></div><div class="choice_box"><select id ="choice_selector-' + val + '" value=' + val + ' name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
-			  <option selected value="0">Scegli un\'opzione</option> \
+			  <option selected value="0">Choose an option</option> \
 			</select><div id="sect-' + val + '"></div></div></div>';
 	$('#drop-down-content').append(sel);
 	var selector = 'choice_selector-' + val;
@@ -271,7 +271,7 @@ function addToList() {
 function addToListObject() {
 	val = val+100;
 	var sel = '<div id="box_' + val + '" class="container_choice"><div class="remove"><a onclick="removeElement(\'box_' + val + '\')"><i class="fa fa-trash" aria-hidden="true"></i></a></div><div class="choice_box"><select id ="choice_selector-' + val + '" value=' + val + ' name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
-			  <option selected value="0">Scegli un\'opzione</option> \
+			  <option selected value="0">Choose an option</option> \
 			  </select><div id="sect-' + val + '"></div></div></div>';
 	$('#drop-down-content-Object').append(sel);
 	var selector = 'choice_selector-' + val;
@@ -281,7 +281,7 @@ function addToListObject() {
 function addToListOA() {
 	val = val+200;
 	var sel = '<div id="box_' + val + '" class="container_choice"><div class="remove"><a onclick="removeElement(\'box_' + val + '\')"><i class="fa fa-trash" aria-hidden="true"></i></a></div><div class="choice_box"><select id ="choice_selector-' + val + '" value=' + val + ' name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
-			  <option selected value="0">Scegli un\'opzione</option> \
+			  <option selected value="0">Choose an option</option> \
 			  </select><div id="sect-' + val + '"></div></div></div>';
 	$('#drop-down-content-OA').append(sel);
 	var selector = 'choice_selector-' + val;
@@ -291,7 +291,7 @@ function addToListOA() {
 function addToListPerson() {
 	val = val+300;
 	var sel = '<div id="box_' + val + '" class="container_choice"><div class="remove"><a onclick="removeElement(\'box_' + val + '\')"><i class="fa fa-trash" aria-hidden="true"></i></a></div><div class="choice_box"><select id ="choice_selector-' + val + '" value=' + val + ' name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
-			  <option selected value="0">Scegli un\'opzione</option> \
+			  <option selected value="0">Choose an option</option> \
 			  </select><div id="sect-' + val + '"></div></div></div>';
 	$('#drop-down-content-Person').append(sel);
 	var selector = 'choice_selector-' + val;
@@ -301,7 +301,7 @@ function addToListPerson() {
 function addToListLetter() {
 	val = val+400;
 	var sel = '<div id="box_' + val + '" class="container_choice"><div class="remove"><a onclick="removeElement(\'box_' + val + '\')"><i class="fa fa-trash" aria-hidden="true"></i></a></div><div class="choice_box"><select id ="choice_selector-' + val + '" value=' + val + ' name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
-			  <option selected value="0">Scegli un\'opzione</option> \
+			  <option selected value="0">Choose an option</option> \
 			  </select><div id="sect-' + val + '"></div></div></div>';
 	$('#drop-down-content-Letter').append(sel);
 	var selector = 'choice_selector-' + val;
@@ -311,7 +311,7 @@ function addToListLetter() {
 function addToListPlace() {
 	val = val+500;
 	var sel = '<div id="box_' + val + '" class="container_choice"><div class="remove"><a onclick="removeElement(\'box_' + val + '\')"><i class="fa fa-trash" aria-hidden="true"></i></a></div><div class="choice_box"><select id ="choice_selector-' + val + '" value=' + val + ' name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
-			  <option selected value="0">Scegli un\'opzione</option> \
+			  <option selected value="0">Choose an option</option> \
 			  <input type="text" id="inputchoiceSelector_'+ val +'" class="selected_option form-control" placeholder="Enter search terms" aria-label="Enter search terms" aria-describedby="button-addon2"> \
 			</select></div></div>';
 	$('#drop-down-content-Place').append(sel);

+ 10 - 10
js/search.js

@@ -705,21 +705,21 @@ function populateOption() {
 
 	const configureDropDownLists = (graph_selector, graph_selector2) => {
 		const ASPO = [
-			['Tutti Fondi', ''], 
-			['Fondo Datini', 'aspo_datini'],
-			['Fondo Ospedale Misericordia e Dolce', 'aspo_ospedale'],
-			['Fondo Marcovaldi', 'aspo_marcovaldi'],
-			['Fondo Gettatelli', 'aspo_gettatelli']
+			['All fonds', ''], 
+			['Datini Fond', 'aspo_datini'],
+			['Ospedale Misericordia e Dolce Fond', 'aspo_ospedale'],
+			['Marcovaldi Fond', 'aspo_marcovaldi'],
+			['Gettatelli Fond', 'aspo_gettatelli']
 		];
 		const MPP = [
-			['Tutte', ''],
+			['All', ''],
 			['Galleria Martini', 'mpp_martini'],
-			['Opere provenienti dall’Ospedale', 'mpp_ospedale'],
-			['Iconografia Datini', 'mpp_datini']
+			['Artwork from Ospedale', 'mpp_ospedale'],
+			['Datini iconography', 'mpp_datini']
 		];
 		const OVI = [
-			['Tutte le risorse', ''],
-			['Lettere', 'ovi_lettere']
+			['All letters', ''],
+			['Letters', 'ovi_lettere']
 		];
 		graph_selector2.options.length = 0