card : { barcode : cusr.card().barcode() },
expire_date : cusr.expire_date(),
alias : cusr.alias(),
- has_email : Boolean(patronSvc.current.email() && patronSvc.current.email().match(/.*@.*/).length),
+ has_email : Boolean(patronSvc.current.email() && patronSvc.current.email().match(/.*@.*/)),
has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone())
};
card : { barcode : cusr.card().barcode() },
expire_date : cusr.expire_date(),
alias : cusr.alias(),
- has_email : Boolean(cusr.email() && cusr.email().match(/.*@.*/).length),
+ has_email : Boolean(cusr.email() && cusr.email().match(/.*@.*/)),
has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone())
}
}
card : { barcode : cusr.card().barcode() },
expire_date : cusr.expire_date(),
alias : cusr.alias(),
- has_email : Boolean(cusr.email() && cusr.email().match(/.*@.*/).length),
+ has_email : Boolean(cusr.email() && cusr.email().match(/.*@.*/)),
has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone())
}
}
money_summary : patronSvc.patron_stats.fines,
expire_date : cusr.expire_date(),
alias : cusr.alias(),
- has_email : Boolean(patronSvc.current.email() && patronSvc.current.email().match(/.*@.*/).length),
+ has_email : Boolean(patronSvc.current.email() && patronSvc.current.email().match(/.*@.*/)),
has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone())
};