Merge remote branch 'kc/new/enh/bug_5431' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / branchoverdues.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Circulation &rsaquo; Overdues at [% LoginBranchname %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'circ-search.inc' %]
8
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Overdues at [% LoginBranchname %]</div>
10
11 <div id="doc" class="yui-t7">
12
13    <div id="bd">
14         <div id="yui-main">
15         <div class="yui-g">
16
17
18 <h1>Circulation: Overdues at [% LoginBranchname %]</h1>
19
20 <form name="selectlocation" action="branchoverdues.pl" method="post">
21     <label for="location">Shelving location selected: </label><select id="location" name="location">
22         <option value="">All shelving locations</option>
23         [% FOREACH locationsloo IN locationsloop %]
24             [% IF ( locationsloo.selected ) %]<option value="[% locationsloo.authorised_value %]" selected="selected">[% locationsloo.lib %]</option>[% ELSE %]<option value="[% locationsloo.authorised_value %]">[% locationsloo.lib %]</option>[% END %]
25         [% END %]
26     </select>
27     <input type="submit" name="location" class="submit" value="OK" />
28 </form>
29
30     [% IF ( overduesloop ) %]
31         <table style="width:100%;">
32         <tr>
33             <th>Date due</th>
34             <th>Title</th>
35             <th>Patron</th>
36             <th>Location</th>
37             <th>Overdue status</th>
38             <th>Notified by</th>
39         </tr>
40             [% FOREACH overduesloo IN overduesloop %]
41                 <tr>
42                     <td>
43                         [% overduesloo.date_due %]
44                     </td>
45                     <td>
46                     [% INCLUDE 'biblio-default-view.inc' %][% overduesloo.title |html %] [% IF ( overduesloo.subtitle ) %][% overduesloo.subtitle %][% END %]</a> [% IF ( overduesloo.author ) %] by [% overduesloo.author %][% END %]
47
48                             <br />Barcode : [% overduesloo.barcode %]
49                     </td>
50                     <td>
51                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overduesloo.borrowernumber %]">[% overduesloo.borrowersurname %], [% overduesloo.borrowerfirstname %]</a><br />[% overduesloo.borrowerphone %]<br />
52                     [% IF ( overduesloo.borroweremail ) %]<a href="mailto:[% overduesloo.borroweremail %]?subject=Overdue: [% overduesloo.title |html %]">
53                     [% overduesloo.borroweremail %]</a>[% END %]
54                     </td>
55                     <td>[% overduesloo.homebranch %] [% overduesloo.itemcallnumber %]
56                     </td>
57                     <td align="center">
58                     <b>
59                         [% IF ( overduesloo.overdue1 ) %]
60                             First overdue
61                         [% END %]
62                         [% IF ( overduesloo.overdue2 ) %]
63                             Second overdue
64                         [% END %]
65                         [% IF ( overduesloo.overdue3 ) %]
66                             Third overdue
67                         [% END %]
68                     </b>
69                     </td>
70                     <td align="center">
71                     [% IF ( overduesloo.overdue1 ) %]
72                         [% IF ( overduesloo.borroweremail ) %]
73                             <a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=mail&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Mail</a>
74                         [% ELSE %]
75                             Mail
76                         [% END %]
77                             &nbsp;|&nbsp;
78                             <a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=phone&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]
79                             ">Phone</a>
80                             &nbsp;|&nbsp;
81                             <a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=letter&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]
82                             &amp;notifyId=[% overduesloo.notify_id %]">Notice</a>
83                     [% END %]
84
85                     [% IF ( overduesloo.overdue2 ) %]
86                         <a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=letter&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Notice</a>
87                     [% END %]
88
89                     [% IF ( overduesloo.overdue3 ) %]
90                     <a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=lost&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]
91                     &amp;notifyId=[% overduesloo.notify_id %]">Considered lost</a>
92                     [% END %]
93
94                     </td>
95                 </tr>
96             [% END %]
97         </table>
98     [% ELSE %]
99         <div class="dialog message">There are no overdues for today[% IF ( location ) %] at the selected location[% END %].</div>
100     [% END %]
101     [% IF ( todayoverduesloop ) %]
102         <div id="branch_odues_today_odues">
103             <table style="width:100%;">
104                         <caption>Today's notifications</caption>
105             <tr>
106                 <th>Date due</th>
107                 <th>Title</th>
108                 <th>Borrower</th>
109                 <th>Location</th>
110                 <th>Overdue status</th>
111                 <th>Notified by</th>
112                 <th>Cancel</th>
113             </tr>
114                 [% FOREACH todayoverduesloo IN todayoverduesloop %]
115                     <tr>
116                         <td>
117                             <p>
118                             [% todayoverduesloo.date_due %]
119                             </p>
120                         </td>
121                         <td>
122                             <p>
123                                 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% todayoverduesloo.biblionumber %]">[% todayoverduesloo.title |html %]</a>
124                                 &nbsp; (<b>[% todayoverduesloo.description %]</b>)
125                                 <br />Barcode : [% todayoverduesloo.barcode %]
126                             </p>
127                         </td>
128                         <td>
129                             <p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% todayoverduesloo.borrowernumber %]">[% todayoverduesloo.borrowersurname %] &nbsp; [% todayoverduesloo.borrowerfirstname %]</a><br />[% todayoverduesloo.borrowerphone %]<br />
130                         [% IF ( todayoverduesloo.borroweremail ) %]<a href="mailto:[% todayoverduesloo.borroweremail %]?subject=Overdue: [% todayoverduesloo.title |html %]">
131                         [% todayoverduesloo.borroweremail %]</a>[% END %]
132                             </p>
133                         </td>
134                         <td><p>[% todayoverduesloo.homebranch %] [% todayoverduesloo.itemcallnumber %]</p>
135                         </td>
136                         <td align="center">
137                             <b>
138                                 [% IF ( todayoverduesloo.overdue1 ) %]
139                                     First overdue
140                                 [% END %]
141                                 [% IF ( todayoverduesloo.overdue2 ) %]
142                                     Second overdue
143                                 [% END %]
144                                 [% IF ( todayoverduesloo.overdue3 ) %]
145                                     Considered lost
146                                 [% END %]
147                             </b>
148                         </td>
149                         <td align="center">
150                             <b>[% todayoverduesloo.notify_method %]</b>
151                         </td>
152
153                         <td>
154                         <a href="branchoverdues.pl?action=remove&amp;borrowernumber=[% todayoverduesloo.borrowernumber %]&amp;itemnumber=[% todayoverduesloo.itemnumber %]&amp;method=phone&amp;location=[% todayoverduesloo.location %]&amp;notify_date=[% todayoverduesloo.notify_date %]">Cancel notification</a>
155                         </td>
156                     </tr>
157                 [% END %]
158             </table>
159         </div>
160     [% END %]
161
162 </div>
163 </div>
164 </div>
165 [% INCLUDE 'intranet-bottom.inc' %]