]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/pages/chunks/opac_search_bar.ttk
opac
[Evergreen.git] / Open-ILS / src / templates / opac / pages / chunks / opac_search_bar.ttk
1 [%
2         # ---------------------------------------------------------------------------------             
3         # OPAC Search bar that appears at the top of each page
4         # Submission of the search calls the 'mr_basic_search()' function which expects a
5         # table called 'mr_results_table' to be available for population.
6         #
7         # if the 'js_only' variable is set to true, then the search form will do all of
8         # the work locally (javascript) instead of reloading the current page 
9         # --------------------------------------------------------------------------------- 
10         
11         # grab the textmap info for this page
12         tm = global.textmap.opac.search_bar;
13
14                 WRAPPER html/div id='opac_search_bar_box';
15
16                 WRAPPER html/table border='0' width='100%';
17                         WRAPPER html/row;
18
19                                 WRAPPER html/cell  valign='middle' align='left';
20
21                                         INCLUDE opac/pages/chunks/search_bar_form.ttk js_only=$js_only;
22
23 #                                       IF js_only;
24 #                                               INCLUDE opac/pages/chunks/js_search_bar_form.ttk;
25 #                                       ELSE;
26 #                                               INCLUDE opac/pages/chunks/form_search_bar_form.ttk;
27 #                                       END;
28
29
30                                 
31                                 END;
32
33                                 WRAPPER html/cell  align='center';
34                                         WRAPPER html/div class="text_link_div" id='adv_search_link_div';
35                                                 anchor( id='adv_search_link',  href='?target=advanced_search', text = tm.advanced );
36                                         END;
37                                 END;
38
39                                 WRAPPER html/cell  align='center';
40                                         WRAPPER html/div class='text_link_div' id='login_div';
41                                                 anchor( id='login_link',  href='?target=login', text = tm.login );
42                                         END;
43                                         WRAPPER html/div class='text_link_div' id='logout_div';
44                                                 anchor( id='logout_link',  href='?target=logout', text = tm.logout );
45                                         END;
46                                 END;
47
48                                 WRAPPER html/cell  align='center';
49                                         WRAPPER html/div class='text_link_div' id='my_opac_link_div';
50                                                 anchor( id='my_opac_link',  href='?target=my_opac', text = tm.my_opac );
51                                         END;
52                                 END;
53
54
55                                 WRAPPER html/cell  align='center';
56                                         WRAPPER html/div class='text_link_div' id='about_link_div';
57                                                 anchor( id='about_link', href='?target=about', text = tm.about );
58                                         END;
59                                 END;
60
61
62                                 WRAPPER html/cell valign='bottom' align='right';
63                                         WRAPPER html/div id='small_logo_div';
64                                                 img(src = "/images/small_logo.jpg", border="0", width='45', height='45');
65 #                                               WRAPPER html/table;
66
67                                                         # for whatever reason, i have to shove a small 
68                                                         # row/cell above the pic to make it line up
69                                                         #row(content = cell());
70
71 #                                                       WRAPPER html/row;
72 #                                                               WRAPPER html/cell valign='bottom';
73 #                                                                       WRAPPER html/anchor href=global.config.root_url;
74 #                                                                               img(src = "/images/small_logo.jpg", border="0", width='45', height='45');
75 #                                                                       END; # - anchor
76 #                                                               END; # - cell
77 #                                                       END; # - row
78 #
79 #                                               END; # - table
80                                         END; # - div
81                                 END; # - cell   
82
83                                 cell( content = space(2) );
84
85                         END; # - row
86                 END; # - table
87         END; # - div
88
89 %]
90
91
92
93
94