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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc (-3 / +6 lines)
Lines 36-44 Link Here
36
            else {
36
            else {
37
                name = preferred_name + ' ' + surname;
37
                name = preferred_name + ' ' + surname;
38
            }
38
            }
39
40
            if ( name.replace(' ', '').length == 0 ) {
39
            if ( name.replace(' ', '').length == 0 ) {
41
                return _("A patron from %s".format(patron.library.name));
40
                if ( patron.library ) {
41
                    return _("A patron from %s".format(patron.library.name));
42
                }
43
                else {
44
                    return _("A patron from another library");
45
                }
42
            }
46
            }
43
47
44
            if ( config && config.hide_patron_name ) {
48
            if ( config && config.hide_patron_name ) {
45
- 

Return to bug 38530