]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/pages/opac_start.ttk
our little opac is growing up
[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                         span(id='now_searching_cell', class='front_now_searching');
33
34                         lines(3);
35
36                         input( type='hidden', name='target', value='mr_result');
37                         input( type='hidden', name='page', value='0');
38         
39                         input(id='mr_search_query',  name='mr_search_query',  
40                                         type='textarea', size='54');
41                 
42                         #space(1);
43                         lines(2);
44                         PROCESS stype_selector;
45                         space(2);
46                         PROCESS location_input;
47                         space(2);
48                         PROCESS search_range;
49
50                         lines(2);
51                         input(type='submit', id='mr_search_button', 
52                                         value="Search", onclick='alert("help");' );
53
54
55                         space(3);
56
57                         space(3);
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
80                 space(2);
81                 WRAPPER html/select name='format' id='mr_search_format';
82                         option(value='all',     selected='selected', content="All Formats");
83                         option(value='audiobooks',      content="Audiobooks");
84                         option(value='',        content="...");
85                 END;
86
87         END;
88
89
90
91         # ---------------------------------------------------------------------------
92         # location button
93         # ---------------------------------------------------------------------------
94         BLOCK location_input;
95                 input( type='submit', name='tree_button', value="Location", id='location_select_button'); 
96         END;
97
98
99         # ---------------------------------------------------------------------------
100         # search range
101         # ---------------------------------------------------------------------------
102         BLOCK search_range;
103                 WRAPPER html/span;
104                         "Expand search to ";
105                         space(2);
106                         WRAPPER html/select 
107                                 name='search_range_select' 
108                                 id='search_range_select'
109                                 onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
110                         END;
111                 END;
112         END;
113
114 %]
115
116 <script language='javascript'>
117         var obj = document.getElementById("location_select_button");
118         obj.onclick = function(evt) {
119                 evt = (evt) ? evt : ((window.event) ? event : null);
120                 var target = (evt.target) ? evt.target : evt.srcElement;
121                 if(evt)
122                         globalPage.locationTree.toggle(target, 0, 0);
123         }
124 </script>
125
126
127
128
129         
130
131