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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 396-402 my @limits; Link Here
396
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
396
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
397
397
398
if($params->{'multibranchlimit'}) {
398
if($params->{'multibranchlimit'}) {
399
push @limits, join(" or ", map { "branch: $_ "}  @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
399
    push @limits, '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')';
400
}
400
}
401
401
402
my $available;
402
my $available;
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl (-1 / +9 lines)
Lines 247-253 Link Here
247
        <!--/TMPL_IF-->    
247
        <!--/TMPL_IF-->    
248
        <!-- /TMPL_LOOP -->
248
        <!-- /TMPL_LOOP -->
249
        </select>
249
        </select>
250
        
250
        <!-- TMPL_IF NAME="searchdomainloop" -->
251
            <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
252
                <label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
253
                <option value=""> -- none -- </option>
254
                <!-- TMPL_LOOP NAME="searchdomainloop" -->
255
                <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
256
                <!-- /TMPL_LOOP -->
257
                </select>
258
        <!-- /TMPL_IF -->        
251
        <div style="margin-top:.4em"><label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label></div>
259
        <div style="margin-top:.4em"><label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label></div>
252
    </fieldset></div>
260
    </fieldset></div>
253
    <!-- /TMPL_UNLESS -->
261
    <!-- /TMPL_UNLESS -->
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 317-323 my @limits; Link Here
317
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
317
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
318
318
319
if($params->{'multibranchlimit'}) {
319
if($params->{'multibranchlimit'}) {
320
push @limits, join(" or ", map { "branch: $_ "}  @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
320
    push @limits, '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')';
321
}
321
}
322
322
323
my $available;
323
my $available;
324
- 

Return to bug 3629