Increased page size to 20, made showing facets default.
authorSebastian Hammer <quinn@indexdata.com>
Fri, 12 Jan 2007 20:11:51 +0000 (20:11 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Fri, 12 Jan 2007 20:11:51 +0000 (20:11 +0000)
Made this change for the demo, but I think it works better
overall. Feel free to change.

www/demo/page_segments.phpi
www/demo/search.js

index c7b8fec..7be6c98 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/* $Id: page_segments.phpi,v 1.8 2007-01-11 13:03:51 sondberg Exp $
+/* $Id: page_segments.phpi,v 1.9 2007-01-12 20:11:51 quinn Exp $
  * ---------------------------------------------------
  * Page segments 
  */
@@ -47,17 +47,17 @@ function insert_header () {
           <b>Limit search results</b><br />
           Narrow your search by using the keywords below:<br />
           <br />
-          <a id="facet_subject" class="selected"
+          <a id="facet_subject" class="unselected"
              onclick="toggle_facet(this)">Subject</a>
           <span id="facet_subject_terms" class="facet"
-               style="display: none;">None</span>
+               style="display: block;"></span>
           
           <br />
 
-          <a id="facet_author" class="selected"
+          <a id="facet_author" class="unselected"
              onclick="toggle_facet(this)">Author</a>
           <span id="facet_author_terms" class="facet"
-               style="display: none;">None</span>
+               style="display: block;"></span>
           
         </div>
         <div class="content" id="body">
index bce9e79..f6e25a3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: search.js,v 1.21 2007-01-11 13:31:31 sondberg Exp $
+/* $Id: search.js,v 1.22 2007-01-12 20:11:51 quinn Exp $
  * ---------------------------------------------------
  * Javascript container
  */
@@ -20,7 +20,7 @@ var stattimer;
 var session_cells = Array('query', 'startrec', 'action_type');
 var old_session = session_read();
 var url_surveillence;
-var recstoshow = 15;
+var recstoshow = 20;
 var page_window = 5;  // Number of pages prior to and after the current page
 var facet_list;
 var cur_facet = 0;