LP1797934: Add a patron's booking reservations to their OPAC account
[Evergreen.git] / Open-ILS / src / templates / opac / parts / myopac / base.tt2
1 [%  WRAPPER "opac/parts/base.tt2" %]
2
3 [% myopac_pages = [
4         {url => "main", name => l("Account Summary")},
5         {url => "messages", name => l("Messages")},
6         {url => "circs", name => l("Items Checked Out")},
7         {url => "holds", name => l("Holds")},
8         {url => "prefs", name => l("Account Preferences")},
9         {url => "lists", name => l("My Lists")},
10         {url => "reservations", name => l("Reservations")}
11     ];
12     skin_root = "../"
13 %]
14     <h2 class="sr-only">[% l('My Account') %]</h2>
15     [% INCLUDE "opac/parts/topnav.tt2" %]
16     <div class="mobile_hide">
17     [% INCLUDE "opac/parts/searchbar.tt2" %]
18     </div>
19
20      <!-- Added so search available from my account pages -->
21     <div class="mobile_view" id="mobile_acct_search_links">
22       <span class="adv_search_catalog_lbl mobile_search_lbl_clr"><strong>[% l('Search:') %]</strong></span>
23       <span class="adv_search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/home', {locg => CGI.param('locg')}, 1) %]"
24                     id="home_adv_search_link" class="mobile_search_lbl_clr">[%l('Basic')%]</a> &nbsp;</span>
25                 <span class="adv_search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/advanced', {$loc_name => loc_value}, 1) %]"
26             id="home_adv_search_link" class="mobile_search_lbl_clr">[% l('Advanced') %]</a> &nbsp;</span>
27        <span class="browse_the_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/browse', {}, ['fi:has_browse_entry']) %]" 
28             class="mobile_search_lbl_clr">[% l('Browse') %]</a>&nbsp;</span>
29     </div><!-- End Mobile search view -->
30
31     <div id="content-wrapper">
32         <div id="myopac_tabs">
33             <div id="acct_tabs">
34                 [%- FOREACH page IN myopac_pages;
35                     IF page.url == myopac_page;
36                         cls_which = "acct-tab-on";
37                         ctx.page_title = l("My Account - [_1]", page.name);
38                     ELSE;
39                         cls_which = "acct-tab-off";
40                     END -%]
41                 <a href="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit','sort','sort_type', 'hid']) %]"
42                     class="[% cls_which %]">[% page.name; %]</a>
43                 [% END %]
44             </div>
45
46             <!-- Select box navigation for media view -->
47             <div id="acct_select">
48                <form name="acct_nav">
49
50                  <select name="acct_url" 
51                     title="[% l('Select an account page') %]" 
52                     onchange="window.location.href=document.acct_nav.acct_url.options[document.acct_nav.acct_url.selectedIndex].value">
53                     <option value="" selected="selected">[% l('Go to...') %]</option>
54                     [% FOREACH page IN myopac_pages;
55                       IF page.url != myopac_page; %]
56                         <option value="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit', 'hid']) %]">[% page.name; %]</option>
57                     [% ELSE; %]
58                         <option value="" disabled>[% page.name; %]</option>
59                     [% END;
60                    END; %] 
61                  </select>
62                     </form>
63             </div>
64             </div><!-- myopac_tabs -->
65         <div id="main-content">
66             [% content %]
67             <div class="common-full-pad"></div>
68         </div>
69     </div> <!-- content-wrapper -->
70 [% END %]