We are looking at making improvements to our SMS hold notification
template. Right now we're using the out of the box template in our trigger:

[%- USE date -%]
[%- user = target.0.usr -%]
From: [%- params.sender_email || default_sender %]
To: [%- params.recipient_email ||
helpers.get_sms_gateway_email(target.0.sms_carrier,target.0.sms_notify) %]
Subject: [% target.size %] hold(s) ready

[% FOR hold IN target %][%-
  bibxml = helpers.xml_doc( hold.current_copy.call_number.record.marc );
  title = "";
  FOR part IN bibxml.findnodes('//*[@tag="245"]/*[@code="a"]');
    title = title _ part.textContent;
  END;
  author = bibxml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent;
%]TITLE:[% title %] @ [% hold.pickup_lib.name %]
[% END %]

Which generates something like this:

From: [email protected]
To: [email protected]
Subject: 1 hold(s) ready

TITLE:Life, the universe and everything @ Danvers


One issue we are having is with replies to these messages. A patron may
reply asking to cancel the request, but there's no way to identify the hold
from their reply.

If you have made improvements to your SMS template, can you share what you
have done?

Thanks,
Michele
--
Michele M. Morgan, Technical Assistant
North of Boston Library Exchange, Danvers Massachusetts
[email protected]

Reply via email to