Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
}
- $('holds_phone').value = holdArgs.recipient.day_phone();
+ $('holds_phone').value = (holdArgs.recipient.day_phone() ? holdArgs.recipient.day_phone() : '');
var pref = holdArgs.recipient.prefs[PREF_DEF_PHONE];
if(pref) $('holds_phone').value = pref;
appendClear( $('holds_email'), text(holdArgs.recipient.email()));
unHideMe($('myopac.expired.alert'));
}
- var iv1 = user.ident_value()+'';
- if (iv1.length > 4 && iv1.match(/\d{4}/)) iv1 = iv1.substring(0,4) + '***********';
-
+ var iv1 = '';
+ if (user.ident_value()) {
+ iv1 = user.ident_value()+'';
+ if (iv1.length > 4 && iv1.match(/\d{4}/)) iv1 = iv1.substring(0,4) + '***********';
+ }
appendClear($('myopac_summary_prefix'),text(user.prefix()));
appendClear($('myopac_summary_first'),text(user.first_given_name()));