Browse Source

Changed the kays that it fetches the email and tecnicas with 'Email' and 'Tecnica' instead of 'E-mail' and 'Tecnica 1' so that its the same as the ones used int he json

carlos.diaz44 3 years ago
parent
commit
84f9c6e09c

BIN
platforms/android/app/src/main/assets/www/.index.html.swp View File


BIN
platforms/android/app/src/main/assets/www/img/BARRO.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/CRISTAL.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/CUERO.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/FIBRAS.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/INSTRUMENTOS TÍPICOS.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/JUGUETES TRADICIONALES.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/LABORES EN AGUJA.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/METAL.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/MÁSCARAS.jpg View File


BIN
platforms/android/app/src/main/assets/www/img/TABACOS.jpg View File


+ 12
- 87
platforms/android/app/src/main/assets/www/index.html View File

253
                             if (Artesano.Especificacion.trim().length != 0) {
253
                             if (Artesano.Especificacion.trim().length != 0) {
254
                                 cont ++;
254
                                 cont ++;
255
                             }
255
                             }
256
-
256
+                            
257
+                            Artesano.Nombre = Artesano.Nombre + " " + Artesano["Apellido Paterno"] + " " + Artesano["Apellido Materno"];
257
 
258
 
258
                             //info a pasar
259
                             //info a pasar
259
                             //'title':'${Artesano.Nombre}','esp': '${info}'
260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
260
                             //Tries to pass all the info of each artesano into a new page, the page that display this information is 'artesano.html', not to be confused with 'artesanias.html' or 'artesanos.html'(current page)
261
                             //Tries to pass all the info of each artesano into a new page, the page that display this information is 'artesano.html', not to be confused with 'artesanias.html' or 'artesanos.html'(current page)
261
                             //And puts this into the 'item' variable
262
                             //And puts this into the 'item' variable
262
-<<<<<<< HEAD
263
-                            var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}' } })" tappable>
264
-=======
265
-                            var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["E-mail"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica 1"]}' } })" tappable>
266
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
263
+                            var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica"]}' } })" tappable>
267
                         <div class="title">${Artesano.Nombre}</div>
264
                         <div class="title">${Artesano.Nombre}</div>
268
                     </ons-list-item>`);
265
                     </ons-list-item>`);
269
 
266
 
370
                              for(var i=0; i<results.length; i++) {
367
                              for(var i=0; i<results.length; i++) {
371
 
368
 
372
                                  //if(Esp[num] in artesanos_json.) {}
369
                                  //if(Esp[num] in artesanos_json.) {}
373
-                                 Artesanos+=`${results[i].Nombre}|`
374
-<<<<<<< HEAD
375
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}&&`
376
-=======
377
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["Tecnica 1"]}&&`
378
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
370
+                                 //results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
371
+                                 ANombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
372
+                                 Artesanos+=`${ANombre}|`
373
+                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}|${results[i]["Tecnica"]}&&`
379
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
374
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
380
                              }
375
                              }
381
 
376
 
555
                     //This is basically declaring what we refer to as informacion in the filter() function
550
                     //This is basically declaring what we refer to as informacion in the filter() function
556
                     //It iterates though each artists in the all_artesanos json file from before, it displays their name in the "Buscar" page, and it gets prepared so that when its clicked it redirects to the "artesano.html" page with the other aditional information that we have other than the name.
551
                     //It iterates though each artists in the all_artesanos json file from before, it displays their name in the "Buscar" page, and it gets prepared so that when its clicked it redirects to the "artesano.html" page with the other aditional information that we have other than the name.
557
                     for (i = 0; i < all_artesanos.length;i++){
552
                     for (i = 0; i < all_artesanos.length;i++){
553
+                        all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
558
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
554
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
559
-<<<<<<< HEAD
560
-                        onclick="SNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["Email"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}' } })" tappable>
561
-=======
562
-                        onclick="SNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["E-mail"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}', tecnicas: '${all_artesanos[i]["Tecnica 1"]}' } })" tappable>
563
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
555
+                        onclick="SNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["Email"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}', tecnicas: '${all_artesanos[i]["Tecnica"]}' } })" tappable>
564
                         <div>${all_artesanos[i].Nombre}</div>
556
                         <div>${all_artesanos[i].Nombre}</div>
565
                     </ons-list-item>`);
