Date facet
authorSebastian Hammer <quinn@indexdata.com>
Wed, 17 Jan 2007 14:12:03 +0000 (14:12 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Wed, 17 Jan 2007 14:12:03 +0000 (14:12 +0000)
www/demo/page_segments.phpi
www/demo/search.js

index a477ea4..16e993d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/* $Id: page_segments.phpi,v 1.16 2007-01-17 13:48:29 quinn Exp $
+/* $Id: page_segments.phpi,v 1.17 2007-01-17 14:12:03 quinn Exp $
  * ---------------------------------------------------
  * Page segments 
  */
@@ -54,13 +54,21 @@ function insert_header () {
              onclick="toggle_facet(this)">Subject</a>
           <span id="facet_subject_terms" class="facet"
                style="display: block;"></span>
-          
+
           <br />
 
           <a id="facet_author" class="unselected"
              onclick="toggle_facet(this)">Author</a>
           <span id="facet_author_terms" class="facet"
                style="display: block;"></span>
+
+          <br />
+
+         <a id="facet_date" class="selected"
+             onclick="toggle_facet(this)">Date</a>
+          <span id="facet_date_terms" class="facet"
+               style="display: none;"></span>
+           
           
         </div>
         <div class="content" id="body">
index b7754e0..d0a64c2 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.35 2007-01-17 14:12:03 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();
 }