Bug 23698

Summary: Advanced search add filter multi-branches
Product: Koha Reporter: delaye <stephane.delaye>
Component: SearchingAssignee: delaye <stephane.delaye>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: claire.hernandez
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description delaye 2019-09-30 10:31:03 UTC
In advanced search how add a filter who searches multiple sites at once with the operator AND

it's easy with jquery

$(document).ready(function() { 
if ($('#catalog_advsearch').size())
$('#select-libs').append('<form><input type="checkbox" name="multi_sites">Sites:documents en commun</form>'); 
$("input[name='multi_sites']").click(function(){
if ($(this).is(":checked"))
{
$("#branchloop").attr('multiple','multiple');
}    
else
{
$("#branchloop").prop('multiple',false);
}
});        
});

A patch in code Koha would be nice...