2 # Org Unit Selector Widget :
3 # PROCESS build_org_selector id='selector-id' name='selector-name'
4 BLOCK build_org_selector;
7 org_unit = ctx.org_tree;
10 <select id='[% id %]' name='[% name %]'>
12 <option value='[% org_unit.id %]' [% IF org_unit.id == value %] selected='selected' [% END %]>
14 pad = org_unit.ou_type.depth * 4;
15 FOR idx IN [0..pad]; ' '; END;
19 [% FOR child IN org_unit.children; PROCESS build_org_selector org_unit = child; END %]
25 [% PROCESS 'default/opac/marc_attrs.tt2' %]