]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/pages/opac_start.ttk
update
[working/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                         option(value='series', content='Series');
72                 END;
73         END;
74
75
76         # ---------------------------------------------------------------------------
77         # location button
78         # ---------------------------------------------------------------------------
79         BLOCK location_input;
80                 input( type='submit', name='tree_button', value="Location", id='location_select_button'); 
81         END;
82
83
84         # ---------------------------------------------------------------------------
85         # search range
86         # ---------------------------------------------------------------------------
87         BLOCK search_range;
88                 WRAPPER html/span;
89                         "Expand search to ";
90                         space(2);
91                         WRAPPER html/select 
92                                 name='search_range_select' 
93                                 id='search_range_select'
94                                 onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
95                         END;
96                 END;
97         END;
98
99 %]
100
101 <script language='javascript'>
102         var obj = document.getElementById("location_select_button");
103         obj.onclick = function(evt) {
104                 evt = (evt) ? evt : ((window.event) ? event : null);
105                 var target = (evt.target) ? evt.target : evt.srcElement;
106                 if(evt)
107                         globalPage.locationTree.toggle(target, 0, 0);
108         }
109 </script>
110
111
112
113
114         
115
116