557
                     </ons-list-item>`);
566
                         document.getElementById('results').appendChild(artesano);
558
                         document.getElementById('results').appendChild(artesano);
598
                             tecnicas = this.data.tecnicas;
590
                             tecnicas = this.data.tecnicas;
599
 
591
 
600
                         //here the email is the string made from the start to where the '#' is.
592
                         //here the email is the string made from the start to where the '#' is.
601
-                        email = em.slice(0, em.search("#"));
593
+                        
602
 
594
 
603
                         //Here it's dividing all the especificaciones and writing them into the page (data) and then goes to the next line
595
                         //Here it's dividing all the especificaciones and writing them into the page (data) and then goes to the next line
604
                         //if it has many especificaciones then it will replace all the ';' in it with ',' and writes it into the page
596
                         //if it has many especificaciones then it will replace all the ';' in it with ',' and writes it into the page
630
 
622
 
631
                         //Here it's writing their email, in blue color and its used as a link to send one when it's clicked, then it goes to the next line
623
                         //Here it's writing their email, in blue color and its used as a link to send one when it's clicked, then it goes to the next line
632
                         //Whenever the variable is empty or if it has "NO TIENE" then it doesnt write anything
624
                         //Whenever the variable is empty or if it has "NO TIENE" then it doesnt write anything
633
-                        if(email.trim() != "" & email.toUpperCase().trim() != "NO TIENE"){
634
-                            data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+email+'"><u>'+email+'</u></a><br>';
625
+                        if(em.trim() != "" & em.toUpperCase().trim() != "NO TIENE"){
626
+                            data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+em+'"><u>'+em+'</u></a><br>';
635
                         }
627
                         }
636
 
628
 
637
                         //Here it's writing their phone number into the page,its in blue and whenever its clicked the app will redirect the user to call them, then it goes to the next line
629
                         //Here it's writing their phone number into the page,its in blue and whenever its clicked the app will redirect the user to call them, then it goes to the next line
741
                     <script type="text/javascript" src="calendar_files/js/events.js"></script>
733
                     <script type="text/javascript" src="calendar_files/js/events.js"></script>
742
                 </div>
734
                 </div>
743
 
735
 
744
-<<<<<<< HEAD
745
-                </ons-card>-->
746
-                <br><br><br>
747
-                <button onclick="redirect()">Pasar a la pagina de eventos</button>
748
-=======
749
                 </ons-card>--
736
                 </ons-card>--
750
                 <br><br><br>-->
737
                 <br><br><br>-->
751
                 <ons-card>
738
                 <ons-card>
761
                     El Instituto de Cultura Puertorriqueña, el Gobierno de Puerto Rico, los Colaboradores de esta aplicación, así como los funcionarios, empleados y contratistas de los anteriores, no se hacen responsables de los mensajes, imágenes, opiniones, servicios, declaraciones, representaciones o cualquier forma de contenido incluido en cualquiera de los enlaces accesibles, vinculados o referidos a través de ArtesaníasICP.
748
                     El Instituto de Cultura Puertorriqueña, el Gobierno de Puerto Rico, los Colaboradores de esta aplicación, así como los funcionarios, empleados y contratistas de los anteriores, no se hacen responsables de los mensajes, imágenes, opiniones, servicios, declaraciones, representaciones o cualquier forma de contenido incluido en cualquiera de los enlaces accesibles, vinculados o referidos a través de ArtesaníasICP.
762
                 </div>
749
                 </div>
763
                 </ons-card>
750
                 </ons-card>
764
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
765
 
751
 
766
               <script>
752
               <script>
767
               function redirect() {
753
               function redirect() {
794
                         <br><br>
780
                         <br><br>
795
                         En esta plataforma agrupamos herramientas que permitirán que tu organización adquiera mayor visibilidad, recursos, conexiones, capacidad para una operación más eficiente y efectiva.
781
                         En esta plataforma agrupamos herramientas que permitirán que tu organización adquiera mayor visibilidad, recursos, conexiones, capacidad para una operación más eficiente y efectiva.
796
                         <br><br>
782
                         <br><br>
797
-<<<<<<< HEAD
798
-                    </body>
799
-                    
800
-
801
-
802
-                    Visita nuestra <a href="https://www.icp.pr.gov/">Página Web</a> o síguenos en nuestras redes sociales: <br> <br> 
803
-                    <a href="https://twitter.com/icppr"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
804
-                    </a> 
805
-                    <a href="https://facebook.com/icppr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
806
-=======
807
-                        Saludos Cordiales,
808
-                                Aziria
809
-                    </div>   
810
-                    <div class = "column"> 
811
-                        <img src="img/sfpr.svg" style="width:150px;height:100px">
812
-                    </div>
813
-                    <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
814
-                    Visita nuesta Página Web o siguenos en nuestras redes sociales<br>
815
-                    <a href="https://twitter.com/SINFINESPR"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
816
-                    </a>
817
-                    <a href="https://www.facebook.com/sinfinespr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
818
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
819
-                    </a>
820
-                    <a href="https://www.linkedin.com/company/sinfinespr/"><img src="img/linkedin.png" alt="Linkedin" style="width:35px;height:35px;border:0;">
821
-                    </a>
822
-                    <a href="https://www.instagram.com/sinfinespr/"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
823
-                    </a>
824
-<<<<<<< HEAD
825
-                    
826
-                    <br><br><br>
827
-                    <button onclick="redirect()">Pasar a la pagina de eventos</button>
828
-
829
-                    <script>
830
-                        function redirect() {
831
-                            location.replace("https://facebook.com/icppr")
832
-                        }
833
-                    </script>
834
-                    
835
-                    <br><br>
836
-                    <style>
837
-                        .column {
838
-                            float: left;
839
-                            width: 50%;
840
-                        }
841
-                        .row {
842
-                            width: 100%;
843
-                        }
844
-                    </style>
845
-                    <h2>SINFINESPR</h2>
846
-                    <div class = "column">
847
-                        SINFINESPR es un programa de Titín Foundation que responde a nuestro interés y compromiso con el fortalecimiento del tercer sector.
848
-                        <br><br>
849
-                        En esta plataforma agrupamos herramientas que permitirán que tu organización adquiera mayor visibilidad, recursos, conexiones, capacidad para una operación más eficiente y efectiva.
850
-                        <br><br>
851
                         Saludos Cordiales,
783
                         Saludos Cordiales,
852
                                 Aziria
784
                                 Aziria
853
                     </div>   
785
                     </div>   
865
                     <a href="https://www.instagram.com/sinfinespr/"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
797
                     <a href="https://www.instagram.com/sinfinespr/"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
866
                     </a>
798
                     </a>
867
                     <br><br>
799
                     <br><br>
868
-                    <h2>Centro de Desarrollo y Consultoria Computacional</h2>
869
-                    El Centro de Desarrollo y Consultoría Computacional está compuesto por profesores y estudiantes del departamento de Ciencia de Cómputos de la Universidad de Puerto Rico Recinto de Río Piedras. Nuestra meta es aportar al desarrollo computacional de la Universidad y de Puerto Rico al proveer servicios al día, de calidad y con precios accesibles, a la misma vez que se le ofrece experiencias prácticas a los estudiantes del departamento de Ciencia de Cómputos.
870
-                    <br><br>
871
-                    Si tiene alguna duda nos puede conactar por:
872
-=======
873
-                    <br><br>
874
                     <h2>Centro de Desarrollo y Consultoría Computacional</h2>
800
                     <h2>Centro de Desarrollo y Consultoría Computacional</h2>
875
                     El Centro de Desarrollo y Consultoría Computacional está compuesto por profesores y estudiantes del departamento de Ciencia de Cómputos de la Universidad de Puerto Rico Recinto de Río Piedras. Nuestra meta es aportar al desarrollo computacional de la Universidad y de Puerto Rico al proveer servicios al día, de calidad y con precios accesibles, a la misma vez que se le ofrece experiencias prácticas a los estudiantes del departamento de Ciencia de Cómputos.
801
                     El Centro de Desarrollo y Consultoría Computacional está compuesto por profesores y estudiantes del departamento de Ciencia de Cómputos de la Universidad de Puerto Rico Recinto de Río Piedras. Nuestra meta es aportar al desarrollo computacional de la Universidad y de Puerto Rico al proveer servicios al día, de calidad y con precios accesibles, a la misma vez que se le ofrece experiencias prácticas a los estudiantes del departamento de Ciencia de Cómputos.
876
                     <br><br>
802
                     <br><br>
879
                     
805
                     
880
                     <br><br>
806
                     <br><br>
881
                     Si tiene alguna duda nos puede contactar por:
807
                     Si tiene alguna duda nos puede contactar por:
882
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
883
                     <br>
808
                     <br>
884
                     Teléfono: 787-764-0000 Ext. 88341, 88349
809
                     Teléfono: 787-764-0000 Ext. 88341, 88349
885
                     <br>
810
                     <br>

+ 0
- 4
platforms/android/app/src/main/assets/www/js/azar.js View File

6
 var page = document.getElementById("home");
6
 var page = document.getElementById("home");
7
 
7
 
8
 var aleatorio = Math.floor(Math.random()*52);
8
 var aleatorio = Math.floor(Math.random()*52);
9
-<<<<<<< HEAD
10
-document.getElementById("image").innerHTML = `<img src="img/${aleatorio}.jpg" width="100%" height="300">`;
11
-=======
12
 document.getElementById("image").innerHTML = `<img src="img/${aleatorio}.jpg" width="100%" height="auto">`;
9
 document.getElementById("image").innerHTML = `<img src="img/${aleatorio}.jpg" width="100%" height="auto">`;
13
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
14
 document.getElementById("Content").innerHTML = "<h4>" + data[aleatorio].titulo + "</h4>" + data[aleatorio].texto; 
10
 document.getElementById("Content").innerHTML = "<h4>" + data[aleatorio].titulo + "</h4>" + data[aleatorio].texto; 
15
 
11
 
16
 page.addEventListener("show", function(event){
12
 page.addEventListener("show", function(event){

+ 2
- 2
platforms/android/app/src/main/assets/www/js/searchfunctions.js View File

123
 
123
 
124
 
124
 
125
 function find_tecnicas(i,input){
125
 function find_tecnicas(i,input){
126
-    var tecnicas = all_artesanos[i]["Tecnica 1"];
126
+    var tecnicas = all_artesanos[i]["Tecnica"];
127
     tecnicas = tecnicas.trim().toLowerCase();
127
     tecnicas = tecnicas.trim().toLowerCase();
128
     tecnicas = acento_replace(tecnicas);
128
     tecnicas = acento_replace(tecnicas);
129
     if(tecnicas.search(input) != -1){
129
     if(tecnicas.search(input) != -1){
170
 //trata de ver si el input es parte del email del artista i
170
 //trata de ver si el input es parte del email del artista i
171
 //Mayuscula and acento proof
171
 //Mayuscula and acento proof
172
 function find_email(i,input){
172
 function find_email(i,input){
173
-    var email = all_artesanos[i]["E-mail"];
173
+    var email = all_artesanos[i]["Email"];
174
     email = email.trim().toLowerCase();
174
     email = email.trim().toLowerCase();
175
     email = acento_replace(email);
175
     email = acento_replace(email);
176
     if(email.search(input) != -1){
176
     if(email.search(input) != -1){

BIN
platforms/android/app/src/main/res/mipmap-xhdpi-v26/ic_launcher_background.png View File


BIN
platforms/browser/www/.index.html.swp View File


BIN
www/.index.html.swp View File


+ 6
- 5
www/index.html View File

260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
261
                             //Tries to pass all the info of each artesano into a new page, the page that display this information is 'artesano.html', not to be confused with 'artesanias.html' or 'artesanos.html'(current page)
261
                             //Tries to pass all the info of each artesano into a new page, the page that display this information is 'artesano.html', not to be confused with 'artesanias.html' or 'artesanos.html'(current page)
262
                             //And puts this into the 'item' variable
262
                             //And puts this into the 'item' variable
263
-                            var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["E-mail"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica 1"]}' } })" tappable>
263
+                            var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica"]}' } })" tappable>
264
                         <div class="title">${Artesano.Nombre}</div>
264
                         <div class="title">${Artesano.Nombre}</div>
265
                     </ons-list-item>`);
