[Koha-bugs] [Bug 7607] Advanced search: Index and search term don't match when leaving fields empty

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 16:51:06 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7607

Koha Team Lyon 3 <koha at univ-lyon3.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |koha at univ-lyon3.fr

--- Comment #1 from Koha Team Lyon 3 <koha at univ-lyon3.fr> ---
Same observation at Lyon3 : the problem comes from what Paul Poulain pointed
out in last comment of bug 3264. (But a recent test in Chrome got the same
wrong result as in Firefox).
As a work around I put the following function in opacuserjs syspref but I guess
it would be better to find a more orthodox way :

$(document).ready(function(){
$("input[name='do']").click(function(){
    $("input[name='q']").each(function(i){
        if (!$(this).val()){
            $("select[name='idx']").eq(i).append('<option value=""
selected="selected"></option>'); 
        }
    }); 
});
});

and in intranetuserjs :

$(document).ready(function() {
$("#submit1,#submit2").click(function(){
    $("input[name='q']").each(function(i){
        if (!$(this).val()){
            $("select[name='idx']").eq(i).append('<option value=""
selected="selected"></option>'); 
        }
    }); 
});
});

Olivier Crouzet

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list