diff --git a/server/index.html b/server/index.html index 09c377b..df7eb64 100644 --- a/server/index.html +++ b/server/index.html @@ -13,7 +13,12 @@ function display_results(data) { var items = []; $('#debug').html(data['qtime']); $.each(data['results'], function(key, val) { - items.push('
  • ' + Math.min(5, parseInt(val['score']*5)) + ' ' + val['id'] + '
  • '); + if (val['id'].indexOf('N-') == 0) { + url = 'pdfs-N/' + val['id']; + } else { + url = 'pdfs/' + val['id']; + } + items.push('
  • ' + Math.min(5, parseInt(val['score']*5)) + ' ' + val['id'] + '
  • '); }); $('#results').html($('