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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-9 / +8 lines)
Lines 213-219 Link Here
213
        [% SET year_limit_key = 'yr,st-numeric' %]
213
        [% SET year_limit_key = 'yr,st-numeric' %]
214
        <input type="text" size="15" name="limit-yr" id="limit-yr" value="[% limits.$year_limit_key.0 | html %]"/>&nbsp;&nbsp;(format: yyyy-yyyy)</p>
214
        <input type="text" size="15" name="limit-yr" id="limit-yr" value="[% limits.$year_limit_key.0 | html %]"/>&nbsp;&nbsp;(format: yyyy-yyyy)</p>
215
        [% IF limits.$year_limit_key.defined %]
215
        [% IF limits.$year_limit_key.defined %]
216
            [% limits.delete($year_limit_key) %]
216
            [% limits.delete(year_limit_key) %]
217
        [% END %]
217
        [% END %]
218
<!-- /PUB / COPY YEAR LIMIT -->
218
<!-- /PUB / COPY YEAR LIMIT -->
219
</fieldset>
219
</fieldset>
Lines 346-354 Link Here
346
</fieldset>
346
</fieldset>
347
347
348
<fieldset id="select-libs">
348
<fieldset id="select-libs">
349
    <fieldset id="individual_branches">
349
    <fieldset id="individual_libraries">
350
        <legend>Individual branches</legend>
350
        <legend>Individual libraries</legend>
351
        <p>If multiple branches are provided, only records with items from all of those branches will be returned</p>
351
        <p>If multiple libraries are provided, only records with items from all of those libraries will be returned</p>
352
        [% FOREACH branch IN limits.branch %]
352
        [% FOREACH branch IN limits.branch %]
353
        <span>
353
        <span>
354
            <input name="limit" value="branch:[% branch | html %]" type="hidden">
354
            <input name="limit" value="branch:[% branch | html %]" type="hidden">
Lines 363-375 Link Here
363
        [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all({ unfiltered => 1, selected ="" }) %]
363
        [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all({ unfiltered => 1, selected ="" }) %]
364
        </select></p>
364
        </select></p>
365
    </fieldset>
365
    </fieldset>
366
    [% IF search_groups %]
366
    <p>OR</p>
367
    <p>OR</p>
367
    <fieldset id="multi_branches">
368
    <fieldset id="multi_libraries">
368
        <legend>Multiple branches</legend>
369
        <legend>Multiple libraries</legend>
369
        <p>If multiple branches are selected here records with items in any of these branches will be returned. Selecting a group when some libraries are already selected will add the group libraries to the list</p>
370
        <p>If multiple libraries are selected here records with items in any of these libraries will be returned. Selecting a group when some libraries are already selected will add the group libraries to the list</p>
370
        <p>Selecting a group will disable the option to select individual libraries</p>
371
        <p>Selecting a group will disable the option to select individual libraries</p>
371
    <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
372
    <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
372
        [% IF search_groups %]
373
            [% FOREACH key IN limits.keys %]
373
            [% FOREACH key IN limits.keys %]
374
                [% IF ( multibranch = key.match('^mc-homebranch_(.*)') ) %]
374
                [% IF ( multibranch = key.match('^mc-homebranch_(.*)') ) %]
375
                    <span>
375
                    <span>
376
- 

Return to bug 22605