265
                     </ons-list-item>`);
266
 
266
 
367
                              for(var i=0; i<results.length; i++) {
367
                              for(var i=0; i<results.length; i++) {
368
 
368
 
369
                                  //if(Esp[num] in artesanos_json.) {}
369
                                  //if(Esp[num] in artesanos_json.) {}
370
-                                 results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
371
-                                 Artesanos+=`${results[i].Nombre}|`
372
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["Tecnica 1"]}&&`
370
+                                 //results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
371
+                                 ANombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
372
+                                 Artesanos+=`${ANombre}|`
373
+                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}|${results[i]["Tecnica"]}&&`
373
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
374
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
374
                              }
375
                              }
375
 
376
 
551
                     for (i = 0; i < all_artesanos.length;i++){
552
                     for (i = 0; i < all_artesanos.length;i++){
552
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
553
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
553
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
554
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
554
-                        onclick="SNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["E-mail"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}', tecnicas: '${all_artesanos[i]["Tecnica 1"]}' } })" tappable>
555
+                        onclick="SNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["Email"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}', tecnicas: '${all_artesanos[i]["Tecnica"]}' } })" tappable>
555
                         <div>${all_artesanos[i].Nombre}</div>
556
                         <div>${all_artesanos[i].Nombre}</div>
556
                     </ons-list-item>`);
