Bug 30952: Staff interface redesign (header)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / branchoverdues.tt
1 [% USE Branches %]
2 [% USE Koha %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Overdues at [% Branches.GetLoggedInBranchname | html %] &rsaquo; Circulation &rsaquo; Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="circ_branchoverdues" class="circ">
8 [% WRAPPER 'header.inc' %]
9     [% INCLUDE 'circ-search.inc' %]
10 [% END %]
11
12 [% WRAPPER 'sub-header.inc' %]
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
14     <ol>
15         <li>
16             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
17         </li>
18         <li>
19             <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
20         </li>
21         <li>
22             <a href="#" aria-current="page">
23                 Overdues at [% Branches.GetLoggedInBranchname | html %]
24             </a>
25         </li>
26     </ol>
27 </nav>
28 [% END %]
29
30 <div class="main container-fluid">
31     <div class="row">
32         [% IF Koha.Preference('CircSidebar') %]
33             <div class="col-sm-10 col-sm-push-2">
34         [% ELSE %]
35             <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
36         [% END %]
37             <main>
38
39 <h1>Circulation: Overdues at [% Branches.GetLoggedInBranchname | html %]</h1>
40
41 <form name="selectlocation" action="branchoverdues.pl" method="post">
42     <label for="location">Shelving location selected: </label><select id="location" name="location">
43         <option value="">All shelving locations</option>
44         [% FOREACH locationsloo IN locationsloop %]
45             [% IF ( locationsloo.selected ) %]<option value="[% locationsloo.authorised_value | html %]" selected="selected">[% locationsloo.lib | html %]</option>[% ELSE %]<option value="[% locationsloo.authorised_value | html %]">[% locationsloo.lib | html %]</option>[% END %]
46         [% END %]
47     </select>
48     <input type="submit" name="location" class="submit" value="OK" />
49 </form>
50
51     [% IF ( overduesloop ) %]
52         <table style="width:100%;">
53         <tr>
54             <th>Date due</th>
55             <th>Title</th>
56             <th>Patron</th>
57             <th>Location</th>
58         </tr>
59             [% FOREACH overduesloo IN overduesloop %]
60                 <tr>
61                     <td>
62                         [% overduesloo.date_due | html %]
63                     </td>
64                     <td>
65                         [% INCLUDE 'biblio-title.inc' biblio=overduesloo link = 1 %] [% IF ( overduesloo.author ) %] by [% overduesloo.author | html %][% END %]
66
67                             <br />Barcode : [% overduesloo.barcode | html %]
68                     </td>
69                     <td>
70                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overduesloo.borrowernumber | uri %]">[% overduesloo.borrowersurname | html %], [% overduesloo.borrowerfirstname | html %]</a>
71                         <br />[% overduesloo.cardnumber | html %]
72                         <br />[% overduesloo.borrowerphone | html %]<br />
73                     [% IF ( overduesloo.borroweremail ) %]<a href="mailto:[% overduesloo.borroweremail | uri %]?subject=Overdue: [% overduesloo.title | uri %]">
74                     [% overduesloo.borroweremail | html %]</a>[% END %]
75                     </td>
76                     <td>[% Branches.GetName( overduesloo.homebranch ) | html %] [% overduesloo.itemcallnumber | html %]
77                     </td>
78                 </tr>
79             [% END %]
80         </table>
81     [% ELSE %]
82         <div class="dialog message">There are no overdues for today[% IF ( location ) %] at the selected location[% END %].</div>
83     [% END %]
84     [% IF ( todayoverduesloop ) %]
85         <div id="branch_odues_today_odues">
86             <table style="width:100%;">
87                         <caption>Today's notifications</caption>
88             <tr>
89                 <th>Date due</th>
90                 <th>Title</th>
91                 <th>Borrower</th>
92                 <th>Location</th>
93                 <th>Cancel</th>
94             </tr>
95                 [% FOREACH todayoverduesloo IN todayoverduesloop %]
96                     <tr>
97                         <td>
98                             <p>
99                             [% todayoverduesloo.date_due | html %]
100                             </p>
101                         </td>
102                         <td>
103                             <p>
104                                 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% todayoverduesloo.biblionumber | uri %]">[% todayoverduesloo.title | html %]</a>
105                                 &nbsp; (<strong>[% todayoverduesloo.description | html %]</strong>)
106                                 <br />Barcode : [% todayoverduesloo.barcode | html %]
107                             </p>
108                         </td>
109                         <td>
110                             <p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% todayoverduesloo.borrowernumber | uri %]">[% todayoverduesloo.borrowersurname | html %] &nbsp; [% todayoverduesloo.borrowerfirstname | html %]</a>
111                             <br />[% todayoverduesloo.cardnumber | html %]<br />
112                             <br />[% todayoverduesloo.borrowerphone | html %]<br />
113                         [% IF ( todayoverduesloo.borroweremail ) %]<a href="mailto:[% todayoverduesloo.borroweremail | uri %]?subject=Overdue: [% todayoverduesloo.title | uri %]">
114                         [% todayoverduesloo.borroweremail | html %]</a>[% END %]
115                             </p>
116                         </td>
117                         <td><p>[% Branches.GetName( todayoverduesloo.homebranch ) | html %] [% todayoverduesloo.itemcallnumber | html %]</p>
118                         </td>
119                         <td>
120                         <a href="branchoverdues.pl?action=remove&amp;borrowernumber=[% todayoverduesloo.borrowernumber | uri %]&amp;itemnumber=[% todayoverduesloo.itemnumber | uri %]&amp;method=phone&amp;location=[% todayoverduesloo.location | uri %]">Cancel notification</a>
121                         </td>
122                     </tr>
123                 [% END %]
124             </table>
125         </div>
126     [% END %]
127
128                 </main>
129             </div> <!-- /.col-sm-10.col-sm-push-2 -->
130
131             [% IF Koha.Preference('CircSidebar') %]
132                 <div class="col-sm-2 col-sm-pull-10">
133                     <aside>
134                         [% INCLUDE 'circ-nav.inc' %]
135                     </aside>
136                 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
137             [% END %]
138         </div> <!-- /.row -->
139
140 [% INCLUDE 'intranet-bottom.inc' %]