Bug 23698 - Advanced search add filter multi-branches
Summary: Advanced search add filter multi-branches
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: delaye
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 10:31 UTC by delaye
Modified: 2019-10-17 09:19 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...