New
[pazpar2-moved-to-github.git] / www / demo / page_segments.phpi
index e4a8e4a..2e818ee 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/* $Id: page_segments.phpi,v 1.1 2007-01-04 14:11:55 sondberg Exp $
+/* $Id: page_segments.phpi,v 1.11 2007-01-15 19:01:29 quinn Exp $
  * ---------------------------------------------------
  * Page segments 
  */
@@ -15,12 +15,13 @@ function insert_header () {
     <link rel="author" href="http://www.indexdata.dk" />
     <link href="css/styles.css" rel="stylesheet" type="text/css"
           media="screen, all" />
+    <script type="text/javascript" src="search.js"></script>
   </head>
-  <body>
+  <body onload="initialize();">
     <div class="container">
       <div class="topbar">
         <a href=".">
-          <img id="logo" src="gfx/logo.gif" width="155" height="36"
+          <img id="logo" src="gfx/logo2.png" width="155" height="36"
                alt="Keystone Retriever" />
         </a>
         <div class="topmenu">
@@ -31,42 +32,52 @@ function insert_header () {
       <div class="search">  
         <span>ENTER SEARCH TERM:</span>
         <div>
-            <input type="text" class="search" tabindex="1" maxlength="255"
-                   value="" />
+          <form name="search" onsubmit="start_search(); return false;">
+            <input id="query" type="text" class="search" tabindex="1"
+                  maxlength="255" value="" />
             <input type="submit" class="button" value="Search" />
+            <input type="hidden" name="startrec" id="startrec"/>
+            <input type="hidden" name="action_type" id="action_type"
+                   value="search"/>
+          </form>
+         <p>
+          <class class="sort" id="sortselect"></class>
         </div>
       </div>
       <div class="main">
-        <div class="leftbar">
+        <div class="leftbar" id="termlists">
           <b>Limit search results</b><br />
           Narrow your search by using the keywords below:<br />
           <br />
-          <a href="#" class="unselected">Subject</a>
-          <a href="#">Subject 1</a>
-          <a href="#">Subject 2</a>
-          <a href="#"> Subject 3</a>
+          <a id="facet_subject" class="unselected"
+             onclick="toggle_facet(this)">Subject</a>
+          <span id="facet_subject_terms" class="facet"
+               style="display: block;"></span>
+          
           <br />
-          <a href="#" class="selected">Author</a>
-          <br />
-          <a href="#" class="selected">Institution</a>
-          <br />
-          <a href="#" class="unselected">Date</a>
-          <a href="#">Date 1</a>
-          <a href="#">Date 2</a>
-          <a href="#">Date 3</a>
+
+          <a id="facet_author" class="unselected"
+             onclick="toggle_facet(this)">Author</a>
+          <span id="facet_author_terms" class="facet"
+               style="display: block;"></span>
+          
         </div>
-        <div class="content">
+        <div class="content" id="body">
 END_OF_HEADER;
 }
 
 
 function insert_footer () {
-echo <<<END_OF_FOOTER
+    global $show_status;
+    
+    echo '</div>
+          <div style="display: ', ($show_status == 1 ? 'block' : 'none'),
+          ';">Status: <span id="status">Initializing</span>
+          <span id="stat"></span>
+          </div>
+          <div class="clear"></div>
         </div>
-        <div class="clear"></div>
       </div>
-    </div>
-  </body>
-</html>
-END_OF_FOOTER;
+    </body>
+  </html>';
 }