]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/pages/opac_start.ttk
removing old opac images and css
[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 #onkeydown='logicNode.mrSearchSubmitOnEnter(event); event.preventDefault = true; event.cancelBubble=true;'); # overwite this onkeydown if !IE XXX
42                 
43                         #space(1);
44                         lines(2);
45                         PROCESS stype_selector;
46                         space(2);
47                         PROCESS location_input;
48                         space(2);
49                         PROCESS search_range;
50
51                         lines(2);
52                         input(type='submit', id='mr_search_button', 
53                                         value="Search", onclick='alert("help");' );
54
55
56                         space(3);
57
58                         space(3);
59
60                         lines(3);
61                         anchor( id='login_link',  href='?target=my_opac', text = "My OPAC" );
62                         space(3);
63                         anchor( id='adv_search_link',  href='?target=advanced_search', text = "Advanced Search" );
64
65                 END;
66         END;
67
68
69         # ---------------------------------------------------------------------------
70         # search type
71         # ---------------------------------------------------------------------------
72         BLOCK stype_selector;
73                 WRAPPER html/select name='mr_search_type' id='mr_search_type';
74                         option(value='title',   selected='selected', content="Title");
75                         option(value='author',  content='Author');
76                         option(value='subject', content='Subject');
77                         option(value='keyword', content='Keyword');
78                         option(value='series', content='Series');
79                 END;
80
81                 space(2);
82                 WRAPPER html/select name='format' id='mr_search_format';
83                         option(value='all',     selected='selected', content="All Formats");
84                         option(value='at',      content="Books");
85                         option(value='at-d',    content="Large Print Books");
86                         option(value='i',       content="Audiobooks");
87                         option(value='g',               content="Video Recording");
88                         option(value='j',       content="Music");
89                         option(value='m',               content="Electronic Resources");
90                 END;
91
92         END;
93
94
95
96         # ---------------------------------------------------------------------------
97         # location button
98         # ---------------------------------------------------------------------------
99         BLOCK location_input;
100                 input( type='submit', name='tree_button', value="Location", id='location_select_button'); 
101         END;
102
103
104         # ---------------------------------------------------------------------------
105         # search range
106         # ---------------------------------------------------------------------------
107         BLOCK search_range;
108                 WRAPPER html/span;
109                         "Expand search to ";
110                         space(2);
111                         WRAPPER html/select 
112                                 name='search_range_select' 
113                                 id='search_range_select'
114                                 onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
115                         END;
116                 END;
117         END;
118
119 %]
120
121 <script language='javascript'>
122         var obj = document.getElementById("location_select_button");
123         obj.onclick = function(evt) {
124                 evt = (evt) ? evt : ((window.event) ? event : null);
125                 var target = (evt.target) ? evt.target : evt.srcElement;
126                 if(evt)
127                         globalPage.locationTree.toggle(target, 0, 0);
128         }
129 </script>
130
131
132
133
134         
135
136