1 [% # Check if we need to do anything.
2 hold_type = CGI.param('hold_type');
3 max_holds = ctx.get_org_setting(ctx.default_pickup_lib, 'circ.holds.max_duplicate_holds');
4 can_dup = ctx.has_perm('CREATE_DUPLICATE_HOLDS', ctx.default_pickup_lib);
5 IF ctx.hold_data.size == 1 && (hold_type == 'M' || hold_type == 'T') && max_holds && max_holds > 1 && can_dup;
8 <label for="num_copies">[% l('Number of copies') %]</label>
9 <select id="num_copies" name="num_copies" title="[% l('Number of copies') %]">
10 [% FOR num IN [1..max_holds] %]
11 <option value="[% num %]">[% num %]</option>