projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We have a working version.
[pazpar2-moved-to-github.git]
/
www
/
demo
/
page_segments.phpi
diff --git
a/www/demo/page_segments.phpi
b/www/demo/page_segments.phpi
index
e4a8e4a
..
2b3da07
100644
(file)
--- a/
www/demo/page_segments.phpi
+++ b/
www/demo/page_segments.phpi
@@
-1,6
+1,6
@@
<?php
<?php
-/* $Id: page_segments.phpi,v 1.1 2007-01-04 14:11:55 sondberg Exp $
+/* $Id: page_segments.phpi,v 1.4 2007-01-05 10:05:19 sondberg Exp $
* ---------------------------------------------------
* Page segments
*/
* ---------------------------------------------------
* Page segments
*/
@@
-15,8
+15,9
@@
function insert_header () {
<link rel="author" href="http://www.indexdata.dk" />
<link href="css/styles.css" rel="stylesheet" type="text/css"
media="screen, all" />
<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>
</head>
- <body>
+ <body onload="initialize();">
<div class="container">
<div class="topbar">
<a href=".">
<div class="container">
<div class="topbar">
<a href=".">
@@
-31,42
+32,50
@@
function insert_header () {
<div class="search">
<span>ENTER SEARCH TERM:</span>
<div>
<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="submit" class="button" value="Search" />
+ <input type="hidden" name="startrec" id="startrec"/>
+ <input type="hidden" name="action_type" id="action_type"
+ value="search"/>
+ </form>
</div>
</div>
<div class="main">
</div>
</div>
<div class="main">
- <div class="leftbar">
+ <div class="leftbar" id="termlist">
<b>Limit search results</b><br />
Narrow your search by using the keywords below:<br />
<br />
<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_title" href="#" class="selected">Subject</a>
+ <div id="facet_subject_terms"></div>
<br />
<br />
- <a href="#" class="selected">Author</a>
+ <a id="facet_author_title" href="#" class="selected">Author</a>
+ <div id="facet_author_terms"></div>
<br />
<br />
- <a href="#" class="selected">Institution</a>
+ <a id="facet_institution_title" href="#"
+ class="selected">Institution</a>
+ <div id="facet_institution_terms"></div>
<br />
<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_date_title" href="#" class="selected">Date</a>
+ <div id="facet_date_terms"></div>
</div>
</div>
- <div class="content">
+ <div class="content" id="body">
END_OF_HEADER;
}
function insert_footer () {
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>
- <div class="clear"></div>
</div>
</div>
- </div>
- </body>
-</html>
-END_OF_FOOTER;
+ </body>
+ </html>';
}
}