View | Details | Raw Unified | Return to bug 18884
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-2 / +2 lines)
Lines 1-9 Link Here
1
[% BLOCK options_for_libraries %]
1
[% BLOCK options_for_libraries %]
2
    [% FOREACH l IN libraries %]
2
    [% FOREACH l IN libraries %]
3
        [% IF l.selected %]
3
        [% IF l.selected %]
4
            <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname %]</option>
4
            <option value="[% prefix %][% l.branchcode | html %]" selected="selected">[% l.branchname %]</option>
5
        [% ELSE %]
5
        [% ELSE %]
6
            <option value="[% l.branchcode | html %]">[% l.branchname |html %]</option>
6
            <option value="[% prefix %][% l.branchcode | html %]">[% l.branchname |html %]</option>
7
        [% END%]
7
        [% END%]
8
    [% END %]
8
    [% END %]
9
[% END %]
9
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-2 / +1 lines)
Lines 239-245 Link Here
239
        <p><label for="branchloop">Individual libraries:</label><select name="limit" id="branchloop">
239
        <p><label for="branchloop">Individual libraries:</label><select name="limit" id="branchloop">
240
        <option value="">All libraries</option>
240
        <option value="">All libraries</option>
241
        [%# FIXME Should not we filter the libraries displayed? %]
241
        [%# FIXME Should not we filter the libraries displayed? %]
242
        [% PROCESS options_for_libraries libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]
242
        [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]
243
        </select></p>
243
        </select></p>
244
    <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
244
    <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
245
        [% IF ( searchdomainloop ) %]
245
        [% IF ( searchdomainloop ) %]
246
- 

Return to bug 18884