Bug 27631: labels and members folders
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / routing-lists.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Subscription routing lists for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11
12 <body id="pat_routing_lists" class="pat">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search-header.inc' %]
15
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17     <ol>
18         <li>
19             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20         </li>
21         <li>
22             <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
23         </li>
24         <li>
25             <a href="#" aria-current="page">
26                 Subscription routing lists for [% INCLUDE 'patron-title.inc' %]
27             </a>
28         </li>
29     </ol>
30 </nav>
31
32 <div class="main container-fluid">
33     <div class="row">
34         <div class="col-sm-10 col-sm-push-2">
35             <main>
36
37                 [% INCLUDE 'members-toolbar.inc' %]
38
39                 <h1>Subscription routing lists for [% INCLUDE 'patron-title.inc' %]</h1>
40 <!-- Search Bar -->
41 <p class="tip">Search subscriptions:</p>
42 <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">[% IF ( routing ) %]<input type="hidden" name="routing" value="[% routing | html %]" />[% END %]<input type="hidden" name="searched" value="1" /> <label for="ISSN_filter">ISSN:</label> <input type="text" size="10" maxlength="11" name="ISSN_filter" id="ISSN_filter" value="[% ISSN_filter | html %]" /> <label for="title_filter">Title:</label> <input type="text" size="20" maxlength="40" name="title_filter" id="title_filter" value="[% title_filter | html %]" /><input type="submit" value="Search" class="submit" />
43 </form>
44 <!-- Search Bar End -->
45
46 [% SET routinglists = patron.get_routing_lists %]
47 <h2>
48 [% UNLESS ( routinglists ) %]
49 0 subscription routing lists
50 [% ELSIF ( routinglists.count == 1 ) %]
51 [% routinglists.count | html %] subscription routing list
52 [% ELSE %]
53 [% routinglists.count | html %] subscription routing lists
54 [% END %]
55 </h2>
56
57 <div id="subscriptions">
58
59 [% IF ( routinglists ) %]
60     <table id="subscriptiont">
61         <thead>
62             <tr>
63                 <th>Subscription title</th>
64                 <th>Position</th>
65                 <th>Routing list</th>
66             </tr>
67         </thead>
68         <tbody>
69         [% FOREACH routinglist IN routinglists %]
70             <tr>
71                 <td>
72                     <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
73                         [% routinglist.subscription.biblio.title | html %]
74                     </a>
75                 </td>
76                 <td>
77                     [% routinglist.ranking | html %]
78                 </td>
79                 <td>
80                     <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
81                         Edit routing list
82                     </a>
83                     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
84                     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
85                 </td>
86             </tr>
87             [% END %]
88         </tbody>
89     </table>
90 [% ELSE %]
91     <p>Patron does not belong to any subscription routing lists.</p>
92     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
93     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
94 [% END %]
95
96 </div>
97
98             </main>
99         </div> <!-- /.col-sm-10.col-sm-push-2 -->
100
101         <div class="col-sm-2 col-sm-pull-10">
102             <aside>
103                 [% INCLUDE 'circ-menu.inc' %]
104             </aside>
105         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
106      </div> <!-- /.row -->
107
108 [% MACRO jsinclude BLOCK %]
109     [% INCLUDE 'str/members-menu.inc' %]
110     [% Asset.js("js/members-menu.js") | $raw %]
111 [% END %]
112
113 [% INCLUDE 'intranet-bottom.inc' %]