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

(-)a/circ/ysearch.pl (-2 / +3 lines)
Lines 45-51 if ($auth_status ne "ok") { Link Here
45
45
46
my $dbh = C4::Context->dbh;
46
my $dbh = C4::Context->dbh;
47
my $sql = q(
47
my $sql = q(
48
    SELECT surname, firstname, cardnumber, address, city, zipcode, country
48
    SELECT borrowernumber, surname, firstname, cardnumber, address, city, zipcode, country
49
    FROM borrowers
49
    FROM borrowers
50
    WHERE ( surname LIKE ?
50
    WHERE ( surname LIKE ?
51
        OR firstname LIKE ?
51
        OR firstname LIKE ?
Lines 68-74 print "["; Link Here
68
my $i = 0;
68
my $i = 0;
69
while ( my $rec = $sth->fetchrow_hashref ) {
69
while ( my $rec = $sth->fetchrow_hashref ) {
70
    if($i > 0){ print ","; }
70
    if($i > 0){ print ","; }
71
    print "{\"surname\":\"" . $rec->{surname} . "\",\"" .
71
    print "{\"borrowernumber\":\"" . $rec->{borrowernumber} . "\",\"" .
72
          "surname\":\"".$rec->{surname} . "\",\"" .
72
          "firstname\":\"".$rec->{firstname} . "\",\"" .
73
          "firstname\":\"".$rec->{firstname} . "\",\"" .
73
          "cardnumber\":\"".$rec->{cardnumber} . "\",\"" .
74
          "cardnumber\":\"".$rec->{cardnumber} . "\",\"" .
74
          "address\":\"".$rec->{address} . "\",\"" .
75
          "address\":\"".$rec->{address} . "\",\"" .
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-1 / +15 lines)
Lines 140-145 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
140
            "iDisplayLength": 20,
140
            "iDisplayLength": 20,
141
            "sPaginationType": "four_button"
141
            "sPaginationType": "four_button"
142
        }));
142
        }));
143
        var reviewerField = $("#approver");
144
        reviewerField.autocomplete({
145
            source: "/cgi-bin/koha/circ/ysearch.pl",
146
            minLength: 3,
147
            select: function( event, ui ) {
148
                reviewerField.val( ui.item.borrowernumber );
149
                return false;
150
            }
151
        })
152
        .data( "autocomplete" )._renderItem = function( ul, item ) {
153
            return $( "<li></li>" )
154
            .data( "item.autocomplete", item )
155
            .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
156
            .appendTo( ul );
157
        };
143
	});
158
	});
144
//]]>
159
//]]>
145
</script>
160
</script>
146
- 

Return to bug 2693