item_form is specified, use item_type(s)--language
*/
+var noEmailMessage;
+
function holdsHandleStaff() {
swapCanvas($('xulholds_box'));
$('xul_recipient_barcode').focus();
holdArgs = (args) ? args : holdArgs;
+ if(!noEmailMessage)
+ noEmailMessage = $('holds_email').removeChild($('holds.no_email'));
+
if(isXUL() && holdArgs.recipient == null
&& holdArgs.editHold == null) {
holdsHandleStaff();
}
}
- if(!G.user.email())
+ if(!G.user.email()) {
$('holds_enable_email').checked = false;
+ $('holds_enable_email').disabled = true;
+ var n = noEmailMessage.cloneNode(true);
+ appendClear( $('holds_email'), n);
+ unHideMe(n);
+ $('holds.no_email.my_account').setAttribute('href', buildOPACLink({page:MYOPAC},null,true));
+ }
if(!$('holds_phone').value)
$('holds_enable_phone').checked = false;
<tr>
<td class='holds_cell'>&opac.holds.concactEmail;:</td>
- <td class='holds_cell' id='holds_email'> </td>
+ <td class='holds_cell' id='holds_email'>
+ <span class='hide_me' id='holds.no_email'>
+ (See <a class='classic_link' id='holds.no_email.my_account'>My Account</a> for setting your email address)
+ </span>
+ </td>
</tr>
<tr>
<td class='holds_cell'>Enable email notifications for this hold?</td>