[OPEN-ILS-GENERAL] SMS Hold Notifications

Morgan, Michele mmorgan at noblenet.org
Tue Nov 3 10:09:16 EST 2015


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: evergreen at noblenet.org
To: 4135551234 at vtext.com
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
mmorgan at noblenet.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20151103/ac92df2b/attachment.html>


More information about the Open-ils-general mailing list