]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates-bootstrap/opac/parts/multi_hold_select.tt2
LP1778972 A slew of updates
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / parts / multi_hold_select.tt2
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;
6 %]
7 <p>
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>
12 [% END %]
13 </select>
14 </p>
15 [% END %]