|
Lines 1-51
Link Here
|
| 1 |
[% USE ItemTypes %] |
1 |
[% USE ItemTypes %] |
| 2 |
<table id="[% table_name %]"> |
2 |
<table id="[% table_name | html %]"> |
| 3 |
<thead><tr> |
3 |
<thead> |
| 4 |
<th class="title-string">Waiting since</th> |
4 |
<tr> |
| 5 |
<th class="title-string">Date hold placed</th> |
5 |
<th class="title-string">Waiting since</th> |
| 6 |
<th class="anti-the">Title</th> |
6 |
<th class="title-string">Date hold placed</th> |
| 7 |
<th>Patron</th> |
7 |
<th class="anti-the">Title</th> |
| 8 |
<th>Home branch</th> |
8 |
<th>Patron</th> |
| 9 |
<th>Current location</th> |
9 |
<th>Home branch</th> |
| 10 |
<th>Call number</th> |
10 |
<th>Current location</th> |
| 11 |
<th>Copy number</th> |
11 |
<th>Call number</th> |
| 12 |
<th>Enumeration</th> |
12 |
<th>Copy number</th> |
| 13 |
<th>Action</th> |
13 |
<th>Enumeration</th> |
| 14 |
</tr></thead> |
14 |
<th>Action</th> |
| 15 |
<tbody>[% FOREACH reserveloo IN reserveloop %] |
15 |
</tr> |
| 16 |
<tr> |
16 |
</thead> |
| 17 |
<td><span title="[% reserveloo.waitingdate | html %]">[% reserveloo.waitingdate | $KohaDates %]</span></td> |
17 |
<tbody> |
| 18 |
<td><span title="[% reserveloo.reservedate | html %]">[% reserveloo.reservedate | $KohaDates %]</span></td> |
18 |
[% FOREACH reserveloo IN reserveloop %] |
| 19 |
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
19 |
<tr> |
| 20 |
[% reserveloo.biblio.title | html %] [% FOREACH subtitl IN reserveloo.biblio.subtitles %] [% subtitl.subfield | html %][% END %] |
20 |
<td><span title="[% reserveloo.waitingdate | html %]">[% reserveloo.waitingdate | $KohaDates %]</span></td> |
| 21 |
</a> |
21 |
<td><span title="[% reserveloo.reservedate | html %]">[% reserveloo.reservedate | $KohaDates %]</span></td> |
| 22 |
[% UNLESS ( item_level_itypes ) %][% IF ( ItemTypes.GetDescription(reserveloo.item.effective_itemtype) ) %] (<b>[% ItemTypes.GetDescription(reserveloo.item.effective_itemtype) | html %]</b>)[% END %][% END %] |
22 |
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
| 23 |
<br />Barcode: [% reserveloo.item.barcode | html %] |
23 |
[% reserveloo.biblio.title | html %] [% FOREACH subtitl IN reserveloo.biblio.subtitles %] [% subtitl.subfield | html %][% END %] |
| 24 |
</td> |
24 |
</a> |
| 25 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% reserveloo.borrower.surname | html %], [% reserveloo.borrower.firstname | html %]</a> |
25 |
[% UNLESS ( item_level_itypes ) %] |
| 26 |
[% IF ( reserveloo.borrower.phone ) %]<br />[% reserveloo.borrower.phone | html %][% END %] |
26 |
[% IF ( ItemTypes.GetDescription(reserveloo.item.effective_itemtype) ) %] (<b>[% ItemTypes.GetDescription(reserveloo.item.effective_itemtype) | html %]</b>) |
| 27 |
[% IF ( reserveloo.borrower.first_valid_email_address ) %]<br /><a href="mailto:[% reserveloo.borrower.first_valid_email_address | uri %]?subject=Hold waiting: [% reserveloo.biblio.title | uri %]"> |
27 |
[% END %] |
| 28 |
[% reserveloo.borrower.first_valid_email_address | html %]</a>[% END %] |
28 |
[% END %] |
| 29 |
</td> |
29 |
<br />Barcode: [% reserveloo.item.barcode | html %] |
| 30 |
<td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td> |
30 |
</td> |
| 31 |
<td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %]</td> |
31 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% reserveloo.borrower.surname | html %], [% reserveloo.borrower.firstname | html %]</a> |
| 32 |
<td>[% reserveloo.item.itemcallnumber | html %]</td> |
32 |
[% IF ( reserveloo.borrower.phone ) %]<br />[% reserveloo.borrower.phone | html %][% END %] |
| 33 |
<td>[% reserveloo.item.copynumber | html %]</td> |
33 |
[% IF ( reserveloo.borrower.first_valid_email_address ) %] |
| 34 |
<td>[% reserveloo.item.enumchron | html %]</td> |
34 |
<br /><a href="mailto:[% reserveloo.borrower.first_valid_email_address | uri %]?subject=[% "Hold waiting: " | uri %][% reserveloo.biblio.title | uri %]"> |
| 35 |
<td> |
35 |
[% reserveloo.borrower.first_valid_email_address | html %]</a> |
| 36 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
36 |
[% END %] |
| 37 |
<input type="hidden" name="borrowernumber" value="[% reserveloo.borrower.borrowernumber | html %]" /> |
37 |
</td> |
| 38 |
<input type="hidden" name="itemnumber" value="[% reserveloo.item.itemnumber | html %]" /> |
38 |
<td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td> |
| 39 |
<input type="hidden" name="fbr" value="[% reserveloo.item.holdingbranch | html %]" /> |
39 |
<td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %]</td> |
| 40 |
<input type="hidden" name="tbr" value="[% reserveloo.item.homebranch | html %]" /> |
40 |
<td>[% reserveloo.item.itemcallnumber | html %]</td> |
| 41 |
<input type="hidden" name="tab" value="holdswaiting"> |
41 |
<td>[% reserveloo.item.copynumber | html %]</td> |
| 42 |
[% IF ( reserveloo.item.homebranch != reserveloo.item.holdingbranch ) %] |
42 |
<td>[% reserveloo.item.enumchron | html %]</td> |
| 43 |
<input type="submit" value="Cancel hold and return to : [% Branches.GetName( reserveloo.item.homebranch ) | html %]" /> |
43 |
<td> |
| 44 |
[% ELSE %] |
44 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
| 45 |
<input type="submit" value="Cancel hold" /> |
45 |
<input type="hidden" name="borrowernumber" value="[% reserveloo.borrower.borrowernumber | html %]" /> |
| 46 |
[% END %] |
46 |
<input type="hidden" name="itemnumber" value="[% reserveloo.item.itemnumber | html %]" /> |
| 47 |
</form> |
47 |
<input type="hidden" name="fbr" value="[% reserveloo.item.holdingbranch | html %]" /> |
| 48 |
</td> |
48 |
<input type="hidden" name="tbr" value="[% reserveloo.item.homebranch | html %]" /> |
| 49 |
</tr> |
49 |
<input type="hidden" name="tab" value="holdswaiting"> |
| 50 |
[% END %]</tbody> |
50 |
[% IF ( reserveloo.item.homebranch != reserveloo.item.holdingbranch ) %] |
|
|
51 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold and return to: [% Branches.GetName( reserveloo.item.homebranch ) | html %]</button> |
| 52 |
[% ELSE %] |
| 53 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold</button> |
| 54 |
[% END %] |
| 55 |
</form> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
[% END %] |
| 59 |
</tbody> |
| 51 |
</table> |
60 |
</table> |
| 52 |
- |
|
|