<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Brilliant, that makes a lot of sense! Patron records are now updating for me.<br>
Thank you for your help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Evergreen-general <evergreen-general-bounces@list.evergreen-ils.org> on behalf of Mike Rylander <mrylander@gmail.com><br>
<b>Date: </b>Wednesday, 10 February 2021 at 16:04<br>
<b>To: </b>Evergreen Discussion Group <evergreen-general@list.evergreen-ils.org><br>
<b>Subject: </b>Re: [Evergreen-general] How to apply ischanged, isnew to osrf-http-translator reuqests<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Hi Kieran,<br>
<br>
Evergreen's Fieldmapper code tacks those onto the end of the object in<br>
the order: isnew, ischanged, isdeleted.  It's important to note that<br>
while you can skip any trailing null fields to save on data transfer<br>
size, you will need to fill those in in order to use isnew, ischanged,<br>
or isdeleted.<br>
<br>
So, if you're using the xml or js fieldmapper to find the correct<br>
array positions for each field, isnew would be -- for the copy of<br>
fm_IDL.xml I have in front of me ATM -- at array index 73 (counting<br>
from 0), ischanged would be at index 74.<br>
<br>
HTH,<br>
<br>
--<br>
Mike Rylander<br>
 | Research and Development Manager<br>
 | Equinox Open Library Initiative<br>
 | phone:  1-877-OPEN-ILS (673-6457)<br>
 | email:  miker@equinoxinitiative.org<br>
 | web:  <a href="http://equinoxinitiative.org">http://equinoxinitiative.org</a><br>
<br>
On Wed, Feb 10, 2021 at 10:50 AM Kieran Pearce <kieran@communico.us> wrote:<br>
><br>
> Hi Jason,<br>
><br>
><br>
><br>
> This is an admin/staff user editing a patron user. The token is generated using open-ils.auth.login with admin credentials.<br>
><br>
><br>
><br>
><br>
><br>
> From: Evergreen-general <evergreen-general-bounces@list.evergreen-ils.org> on behalf of Jason Etheridge <jason@equinoxinitiative.org><br>
> Date: Wednesday, 10 February 2021 at 15:36<br>
> To: Evergreen Discussion Group <evergreen-general@list.evergreen-ils.org><br>
> Subject: Re: [Evergreen-general] How to apply ischanged, isnew to osrf-http-translator reuqests<br>
><br>
> Hi Kieran,<br>
><br>
> Just a sanity check; you're not trying to have a user edit their own account?<br>
><br>
> -- Jason<br>
><br>
> On Wed, Feb 10, 2021 at 4:06 AM Kieran Pearce <kieran@communico.us> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> ><br>
> ><br>
> > Trying to update patron record details with the open-ils.actor.patron.update function. When making a request to change first_given_name or email it returns the original unchanged record.<br>
> ><br>
> > We understand that to change details that the ischanged function should be triggered. Could someone please explain in simple terms how our request below should be modified so that it triggers ischanged?<br>
> ><br>
> ><br>
> ><br>
> > curl --location --request POST '<a href="https://evergreen.lib.in.us/osrf-http-translator">https://evergreen.lib.in.us/osrf-http-translator</a>' \<br>
> ><br>
> > --header 'X-OpenSRF-service: open-ils.actor' \<br>
> ><br>
> > --header 'Content-Type: text/plain' \<br>
> ><br>
> > --data-raw 'osrf-msg=[<br>
> ><br>
> >   {"__c":"osrfMessage","__p":<br>
> ><br>
> >     {"threadTrace":03,"type":"REQUEST","payload":<br>
> ><br>
> >       {"__c":"osrfMethod","__p":<br>
> ><br>
> >         {"method":"open-ils.actor.patron.update","params":["de11763358b0ef1e006a91e2eeb5ed18", {"__c":"au",,"__p":[[{"__p":["Mailing","Plainfield","US",null,1686689,"46168","IN","1121 STAFFORD RD.",null,4538858,"t","f",null,"f"],"__c":"aua"}],[{"__p":[],"__c":"ac"}],null,null,null,[{"__p":[],"__c":"aus"},{"__p":[],"__c":"aus"}],[],[],null,[],null,null,"t","Dummy
 account1. MS 1/7/2019","f",{"__p":[],"__c":"aua"},{"__p":[],"__c":"ac"},0,0,"2019-01-07T10:10:10-0500","0.00",null,"1900-01-01","test1@test.us",null,"2023-01-15T10:49:20-0500","TEST","STAFF1",37,4538858,1,null,null,null,"1611258822.5923718994.7288487182",{"__p":[],"__c":"aua"},"f",1,null,null,null,null,44,null,1,null,"f",3694213,"21208049372372",null,"f","2021-01-21T14:53:42-0500",null,null,null,null,null,null,null,null,"f",null,null,null,null,null,null,null,null,null,[{"__c":"auact","__p":[]}]]}]}<br>
> ><br>
> >       },"locale":"en-US"<br>
> ><br>
> >     }<br>
> ><br>
> >   }<br>
> ><br>
> > ]'<br>
> ><br>
> ><br>
> > Thank you for your help,<br>
> ><br>
> > Kind Regards,<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Evergreen-general mailing list<br>
> > Evergreen-general@list.evergreen-ils.org<br>
> > <a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general">
http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><br>
><br>
><br>
><br>
> --<br>
> Jason Etheridge<br>
> Senior Developer<br>
> Equinox Open Library Initiative<br>
> phone:  1-877-OPEN-ILS (673-6457)<br>
> email:  jason@EquinoxInitiative.org<br>
> web:  <a href="http://EquinoxInitiative.org">http://EquinoxInitiative.org</a><br>
> _______________________________________________<br>
> Evergreen-general mailing list<br>
> Evergreen-general@list.evergreen-ils.org<br>
> <a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general">
http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><br>
><br>
> _______________________________________________<br>
> Evergreen-general mailing list<br>
> Evergreen-general@list.evergreen-ils.org<br>
> <a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general">
http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><br>
_______________________________________________<br>
Evergreen-general mailing list<br>
Evergreen-general@list.evergreen-ils.org<br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><o:p></o:p></p>
</div>
</div>
</body>
</html>