]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/pages/opac_start.ttk
slowly tweaking things here and there, much work to the record_detail
[working/Evergreen.git] / Open-ILS / src / templates / opac / pages / opac_start.ttk
1
2 [%
3         WRAPPER html/html;
4
5
6                 WRAPPER html/head title='Evergreen';
7                         INCLUDE opac/pages/chunks/css_includes.ttk;
8                         #"<script language='javascript' src='/js/opac/OPACStartPage.js'></script>";
9                 END;
10
11
12                 WRAPPER html/body id='body'  onload='pageInit();';
13
14                         WRAPPER html/center; 
15                                 lines(2);
16                                 img( src='/images/main_logo.jpg');      
17                                 lines(4);
18                                 PROCESS front_search; 
19                         END;
20                         INCLUDE opac/pages/chunks/org_tree.ttk;
21
22                 END; 
23         END; 
24
25         # ---------------------------------------------------------------------------
26         # main search form
27         # ---------------------------------------------------------------------------
28         BLOCK front_search;
29
30                 WRAPPER html/div id='front_search_form';
31
32                         "Now searching ";
33                         lines(2);
34                         span(id='now_searching_cell', class='front_now_searching');
35
36                         lines(3);
37
38                         input( type='hidden', name='target', value='mr_result');
39                         input( type='hidden', name='page', value='0');
40         
41                         input(id='mr_search_query',  name='mr_search_query',  
42                                         type='textarea', size='54');
43                 
44                         space(1);
45                         PROCESS stype_selector;
46
47
48                         lines(2);
49                         input(type='submit', id='mr_search_button', 
50                                         value="Search", onclick='alert("help");' );
51
52
53                         space(3);
54                         PROCESS location_input;
55
56                         space(3);
57                         PROCESS search_range;
58
59                         lines(3);
60                         anchor( id='adv_search_link',  href='?target=advanced_search', text = "Advanced Search" );
61
62                 END;
63         END;
64
65
66         # ---------------------------------------------------------------------------
67         # search type
68         # ---------------------------------------------------------------------------
69         BLOCK stype_selector;
70                 WRAPPER html/select name='mr_search_type' id='mr_search_type';
71                         option(value='title',   selected='selected', content="Title");
72                         option(value='author',  content='Author');
73                         option(value='subject', content='Subject');
74                         option(value='keyword', content='Keyword');
75                         option(value='series', content='Series');
76                 END;
77         END;
78
79
80         # ---------------------------------------------------------------------------
81         # location button
82         # ---------------------------------------------------------------------------
83         BLOCK location_input;
84                 input( type='submit', name='tree_button', value="Location", id='location_select_button'); 
85         END;
86
87
88         # ---------------------------------------------------------------------------
89         # search range
90         # ---------------------------------------------------------------------------
91         BLOCK search_range;
92                 WRAPPER html/span;
93                         "Expand search to ";
94                         space(2);
95                         WRAPPER html/select 
96                                 name='search_range_select' 
97                                 id='search_range_select'
98                                 onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
99                         END;
100                 END;
101         END;
102
103 %]
104
105 <script language='javascript'>
106         var obj = document.getElementById("location_select_button");
107         obj.onclick = function(evt) {
108                 evt = (evt) ? evt : ((window.event) ? event : null);
109                 var target = (evt.target) ? evt.target : evt.srcElement;
110                 if(evt)
111                         globalPage.locationTree.toggle(target, 0, 0);
112         }
113 </script>
114
115
116
117
118         
119
120