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

(-)a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js (-2 / +7 lines)
Lines 159-167 $(document).ready(function(){ Link Here
159
                // Display card number in parentheses if it exists
159
                // Display card number in parentheses if it exists
160
                cardnumber = " (" + item.cardnumber + ") ";
160
                cardnumber = " (" + item.cardnumber + ") ";
161
            }
161
            }
162
            var itemString = "<a href=\"#\">" + (item.surname ? item.surname.escapeHtml() : "") + ", " + (item.firstname ? item.firstname.escapeHtml() : "") + cardnumber.escapeHtml() + " <small>";
163
            itemString += (item.address ? item.address.escapeHtml() : "") + " "
164
                + (item.city ? item.city.escapeHtml() : "") + " "
165
                + (item.zipcode ? item.zipcode.escapeHtml() : "") + " "
166
                + (item.country ? item.country.escapeHtml() : "")
167
                + "</small></a>";
162
            return $("<li></li>")
168
            return $("<li></li>")
163
                .data("ui-autocomplete-item", item)
169
                .data("ui-autocomplete-item", item)
164
                .append("<a href=\"#\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>")
170
                .append(itemString)
165
                .appendTo(ul);
171
                .appendTo(ul);
166
        };
172
        };
167
    }
173
    }
168
- 

Return to bug 26572