1 [% BLOCK get_hold_status %]
4 IF hold.hold.status == 4;
6 IF ahr.shelf_expire_time;
9 date.format(ctx.parse_datetime(ahr.shelf_expire_time), DATE_FORMAT)) | html;
12 ELSIF hold.hold.status == 6;
14 date.format(ctx.parse_datetime(ahr.cancel_time), DATE_FORMAT)) | html;
16 ELSIF hold.hold.status == 7;
17 l("Suspended") | html;
21 date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT)) | html;
24 ELSIF hold.hold.status == 9;
26 date.format(ctx.parse_datetime(ahr.fulfillment_time), DATE_FORMAT))| html;
28 ELSIF hold.hold.estimated_wait AND hold.hold.estimated_wait > 0;
29 # estimated wait is delivered as seconds.
30 SET hwait = POSIX.ceil(hold.hold.estimated_wait / 86400);
31 l("Estimated wait: [quant,_1,day,days]", hwait) | html;
33 ELSIF hold.hold.status == 3 OR hold.hold.status == 8;
34 l("In Transit") | html;
36 ELSIF hold.hold.status < 3;
37 l("Waiting for copy") | html;
42 [% # Only show the count for holds that have not been captured
43 IF hold.hold.status < 3 OR hold.hold.status == 7;
44 l('Hold #[_1] on [quant,_2, copy, copies]',
45 hold.hold.queue_position, hold.hold.potential_copies) | html;