|
Lines 120-196
$.tablesorter.addParser({
Link Here
|
| 120 |
[% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-waiting">Waiting</a></li>[% END %][% END %] |
120 |
[% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-waiting">Waiting</a></li>[% END %][% END %] |
| 121 |
[% IF ( reserves_count ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li>[% END %] |
121 |
[% IF ( reserves_count ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li>[% END %] |
| 122 |
</ul> |
122 |
</ul> |
| 123 |
|
|
|
| 124 |
[% IF ( OPACFinesTab ) %] |
| 125 |
<!-- FINES BOX --> |
| 126 |
[% IF ( BORROWER_INF.amountoverfive ) %] |
| 127 |
<div id="opac-user-fines"> <h3>Fines and charges</h3> |
| 128 |
<table> |
| 129 |
<tr><th colspan="2">Amount</th></tr> |
| 130 |
<tr> |
| 131 |
<td>You currently owe fines and charges amounting to:</td> |
| 132 |
<td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td> |
| 133 |
</tr> |
| 134 |
</table></div> |
| 135 |
[% END %] |
| 136 |
|
| 137 |
[% IF ( BORROWER_INF.amountoverzero ) %] |
| 138 |
<div id="opac-user-fines"> <h3>Fines and charges</h3> |
| 139 |
<table> |
| 140 |
<tr><th colspan="2">Amount</th></tr> |
| 141 |
<tr><td>You currently owe fines and charges amounting to:</td> |
| 142 |
<td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr> |
| 143 |
</table></div> |
| 144 |
[% END %] |
| 145 |
|
| 146 |
[% IF ( BORROWER_INF.amountlessthanzero ) %] |
| 147 |
<div id="opac-user-fines"> <h3>Credits</h3> |
| 148 |
<table> |
| 149 |
<tr><th colspan="2">Amount</th></tr> |
| 150 |
<tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr> |
| 151 |
</table></div> |
| 152 |
[% END %] |
| 153 |
[% END %] |
| 154 |
|
| 155 |
[% END %] |
| 156 |
|
| 157 |
[% IF ( waiting_count ) %] |
| 158 |
[% IF ( atdestination ) %] |
| 159 |
<div id="opac-user-waiting"> |
| 160 |
<table id="waitingt"> |
| 161 |
<caption>Holds waiting</caption> |
| 162 |
<thead> <tr> |
| 163 |
<th colspan="2" class="{sorter:'articles'}">Title</th> |
| 164 |
<th>Hold date</th> |
| 165 |
<th>Pick up library</th> |
| 166 |
</tr></thead> |
| 167 |
<tbody>[% FOREACH WAITIN IN WAITING %] |
| 168 |
<tr> |
| 169 |
<td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td> |
| 170 |
<td><a href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]"> |
| 171 |
[% WAITIN.waiting_title %] |
| 172 |
</a><span class="item-details"> |
| 173 |
[% WAITIN.author %] |
| 174 |
</span></td> |
| 175 |
<td>[% WAITIN.reservedate | $KohaDates %]</td> |
| 176 |
<td>[% IF ( WAITIN.atdestination ) %]<strong>Waiting</strong> at [% WAITIN.branch %] |
| 177 |
[% ELSE %] |
| 178 |
In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %] |
| 179 |
[% END %]</td> |
| 180 |
</tr> |
| 181 |
[% END %]</tbody> |
| 182 |
</table></div> |
| 183 |
[% END %] |
| 184 |
[% END %] |
| 185 |
|
123 |
|
| 186 |
<div id="opac-user-checkouts">[% IF ( issues_count ) %] |
124 |
<div id="opac-user-checkouts">[% IF ( issues_count ) %] |
| 187 |
<form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
125 |
<form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
| 188 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]"> |
126 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]"> |
| 189 |
<input type="hidden" name="from" value="opac_user" /> |
127 |
<input type="hidden" name="from" value="opac_user" /> |
| 190 |
<table id="checkoutst"> |
128 |
<table id="checkoutst"> |
| 191 |
<caption>[% issues_count %] Item(s) checked out</caption> |
129 |
<caption>[% issues_count %] Item(s) checked out</caption> |
| 192 |
<thead><tr> |
130 |
<thead><tr> |
| 193 |
[% IF ( JacketImages ) %]<th class="{sorter: false}"> </th>[% END %] |
131 |
[% IF ( JacketImages ) %]<th class="{sorter: false}"> </th>[% END %] |
| 194 |
<th class="{sorter:'articles'}">Title</th> |
132 |
<th class="{sorter:'articles'}">Title</th> |
| 195 |
<th>Due</th> |
133 |
<th>Due</th> |
| 196 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %] |
134 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %] |
|
Lines 207-221
$.tablesorter.addParser({
Link Here
|
| 207 |
[% END %] |
145 |
[% END %] |
| 208 |
</tr></thead> |
146 |
</tr></thead> |
| 209 |
<tbody> |
147 |
<tbody> |
| 210 |
<!-- FIXME: the styling for highlight overrides the overdue red background, |
148 |
<!-- FIXME: the styling for highlight overrides the overdue red background, |
| 211 |
so currently we don't use this conditional as the first thing inside the LOOP: |
149 |
so currently we don't use this conditional as the first thing inside the LOOP: |
| 212 |
[% UNLESS ( __odd__ ) %] |
150 |
[% UNLESS ( __odd__ ) %] |
| 213 |
<tr[% IF ( overdue ) %] class="overdue"[% END %]> |
151 |
<tr[% IF ( overdue ) %] class="overdue"[% END %]> |
| 214 |
[% ELSE %] |
152 |
[% ELSE %] |
| 215 |
<tr class="[% IF ( overdue ) %]overdue [% END %]highlight"> |
153 |
<tr class="[% IF ( overdue ) %]overdue [% END %]highlight"> |
| 216 |
[% END %] |
154 |
[% END %] |
| 217 |
--> |
155 |
--> |
| 218 |
[% FOREACH ISSUE IN ISSUES %] |
156 |
[% FOREACH ISSUE IN ISSUES %] |
| 219 |
[% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %] |
157 |
[% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %] |
| 220 |
|
158 |
|
| 221 |
[% IF ( JacketImages ) %]<td class="jacketcell"> |
159 |
[% IF ( JacketImages ) %]<td class="jacketcell"> |
|
Lines 259-285
$.tablesorter.addParser({
Link Here
|
| 259 |
</tr> |
197 |
</tr> |
| 260 |
[% END %]</tbody> |
198 |
[% END %]</tbody> |
| 261 |
</table> |
199 |
</table> |
| 262 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] |
200 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] |
| 263 |
<input type="submit" value="Renew Selected" /> |
201 |
<input type="submit" value="Renew Selected" /> |
| 264 |
[% END %] |
202 |
[% END %] |
| 265 |
</form> |
203 |
</form> |
| 266 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] |
204 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] |
| 267 |
<form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
205 |
<form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
| 268 |
<input type="hidden" name="from" value="opac_user" /> |
206 |
<input type="hidden" name="from" value="opac_user" /> |
| 269 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
207 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
| 270 |
[% FOREACH ISSUE IN ISSUES %] |
208 |
[% FOREACH ISSUE IN ISSUES %] |
| 271 |
<input type="hidden" name="item" value="[% ISSUE.itemnumber %]" /> |
209 |
<input type="hidden" name="item" value="[% ISSUE.itemnumber %]" /> |
| 272 |
[% END %] |
210 |
[% END %] |
| 273 |
<input type="submit" value="Renew All" /> |
211 |
<input type="submit" value="Renew All" /> |
| 274 |
</form> |
212 |
</form> |
| 275 |
[% END %] |
213 |
[% END %] |
| 276 |
[% ELSE %] |
214 |
[% ELSE %] |
| 277 |
<table> |
215 |
<table> |
| 278 |
<tr><td>You have nothing checked out</td></tr> |
216 |
<tr><td>You have nothing checked out</td></tr> |
| 279 |
</table> |
217 |
</table> |
| 280 |
[% END %]</div> |
218 |
[% END %]</div> |
|
|
219 |
|
| 220 |
[% IF ( OPACFinesTab ) %] |
| 221 |
<!-- FINES BOX --> |
| 222 |
[% IF ( BORROWER_INF.amountoverfive ) %] |
| 223 |
<div id="opac-user-fines"> <h3>Fines and charges</h3> |
| 224 |
<table> |
| 225 |
<tr><th colspan="2">Amount</th></tr> |
| 226 |
<tr> |
| 227 |
<td>You currently owe fines and charges amounting to:</td> |
| 228 |
<td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td> |
| 229 |
</tr> |
| 230 |
</table></div> |
| 231 |
[% END %] |
| 232 |
|
| 233 |
[% IF ( BORROWER_INF.amountoverzero ) %] |
| 234 |
<div id="opac-user-fines"> <h3>Fines and charges</h3> |
| 235 |
<table> |
| 236 |
<tr><th colspan="2">Amount</th></tr> |
| 237 |
<tr><td>You currently owe fines and charges amounting to:</td> |
| 238 |
<td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr> |
| 239 |
</table></div> |
| 240 |
[% END %] |
| 241 |
|
| 242 |
[% IF ( BORROWER_INF.amountlessthanzero ) %] |
| 243 |
<div id="opac-user-fines"> <h3>Credits</h3> |
| 244 |
<table> |
| 245 |
<tr><th colspan="2">Amount</th></tr> |
| 246 |
<tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr> |
| 247 |
</table></div> |
| 248 |
[% END %] |
| 249 |
[% END %] |
| 281 |
|
250 |
|
| 282 |
|
251 |
[% END %] |
|
|
252 |
|
| 253 |
[% IF ( waiting_count ) %] |
| 254 |
[% IF ( atdestination ) %] |
| 255 |
<div id="opac-user-waiting"> |
| 256 |
<table id="waitingt"> |
| 257 |
<caption>Holds waiting</caption> |
| 258 |
<thead> <tr> |
| 259 |
<th colspan="2" class="{sorter:'articles'}">Title</th> |
| 260 |
<th>Hold date</th> |
| 261 |
<th>Pick up library</th> |
| 262 |
</tr></thead> |
| 263 |
<tbody>[% FOREACH WAITIN IN WAITING %] |
| 264 |
<tr> |
| 265 |
<td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td> |
| 266 |
<td><a href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]"> |
| 267 |
[% WAITIN.waiting_title %] |
| 268 |
</a><span class="item-details"> |
| 269 |
[% WAITIN.author %] |
| 270 |
</span></td> |
| 271 |
<td>[% WAITIN.reservedate | $KohaDates %]</td> |
| 272 |
<td>[% IF ( WAITIN.atdestination ) %]<strong>Waiting</strong> at [% WAITIN.branch %] |
| 273 |
[% ELSE %] |
| 274 |
In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %] |
| 275 |
[% END %]</td> |
| 276 |
</tr> |
| 277 |
[% END %]</tbody> |
| 278 |
</table></div> |
| 279 |
[% END %] |
| 280 |
[% END %] |
| 281 |
|
| 283 |
[% IF ( overdues_count ) %] |
282 |
[% IF ( overdues_count ) %] |
| 284 |
<div id="opac-user-overdues"><table id="overduest"> |
283 |
<div id="opac-user-overdues"><table id="overduest"> |
| 285 |
<caption>Overdues <span class="count">([% overdues_count %] total)</span></caption> |
284 |
<caption>Overdues <span class="count">([% overdues_count %] total)</span></caption> |
| 286 |
- |
|
|