]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/pages/chunks/opac_search_bar.ttk
opac pile of template updates
[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 nowrap='nowrap' valign='middle' align='left';
20                                         INCLUDE opac/pages/chunks/search_bar_form.ttk;
21                                 END;
22
23
24
25                                 WRAPPER html/cell  align='center';
26
27                                         WRAPPER html/div class='text_link_div' id='login_div';
28                                                 anchor( id='login_link',  href='?target=login', text = tm.login );
29                                         END;
30
31                                         WRAPPER html/div style="display:none;visibility:hidden" class='text_link_div' id='logout_div';
32                                                 anchor( id='logout_link',  href='?target=logout', text = tm.logout );
33                                         END;
34
35                                 END;
36
37                                 WRAPPER html/cell  align='center';
38                                         WRAPPER html/div class="text_link_div" id='adv_search_link_div';
39                                                 anchor( id='adv_search_link',  href='?target=advanced_search', text = tm.advanced );
40                                         END;
41                                 END;
42
43
44                                 WRAPPER html/cell  align='center';
45                                         WRAPPER html/div class='text_link_div' id='my_opac_link_div';
46                                                 anchor( id='my_opac_link',  href='?target=my_opac', text = tm.my_opac );
47                                         END;
48                                 END;
49
50
51                                 WRAPPER html/cell  align='center';
52                                         WRAPPER html/div class='text_link_div' id='about_link_div';
53                                                 anchor( id='about_link', href='?target=about', text = tm.about );
54                                         END;
55                                 END;
56
57                         
58
59                                 WRAPPER html/cell valign='bottom' align='right';
60                                         WRAPPER html/div id='small_logo_div';
61                                                 WRAPPER html/anchor href=global.config.root_url;
62                                                         img(src = "/images/small_logo.jpg", title="Home", border="0", width='30', height='30');
63                                                 END; # - anchor
64                                         END; # - div
65                                 END; # - cell   
66
67                                 cell( content = space(2) );
68
69                         END; # - row
70                 END; # - table
71         END; # - div
72
73 %]
74
75
76
77
78