557
                     </ons-list-item>`);
557
                         document.getElementById('results').appendChild(artesano);
558
                         document.getElementById('results').appendChild(artesano);

+ 2
- 2
www/js/searchfunctions.js View File

123
 
123
 
124
 
124
 
125
 function find_tecnicas(i,input){
125
 function find_tecnicas(i,input){
126
-    var tecnicas = all_artesanos[i]["Tecnica 1"];
126
+    var tecnicas = all_artesanos[i]["Tecnica"];
127
     tecnicas = tecnicas.trim().toLowerCase();
127
     tecnicas = tecnicas.trim().toLowerCase();
128
     tecnicas = acento_replace(tecnicas);
128
     tecnicas = acento_replace(tecnicas);
129
     if(tecnicas.search(input) != -1){
129
     if(tecnicas.search(input) != -1){
170
 //trata de ver si el input es parte del email del artista i
170
 //trata de ver si el input es parte del email del artista i
171
 //Mayuscula and acento proof
171
 //Mayuscula and acento proof
172
 function find_email(i,input){
172
 function find_email(i,input){
173
-    var email = all_artesanos[i]["E-mail"];
173
+    var email = all_artesanos[i]["Email"];
174
     email = email.trim().toLowerCase();
174
     email = email.trim().toLowerCase();
175
     email = acento_replace(email);
175
     email = acento_replace(email);
176
     if(email.search(input) != -1){
176
     if(email.search(input) != -1){