https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23697

            Bug ID: 23697
           Summary: autocompletion search in patron module
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Patrons
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

How add autocompletion search in patron module.

with jquery it's possible like this

$(document).ready(function(){
  $( '#searchmember' ).autocomplete({
    source: function(request, response) {
      $.ajax({
        url: "/cgi-bin/koha/circ/ysearch.pl",
        dataType: "json",
        data: {
          term: request.term

        },
        success: function(data) {
          response( $.map( data, function( item ) {
            return {
              label: item.surname + " , " + item.firstname + " .-Date of birth
naissance: " + item.dateofbirth + " .-Address: " + item.address + " .-City:" +
item.city,
              value: item.surname + " " + item.firstname
            }
          }));
        }
      });
    },
    minLength: 1,
  });
});

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to