Lines 82-175
Link Here
|
82 |
</li> |
82 |
</li> |
83 |
</ul> |
83 |
</ul> |
84 |
<div id="holdswaiting"> |
84 |
<div id="holdswaiting"> |
85 |
[% IF ( reserveloop ) %] |
85 |
[% PROCESS display_holds_waiting_table holds => reserveloop, tab => 'holdswaiting' %] |
86 |
<table id="holdst"> |
86 |
</div> |
87 |
<thead><tr> |
87 |
<div id="holdsover"> |
88 |
<th class="title-string">Available since</th> |
88 |
[% IF ( ReservesMaxPickUpDelay ) %]<p>Holds listed here have been awaiting pickup for more than [% ReservesMaxPickUpDelay %] days.</p>[% END %] |
89 |
<th class="anti-the">Title</th> |
89 |
[% IF overloop %] |
90 |
<th>Patron</th> |
90 |
<form name="cancelAllReserve" action="waitingreserves.pl" method="post"> |
91 |
<th>Home branch</th> |
91 |
<input type="hidden" name="cancelall" value="1" /> |
92 |
<th>Current location</th> |
92 |
<input type="hidden" name="allbranches" value="[% allbranches %]" /> |
93 |
<th>Call number</th> |
93 |
<input type="hidden" name="tab" value="holdsover"> |
94 |
<th>Copy number</th> |
94 |
[% IF TransferWhenCancelAllWaitingHolds %] |
95 |
<th>Enumeration</th> |
95 |
<input type="submit" value="Cancel and Transfer all" /> |
96 |
<th>Action</th> |
96 |
[% ELSE %] |
97 |
</tr></thead> |
97 |
<input type="submit" value="Cancel all" /> |
98 |
<tbody>[% FOREACH reserveloo IN reserveloop %] |
|
|
99 |
<tr> |
100 |
<td><span title="[% reserveloo.waitingdate %]">[% reserveloo.waitingdate | $KohaDates %]</span></td> |
101 |
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] |
102 |
[% reserveloo.title |html %] [% FOREACH subtitl IN reserveloo.subtitle %] [% subtitl.subfield %][% END %] |
103 |
</a> |
104 |
[% UNLESS ( item_level_itypes ) %][% IF ( reserveloo.itemtype ) %] (<b>[% reserveloo.itemtype %]</b>)[% END %][% END %] |
105 |
<br />Barcode: [% reserveloo.barcode %] |
106 |
</td> |
107 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrowernum %]">[% reserveloo.borrowername %], [% reserveloo.borrowerfirstname %]</a> |
108 |
[% IF ( reserveloo.borrowerphone ) %]<br />[% reserveloo.borrowerphone %][% END %] |
109 |
[% IF ( reserveloo.borrowermail ) %]<br /><a href="mailto:[% reserveloo.borrowermail %]?subject=Hold waiting: [% reserveloo.title %]"> |
110 |
[% reserveloo.borrowermail %]</a>[% END %] |
111 |
</td> |
112 |
<td>[% Branches.GetName( reserveloo.homebranch ) %]</td> |
113 |
<td>[% Branches.GetName( reserveloo.holdingbranch ) %]</td> |
114 |
<td>[% reserveloo.itemcallnumber %]</td> |
115 |
<td>[% reserveloo.copynumber %]</td> |
116 |
<td>[% reserveloo.enumchron %]</td> |
117 |
<td> |
118 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
119 |
<input type="hidden" name="op" value="cancel_reserve" /> |
120 |
<input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernum %]" /> |
121 |
<input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" /> |
122 |
<input type="hidden" name="fbr" value="[% reserveloo.holdingbranch %]" /> |
123 |
<input type="hidden" name="tbr" value="[% reserveloo.homebranch %]" /> |
124 |
<input type="hidden" name="tab" value="holdswaiting"> |
125 |
[% IF ( reserveloo.dotransfer ) %] |
126 |
<input type="submit" value="Cancel hold and return to : [% Branches.GetName( reserveloo.homebranch ) %]" /> |
127 |
[% ELSE %] |
128 |
<input type="submit" value="Cancel hold" /> |
129 |
[% END %] |
130 |
</form> |
131 |
[% IF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') != 'no' %] |
132 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
133 |
<input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" /> |
134 |
<input type="hidden" name="fbr" value="[% reserveloo.holdingbranch %]" /> |
135 |
<input type="hidden" name="tbr" value="[% reserveloo.homebranch %]" /> |
136 |
<input type="hidden" name="tab" value="holdswaiting"> |
137 |
[% IF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') == 'yes' %] |
138 |
<input type="hidden" name="op" value="mark_as_lost" /> |
139 |
<input type="submit" value="Mark item as lost" /> |
140 |
[% ELSIF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') == 'yes_and_notify' %] |
141 |
<input type="hidden" name="op" value="mark_as_lost_and_notify" /> |
142 |
<input type="submit" value="Mark item as lost and notify the patron" /> |
143 |
[% END %] |
144 |
</form> |
145 |
[% END %] |
98 |
[% END %] |
146 |
</td> |
99 |
</form> |
147 |
</tr> |
100 |
|
148 |
[% END %]</tbody> |
101 |
[% UNLESS TransferWhenCancelAllWaitingHolds %] |
149 |
</table> |
102 |
Only items that need not be transferred will be cancelled (TransferWhenCancelAllWaitingHolds sypref) |
150 |
[% ELSE %] |
103 |
[% END %] |
151 |
<div class="dialog message">No holds found.</div> |
104 |
[% END %] |
152 |
[% END %] |
105 |
[% PROCESS display_holds_waiting_table holds => overloop, tab => 'holdsover' %] |
|
|
106 |
</div> |
153 |
</div> |
107 |
</div> |
154 |
<div id="holdsover"> |
108 |
[% END %] |
155 |
[% IF ( ReservesMaxPickUpDelay ) %]<p>Holds listed here have been awaiting pickup for more than [% ReservesMaxPickUpDelay %] days.</p>[% END %] |
|
|
156 |
[% IF ( overloop ) %] |
157 |
<form name="cancelAllReserve" action="waitingreserves.pl" method="post"> |
158 |
<input type="hidden" name="op" value="cancel_all" /> |
159 |
<input type="hidden" name="allbranches" value="[% allbranches %]" /> |
160 |
<input type="hidden" name="tab" value="holdsover"> |
161 |
[% IF TransferWhenCancelAllWaitingHolds %] |
162 |
<input type="submit" value="Cancel and Transfer all" /> |
163 |
[% ELSE %] |
164 |
<input type="submit" value="Cancel all" /> |
165 |
[% END %] |
166 |
</form> |
167 |
[% UNLESS TransferWhenCancelAllWaitingHolds %] |
168 |
Only items that need not be transferred will be cancelled (TransferWhenCancelAllWaitingHolds sypref) |
169 |
[% END %] |
170 |
|
109 |
|
171 |
<table id="holdso"> |
110 |
</div> |
172 |
<thead><tr> |
111 |
</div> |
|
|
112 |
[% IF Koha.Preference('CircSidebar') %] |
113 |
</div> |
114 |
<div class="yui-b noprint"> |
115 |
[% INCLUDE 'circ-nav.inc' %] |
116 |
</div> |
117 |
[% END %] |
118 |
</div> |
119 |
[% INCLUDE 'intranet-bottom.inc' %] |
120 |
|
121 |
[% BLOCK display_holds_waiting_table %] |
122 |
[% IF holds %] |
123 |
<table id="holdst"> |
124 |
<thead> |
125 |
<tr> |
173 |
<th class="title-string">Available since</th> |
126 |
<th class="title-string">Available since</th> |
174 |
<th class="anti-the">Title</th> |
127 |
<th class="anti-the">Title</th> |
175 |
<th>Patron</th> |
128 |
<th>Patron</th> |
Lines 179-250
Link Here
|
179 |
<th>Copy number</th> |
132 |
<th>Copy number</th> |
180 |
<th>Enumeration</th> |
133 |
<th>Enumeration</th> |
181 |
<th>Action</th> |
134 |
<th>Action</th> |
182 |
</tr></thead> |
135 |
</tr> |
183 |
<tbody>[% FOREACH overloo IN overloop %] |
136 |
</thead> |
|
|
137 |
<tbody> |
138 |
[% FOREACH hold IN holds %] |
184 |
<tr> |
139 |
<tr> |
185 |
<td><p><span title="[% overloo.waitingdate %]">[% overloo.waitingdate | $KohaDates %]</span></p></td> |
140 |
<td><span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span></td> |
186 |
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = overloo.biblionumber %][% overloo.title |html %] |
141 |
<td> |
187 |
[% FOREACH subtitl IN overloo.subtitle %] [% subtitl.subfield %][% END %] |
142 |
[% INCLUDE 'biblio-default-view.inc' biblionumber = hold.biblionumber %] |
188 |
</a> |
143 |
[% hold.title |html %] |
189 |
[% UNLESS ( item_level_itypes ) %][% IF ( overloo.itemtype ) %] (<b>[% overloo.itemtype %]</b>)[% END %][% END %] |
144 |
[% FOREACH subtitl IN hold.subtitle %] [% subtitl.subfield %][% END %] |
190 |
<br />Barcode: [% overloo.barcode %] |
145 |
</a> |
191 |
</td> |
146 |
[% UNLESS ( item_level_itypes ) %][% IF ( hold.itemtype ) %] (<b>[% hold.itemtype %]</b>)[% END %][% END %] |
192 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overloo.borrowernum %]">[% overloo.borrowername %], [% overloo.borrowerfirstname %]</a><br />[% overloo.borrowerphone %]<br /> |
147 |
<br />Barcode: [% hold.barcode %] |
193 |
[% IF ( overloo.borrowermail ) %]<a href="mailto:[% overloo.borrowermail %]?subject=Reservation: [% overloo.title |url %]"> |
148 |
</td> |
194 |
[% overloo.borrowermail %]</a>[% END %] |
149 |
<td> |
195 |
</td> |
150 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% hold.borrowernum %]">[% hold.borrowername %], [% hold.borrowerfirstname %]</a> |
196 |
<td>[% Branches.GetName( overloo.homebranch ) %]</td> |
151 |
[% IF ( hold.borrowerphone ) %]<br />[% hold.borrowerphone %][% END %] |
197 |
<td>[% Branches.GetName( overloo.holdingbranch ) %]</td> |
152 |
[% IF ( hold.borrowermail ) %]<br /><a href="mailto:[% hold.borrowermail %]?subject=Hold waiting: [% hold.title %]"> |
198 |
<td>[% overloo.itemcallnumber %]</td> |
153 |
[% hold.borrowermail %]</a>[% END %] |
199 |
<td>[% overloo.copynumber %]</td> |
154 |
</td> |
200 |
<td>[% overloo.enumchron %]</td> |
155 |
<td>[% Branches.GetName( hold.homebranch ) %]</td> |
201 |
<td><form name="cancelReserve" action="waitingreserves.pl" method="post"> |
156 |
<td>[% Branches.GetName( hold.holdingbranch ) %]</td> |
202 |
<input type="hidden" name="op" value="cancel_reserve" /> |
157 |
<td>[% hold.itemcallnumber %]</td> |
203 |
<input type="hidden" name="borrowernumber" value="[% overloo.borrowernum %]" /> |
158 |
<td>[% hold.copynumber %]</td> |
204 |
<input type="hidden" name="itemnumber" value="[% overloo.itemnumber %]" /> |
159 |
<td>[% hold.enumchron %]</td> |
205 |
<input type="hidden" name="fbr" value="[% overloo.holdingbranch %]" /> |
160 |
<td> |
206 |
<input type="hidden" name="tbr" value="[% overloo.homebranch %]" /> |
|
|
207 |
<input type="hidden" name="tab" value="holdsover"> |
208 |
[% IF ( overloo.dotransfer ) %] |
209 |
<input type="submit" value="Cancel hold and return to : [% Branches.GetName( overloo.homebranch ) %]" /> |
210 |
[% ELSE %] |
211 |
<input type="submit" value="Cancel hold" /> |
212 |
[% END %] |
213 |
</form> |
214 |
[% IF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') != 'no' %] |
215 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
161 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
216 |
<input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" /> |
162 |
<input type="hidden" name="op" value="cancel_reserve" /> |
217 |
<input type="hidden" name="fbr" value="[% reserveloo.holdingbranch %]" /> |
163 |
<input type="hidden" name="borrowernumber" value="[% hold.borrowernum %]" /> |
218 |
<input type="hidden" name="tbr" value="[% reserveloo.homebranch %]" /> |
164 |
<input type="hidden" name="itemnumber" value="[% hold.itemnumber %]" /> |
219 |
<input type="hidden" name="tab" value="holdswaiting"> |
165 |
<input type="hidden" name="fbr" value="[% hold.holdingbranch %]" /> |
220 |
[% IF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') == 'yes' %] |
166 |
<input type="hidden" name="tbr" value="[% hold.homebranch %]" /> |
221 |
<input type="hidden" name="op" value="mark_as_lost" /> |
167 |
<input type="hidden" name="tab" value="[% tab %]"> |
222 |
<input type="submit" value="Mark item as lost" /> |
168 |
[% IF ( hold.dotransfer ) %] |
223 |
[% ELSIF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') == 'yes_and_notify' %] |
169 |
<input type="submit" value="Cancel hold and return to : [% Branches.GetName( hold.homebranch ) %]" /> |
224 |
<input type="hidden" name="op" value="mark_as_lost_and_notify" /> |
170 |
[% ELSE %] |
225 |
<input type="submit" value="Mark item as lost and notify the patron" /> |
171 |
<input type="submit" value="Cancel hold" /> |
226 |
[% END %] |
172 |
[% END %] |
227 |
</form> |
173 |
</form> |
228 |
[% END %] |
174 |
[% IF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') != 'no' %] |
229 |
|
175 |
<form name="cancelReserve" action="waitingreserves.pl" method="post"> |
230 |
</td> |
176 |
<input type="hidden" name="reserve_id" value="[% hold.reserve_id %]" /> |
231 |
</tr> |
177 |
<input type="hidden" name="fbr" value="[% hold.holdingbranch %]" /> |
232 |
[% END %]</tbody> |
178 |
<input type="hidden" name="tbr" value="[% hold.homebranch %]" /> |
233 |
</table> |
179 |
<input type="hidden" name="tab" value="[% tab %]"> |
234 |
[% ELSE %] |
180 |
[% IF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') == 'yes' %] |
235 |
<div class="dialog message">No holds found.</div> |
181 |
<input type="hidden" name="op" value="mark_as_lost" /> |
|
|
182 |
<input type="submit" value="Mark item as lost" /> |
183 |
[% ELSIF Koha.Preference('CanMarkHoldsAwaitingPickupAsLost') == 'yes_and_notify' %] |
184 |
<input type="hidden" name="op" value="mark_as_lost_and_notify" /> |
185 |
<input type="submit" value="Mark item as lost and notify the patron" /> |
186 |
[% END %] |
187 |
</form> |
188 |
[% END %] |
189 |
</td> |
190 |
</tr> |
236 |
[% END %] |
191 |
[% END %] |
237 |
</div> |
192 |
</tbody> |
238 |
</div> |
193 |
</table> |
|
|
194 |
[% ELSE %] |
195 |
<div class="dialog message">No holds found.</div> |
239 |
[% END %] |
196 |
[% END %] |
240 |
|
|
|
241 |
</div> |
242 |
</div> |
243 |
[% IF Koha.Preference('CircSidebar') %] |
244 |
</div> |
245 |
<div class="yui-b noprint"> |
246 |
[% INCLUDE 'circ-nav.inc' %] |
247 |
</div> |
248 |
[% END %] |
197 |
[% END %] |
249 |
</div> |
|
|
250 |
[% INCLUDE 'intranet-bottom.inc' %] |
251 |
- |