<div dir="ltr">Hey All,<div><br></div><div>I don't believe the filter and feature for Hemlock is making use of the opt-in feature.  </div><div><br></div><div>This is what we have tested before in regards to the checkout,due.hemlock hook created.  Based on the example you sent, Josh, it seems to be using that kind of syntax from the Trigger.PM file you shared.</div><div><br></div><div>"checkout.due.hemlock": {<br>"context_org": "circ_lib",<br>"filter": {<br>"-exists": {<br>"from": "aus",<br>"select": [<br>"name",<br>"usr"<br>],<br>"where": {<br>"name": "hemlock.push_notification_data",<br>"usr": {<br>"=": {<br>"+circ": "usr"</div><div><br></div><div>But I am still a novice at understanding the filters.  Please let me know if I'm missing something!</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 21, 2024 at 3:01 PM Morgan, Michele via Eg-newdevs <<a href="mailto:eg-newdevs@list.evergreen-ils.org">eg-newdevs@list.evergreen-ils.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail_default" style="font-family:verdana,sans-serif">Josh,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks for the reminder about the opt-in user settings in action triggers! We use the opt-in in a few triggers, and I am now thinking that Gina actually doesn't need a filter, but needs to fill in the following fields in the trigger event definition to limit events to just the users that have that setting:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Opt-in User Field = usr</div><div class="gmail_default" style="font-family:verdana,sans-serif">Opt-in Setting Type = hemlock.push_notification_data</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Hope this works!</div></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Michele</div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:verdana,sans-serif">--</span><br></div><div><font face="verdana, sans-serif">Michele M. Morgan, <span style="font-size:12.8px">Systems Support Specialist<br></span></font></div><div><span style="font-size:12.8px"><font face="verdana, sans-serif">North of Boston Library Exchange, Danvers Massachusetts</font></span></div><div><span style="font-size:12.8px"><a href="mailto:mmorgan@noblenet.org" target="_blank"><font face="verdana, sans-serif">mmorgan@noblenet.org</font></a></span></div><div><br></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 21, 2024 at 12:36 PM Josh Stompro via Eg-newdevs <<a href="mailto:eg-newdevs@list.evergreen-ils.org" target="_blank">eg-newdevs@list.evergreen-ils.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Is the action_trigger definition for this making use of the opt-in user setting feature?<div><br></div><div>I have this memory of running into problems in that case because the opt-in feature overwrites any existing "-exists" clause.  But I haven't looked into that since 2016, and didn't get any responses so I may have been mistaken about having multiple "-exists" being a problem.</div><div><br></div><div><a href="http://list.evergreen-ils.org/pipermail/open-ils-dev/2016-October/010239.html" target="_blank">http://list.evergreen-ils.org/pipermail/open-ils-dev/2016-October/010239.html</a></div><div><br></div><div>Here is where the opt in setting info gets merged into the json filter.</div><div><a href="https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm;hb=HEAD#l489" target="_blank">https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm;hb=HEAD#l489</a></div><div><br></div><div><br></div><div>Josh</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2024 at 4:01 PM Terran McCanna via Eg-newdevs <<a href="mailto:eg-newdevs@list.evergreen-ils.org" target="_blank">eg-newdevs@list.evergreen-ils.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Attached is the example that Gina provided that isn't working properly. <br></div><div><br></div><div>I'm trying to puzzle through the logic, but in fm_IDL.xml the "name" field in the "aus" class is a link, so would the where clause need to be the id of the "hemlock.push_notification_data" user setting? (eg, "name": "33")</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br clear="all"></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr" style="margin-left:30.75pt" align="left"><table style="border:none;border-collapse:collapse"><colgroup><col width="76"><col width="7"><col width="64"><col width="437"></colgroup><tbody><tr style="height:74.25pt"><td colspan="2" style="vertical-align:top;overflow:hidden"><p dir="ltr" style="line-height:1.2;text-align:right;margin-top:0pt;margin-bottom:0pt"><a href="https://georgialibraries.org/" style="text-decoration:none" target="_blank"><span style="font-size:11pt;font-family:Arial,sans-serif;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:75px;height:75px"><img alt="logo with link to Georgia Public Library Service website" src="https://lh7-us.googleusercontent.com/7iakLpvBVw94n5VZhrTwpD9vZUyz1VQ0lMyVAqyNNUaT9HJowpRoWOfVcBKHDEMHUDKwNEnjOLpAyz9mETAcGxszeJGJcxDQjrzZSqxEh5DkL2NjTi7gs9Kx8RMN_4ap0t19KLBq70WnyGNunRrYWek" width="75" height="75" style="margin-left: 0px; margin-top: 0px;"></span></span></a></p></td><td colspan="2" style="vertical-align:top;padding:5pt;overflow:hidden"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13pt;font-family:Verdana,sans-serif;color:rgb(30,67,155);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Terran McCanna, </span><span style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(30,67,155);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">PINES Program Manager<br></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"></p><hr><p></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span><span style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(30,67,155);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Georgia Public Library Service</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(30,67,155);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">2872 Woodcock Blvd, Suite 250 | Atlanta, GA 30341</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(30,67,155);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">(404) 235-7138 | <a href="mailto:tmccanna@georgialibraries.org" target="_blank">tmccanna@georgialibraries.org</a></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(30,67,155);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><a href="https://help.georgialibraries.org" target="_blank">https://help.georgialibraries.org</a> | <a href="mailto:help@georgialibraries.org" target="_blank">help@georgialibraries.org</a><br></span></p></td></tr><tr style="height:36pt"><td colspan="2" style="vertical-align:top;overflow:hidden"><br></td><td colspan="2" style="vertical-align:top;padding:5pt;overflow:hidden"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><a href="https://www.facebook.com/georgialibraries" style="text-decoration:none" target="_blank"><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:36px;height:36px"><img alt="logo with link to Georgia Public Library Service Facebook page" src="https://lh7-us.googleusercontent.com/6w_oGavvmanlJjopnWjQasuhDGEEJEVEE84xTswu-HcAjkQQP6stG0dYmWee4gqG7tpuLb9dxEu_kkdKn1w1ZqNO5TG9JSCU55rEOq6s7B-1vDTaEJC4b6iAr_8EJKpJmPbMBRpL6xQuI7A-_thfq1k" width="36" height="36" style="margin-left: 0px; margin-top: 0px;"></span></span></a><a href="https://www.instagram.com/georgialibraries/" style="text-decoration:none" target="_blank"><span style="font-size:11pt;font-family:Verdana,sans-serif;color:rgb(17,85,204);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:34px;height:34px"><img alt="logo with link to Georgia Public Library Service Instagram page" src="https://lh7-us.googleusercontent.com/ets1wTG4VgvmoyrYQy9d1VgccTloy5BMwZp38qoKrBB9Cel8Yw9vCat-yv4MAnndeSReKSMsOUYyRKCoAx3ukwt-hbFrz5a2PIQILIgADpp2lDcYDAOyynfBANukdYsaDcZHtI6ojUb6XU3_xxFYDmI" width="34" height="34" style="margin-left: 0px; margin-top: 0px;"></span></span></a><a href="https://www.linkedin.com/company/georgia-public-library-service/" style="text-decoration:none" target="_blank"><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:36px;height:36px"><img alt="logo with link to Georgia Public Library Service LinkedIn page" src="https://lh7-us.googleusercontent.com/L1Fdzro7GGVA7PGFptQUgxZyXHP2qFoIXReXmf32F9YuOEssDwwAbKl1978orkQlmrnGO_Wg0TLmUrfZyXtHj6-sp3_QjbOKJ6Sq8TlpLxtYC7yHhSCUv7HWDK2GhdovAjNNHAt-wnTj8HZ0IGCgT38" width="36" height="36" style="margin-left: 0px; margin-top: 0px;"></span></span></a><a href="https://www.threads.net/@georgialibraries" style="text-decoration:none" target="_blank"><span style="font-size:11pt;font-family:Verdana,sans-serif;color:rgb(17,85,204);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:34px;height:34px"><img alt="logo with link to Georgia Public Library Service Threads page" src="https://lh7-us.googleusercontent.com/yTssqUWYNvGAfzsSQez79IscEAuQINHwN1vUnHkuedcP5wCIUa_v-zeD2qRUgnMkG9xin18BP9LNgTL05aShQACXP5P9cowXyP8m5Rg4fUciXmByursG-41yt_6wHdqlSo847rFUiRk3GJ7TfPI6hnI" width="34" height="34" style="margin-left: 0px; margin-top: 0px;"></span></span></a></p></td></tr><tr style="height:1.06581e-14pt"><td colspan="2" style="vertical-align:top;overflow:hidden"><br></td><td colspan="2" style="vertical-align:top;padding:5pt;overflow:hidden"><br></td></tr></tbody></table></div><br><br></div></div></div></div>
_______________________________________________<br>
Eg-newdevs mailing list<br>
<a href="mailto:Eg-newdevs@list.evergreen-ils.org" target="_blank">Eg-newdevs@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs</a><br>
</blockquote></div>
_______________________________________________<br>
Eg-newdevs mailing list<br>
<a href="mailto:Eg-newdevs@list.evergreen-ils.org" target="_blank">Eg-newdevs@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs</a><br>
</blockquote></div>
_______________________________________________<br>
Eg-newdevs mailing list<br>
<a href="mailto:Eg-newdevs@list.evergreen-ils.org" target="_blank">Eg-newdevs@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4x7mLZUd-WLMHJdQtvP0WtZOtfuHM4x-XBTLLPimSzmWnnqN0CSxsA-t0XGMU_umJov27xigGY5OM_9"><br></div>Gina Monti (she/her)<div><div>Evergreen Systems Manager</div><div>Bibliomation, Inc.</div><div>(203) 577-4070 ext. 109</div></div><div>English, American Sign Language</div></div></div>