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