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