Bug 30055: Restore patron's preview links
[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.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 <!-- Search Bar -->
40 <p class="tip">Search subscriptions:</p>
41 <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" />
42 </form>
43 <!-- Search Bar End -->
44
45 [% SET routinglists = patron.get_routing_lists %]
46 <h1>
47 [% UNLESS ( routinglists ) %]
48 0 subscription routing lists
49 [% ELSIF ( routinglists.count == 1 ) %]
50 [% routinglists.count | html %] subscription routing list
51 [% ELSE %]
52 [% routinglists.count | html %] subscription routing lists
53 [% END %]
54 </h1>
55
56 <div id="subscriptions">
57
58 [% IF ( routinglists ) %]
59     <table id="subscriptiont">
60         <thead>
61             <tr>
62                 <th>Subscription title</th>
63                 <th>Position</th>
64                 <th>Routing list</th>
65             </tr>
66         </thead>
67         <tbody>
68         [% FOREACH routinglist IN routinglists %]
69             <tr>
70                 <td>
71                     <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
72                         [% routinglist.subscription.biblio.title | html %]
73                     </a>
74                 </td>
75                 <td>
76                     [% routinglist.ranking | html %]
77                 </td>
78                 <td>
79                     <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
80                         Edit routing list
81                     </a>
82                     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
83                     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
84                 </td>
85             </tr>
86             [% END %]
87         </tbody>
88     </table>
89 [% ELSE %]
90     <p>Patron does not belong to any subscription routing lists.</p>
91     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
92     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
93 [% END %]
94
95 </div>
96
97             </main>
98         </div> <!-- /.col-sm-10.col-sm-push-2 -->
99
100         <div class="col-sm-2 col-sm-pull-10">
101             <aside>
102                 [% INCLUDE 'circ-menu.inc' %]
103             </aside>
104         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
105      </div> <!-- /.row -->
106
107 [% MACRO jsinclude BLOCK %]
108     [% INCLUDE 'str/members-menu.inc' %]
109     [% Asset.js("js/members-menu.js") | $raw %]
110 [% END %]
111
112 [% INCLUDE 'intranet-bottom.inc' %]