]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/pages/opac_start.ttk
moving around some of the navigation components
[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='login_link',  href='?target=my_opac', text = "My OPAC" );
61                         space(3);
62                         anchor( id='adv_search_link',  href='?target=advanced_search', text = "Advanced Search" );
63
64                 END;
65         END;
66
67
68         # ---------------------------------------------------------------------------
69         # search type
70         # ---------------------------------------------------------------------------
71         BLOCK stype_selector;
72                 WRAPPER html/select name='mr_search_type' id='mr_search_type';
73                         option(value='title',   selected='selected', content="Title");
74                         option(value='author',  content='Author');
75                         option(value='subject', content='Subject');
76                         option(value='keyword', content='Keyword');
77                         option(value='series', content='Series');
78                 END;
79         END;
80
81
82         # ---------------------------------------------------------------------------
83         # location button
84         # ---------------------------------------------------------------------------
85         BLOCK location_input;
86                 input( type='submit', name='tree_button', value="Location", id='location_select_button'); 
87         END;
88
89
90         # ---------------------------------------------------------------------------
91         # search range
92         # ---------------------------------------------------------------------------
93         BLOCK search_range;
94                 WRAPPER html/span;
95                         "Expand search to ";
96                         space(2);
97                         WRAPPER html/select 
98                                 name='search_range_select' 
99                                 id='search_range_select'
100                                 onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
101                         END;
102                 END;
103         END;
104
105 %]
106
107 <script language='javascript'>
108         var obj = document.getElementById("location_select_button");
109         obj.onclick = function(evt) {
110                 evt = (evt) ? evt : ((window.event) ? event : null);
111                 var target = (evt.target) ? evt.target : evt.srcElement;
112                 if(evt)
113                         globalPage.locationTree.toggle(target, 0, 0);
114         }
115 </script>
116
117
118
119
120         
121
122