Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
WEB
Correzione bug ricerche correlate

Update presentazione e documentazione
  • Loading branch information
gentadaniele authored and gentadaniele committed Jun 17, 2016
1 parent cbbe102 commit 44c6656
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Binary file modified ArtReader-Presentazione.pptx
Binary file not shown.
Binary file not shown.
Binary file added MOCKUP.pptx
Binary file not shown.
Binary file modified WEB/ArtReader-Web/Database/myDatabase.db
Binary file not shown.
6 changes: 3 additions & 3 deletions WEB/ArtReader-Web/public/js/jscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ $('#uploadForm').submit(function() {
selVal = $( "#lstSuggerimenti option:selected" ).text();
//aux: title - author - artMovement
var aux = selVal.split(" - ");
$("#txtSearch").val(aux[0]);
$("#txtSearch").val(aux[1]);
$(".riga").hide();
refreshTable(aux[0]);
refreshTable(aux[1]);
$("#searchTips").show();
similarArtworks(aux[1], aux[0], aux[2]);
similarArtworks(aux[2], aux[1], aux[3], aux[0]);
});

//******************************SIMILAR SEARCH FIELD (max tips: 3)*********************
Expand Down
4 changes: 2 additions & 2 deletions WEB/ArtReader-Web/public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,13 @@ function searchLocations(partial)
}


function similarArtworks(auth, tit, artM)
function similarArtworks(auth, tit, artM, id)
{
similarRequest = new XMLHttpRequest();
var author = auth;
var title = tit;
var artMovement = artM;
var url="/similarArtworks?title="+encodeURIComponent(title)+"&author="+encodeURIComponent(author)+"&artMovement="+encodeURIComponent(artMovement);
var url="/similarArtworks?id="+encodeURIComponent(id)+"&title="+encodeURIComponent(title)+"&author="+encodeURIComponent(author)+"&artMovement="+encodeURIComponent(artMovement);

similarRequest.open("GET", url, true);
similarRequest.onreadystatechange = similarArtworksUpdate;
Expand Down
2 changes: 1 addition & 1 deletion WEB/ArtReader-Web/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ app.get("/completion", function(req, res,next) {
db.each(sql,function(err,row)
{
var parola = {};
parola.voce = row.Title + " - " + row.Name + " - " + row.ArtMovement + " - "+row.Year;
parola.voce = row.Id +" - "+row.Title + " - " + row.Name + " - " + row.ArtMovement + " - "+row.Year;
vectTrovate.push(parola);
},function(err,nRighe)
{
Expand Down

0 comments on commit 44c6656

Please sign in to comment.