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