Bug 34719: Add middle_name to patron autocomplete
To test: 1. Apply patch and clear browser cache. 2. Find some patrons with middle_name populated or add new patrons with a middle_name. 3. Make sure PatronAutoComplete is on 4. Try searching for a part of one of the patron's names who has a middle_name. 5. It should appear in the autocomplete dropdown Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9b385a2c36
commit
a6c77f664c
1 changed files with 1 additions and 0 deletions
|
@ -495,6 +495,7 @@ function patron_autocomplete(node, options) {
|
|||
+ (item.link ? "<a href=\"" + item.link + "\">" : "<a>")
|
||||
+ (item.surname ? item.surname.escapeHtml() : "") + ", "
|
||||
+ (item.firstname ? item.firstname.escapeHtml() : "")
|
||||
+ " " + (item.middle_name ? item.middle_name.escapeHtml() : "")
|
||||
+ cardnumber.escapeHtml()
|
||||
+ " <small>"
|
||||
+ (item.date_of_birth
|
||||
|
|
Loading…
Reference in a new issue