Target facet
[pazpar2-moved-to-github.git] / www / demo / search.js
index b7754e0..517f597 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: search.js,v 1.34 2007-01-17 02:15:12 quinn Exp $
+/* $Id: search.js,v 1.36 2007-01-17 14:21:29 quinn Exp $
  * ---------------------------------------------------
  * Javascript container
  */
@@ -516,6 +516,8 @@ function refine_query (obj) {
        query_cell.value += ' and su=(' + term + ')';
     else if (cur_termlist == 'author')
        query_cell.value += ' and au=(' + term + ')';
+    else if (cur_termlist == 'date')
+       query_cell.value += ' and date=' + term;
 
     start_search();
 }
@@ -577,7 +579,8 @@ function check_termlist()
     var url = "search.pz2?" +
         "command=termlist" +
        "&session=" + session +
-       "&name=" + facet_name;
+       "&name=" + facet_name +
+       "&num=12";
     xtermlist = GetXmlHttpObject();
     xtermlist.onreadystatechange=show_termlist;
     xtermlist.open("GET", url);