Bug 28955: (follow-up) Set to fall back
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-routing-lists.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE AdditionalContents %]
6 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Your routing lists &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %]
12     [% Asset.css("css/datatables.css") | $raw %]
13 [% END %]
14 </head>
15
16 [% INCLUDE 'bodytag.inc' bodyid='opac-account' bodyclass='scrollto' %]
17 [% INCLUDE 'masthead.inc' %]
18
19 <div class="main">
20     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
21         <ol class="breadcrumb">
22             <li class="breadcrumb-item">
23                <a href="/cgi-bin/koha/opac-main.pl">Home</a>
24             </li>
25             <li class="breadcrumb-item">
26                 <a href="/cgi-bin/koha/opac-routing-lists.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
27             </li>
28             <li class="breadcrumb-item active">
29                 <a href="#" aria-current="page">Your routing lists</a>
30             </li>
31         </ol>
32     </nav> <!-- /#breadcrumbs -->
33
34     <div class="container-fluid">
35         <div class="row">
36             <div class="col-lg-2">
37                 <div id="navigation">
38                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
39                 </div>
40             </div>
41             <div class="col-10 order-first order-md-first order-lg-2">
42                 <div id="user-routing-lists" class="maincontent">
43
44                     <h1>Routing lists</h1>
45
46                     [% SET routinglists = logged_in_user.get_routing_lists %]
47                     [% IF ( routinglists.count ) %]
48                         <p id="routing-list-intro">You are subscribed to the routing lists for following serial titles. If you wish to make changes, please contact the library.</p>
49
50                         <table class="table table-bordered table-striped" id="routingtable">
51                             <caption class="sr-only">Routing lists</caption>
52                             <thead>
53                                 <tr>
54                                     <th>Subscription title</th>
55                                 </tr>
56                             </thead>
57
58                             <tbody>
59                             [% FOREACH routinglist IN routinglists %]
60                                 [% IF ( titles_loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
61                                     <td>
62                                         <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% routinglist.subscription.biblio.biblionumber | uri %]">
63                                             [% routinglist.subscription.biblio.title | html %]
64                                         </a>
65                                     </td>
66                                 </tr>
67                             [% END %]
68                             </tbody>
69                         </table>
70                     [% ELSE %]
71                         <p>You are currently not listed on any routing lists.</p>
72                     [% END %]
73                 </div> <!-- /#user-routing-lists.maincontent -->
74
75             </div> <!-- / .col-10 -->
76         </div> <!-- / .row -->
77     </div> <!-- / .container-fluid -->
78 </div> <!-- / .main -->
79
80 [% INCLUDE 'opac-bottom.inc' %]
81 [% BLOCK jsinclude %]
82 [% END %]