diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc index 3df91d35b2..ea9ff6b683 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc @@ -15,7 +15,7 @@ } var title = null; - if ( patron.title != null ) { + if ( patron.title != null && patron.title != '' ) { title = '' + escape_str(patron.title) + ''; } @@ -23,7 +23,7 @@ var firstname = escape_str(patron.firstname); var surname = escape_str(patron.surname); - if ( patron.other_name != null ) { + if ( patron.other_name != null && patron.other_name != '' ) { firstname += ' (' + escape_str(patron.other_name) + ')'; } if ( config && config.invert_name ) {