]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/parts/format_selector.tt2
Merge branch 'master' of ssh://yeti.esilibrary.com/home/evergreen/evergreen-equinox...
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / parts / format_selector.tt2
1 [%-  name = name || "fi:format";
2     id = id || "format_selector";
3     values = values || CGI.param(name) -%]
4 <select id='[% id %]' name='[% name %]'[%
5     multiple ? ' multiple="multiple"' : '';
6     size ? (' size="' _ size _ '"') : ''; %]>
7     <option value=''>[% l("All Formats") %]</option>
8 [% FOR o IN formats %]
9     <option value='[% o.code %]'[% values.grep('^' _ o.code _ '$').size ? ' selected="selected"' : ''%]>[% o.name %]</option>
10 [%- END %]
11 <!--
12         <option value='at'>[% l("Books") %]</option>
13         <option value='at-d'>[% l("Large Print Books") %]</option>
14         <option value='i'>[% l("Audiobooks") %]</option>
15         <option value='g'>[% l("Video Recordings") %]</option>
16         <option value='j'>[% l("Music") %]</option>
17         <option value='m'>[% l("Electronic Resources") %]</option>
18 -->
19 </select>