<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Ah, awesome Payten. </p>
<p>I couldn't get this to replicate and was thinking it was something in the backend.
</p>
<p><br>
</p>
<p>Will apply this and include it in the next release. </p>
<p>Thanks!<br>
</p>
<p>b,chris. <br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat  | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<div style="word-wrap:break-word">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Payten Giles <payten.giles@gmail.com><br>
<b>Sent:</b> Wednesday, November 12, 2014 5:44 AM<br>
<b>To:</b> Chris Fitzpatrick; Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] reordering objects in resource records</font>
<div> </div>
</div>
<div>Hi there Chris, Allyson,
<div class=""><br class="">
</div>
<div class="">Eavesdropping a little bit and the guilt of writing this code became too much! </div>
<div class=""><br class="">
</div>
<div class="">Chris, this looks like a little bug in the tree.js where we aren’t checking the correct node.. the comment says the right thing while the code does the wrong thing.  Here’s a gist of a potential patch:</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://gist.github.com/payten/649819e7f08d0de3e945" class="">https://gist.github.com/payten/649819e7f08d0de3e945</a></div>
<div class=""><br class="">
</div>
<div class="">To replicate I have a Resource hierarchy something like this:</div>
<div class=""><br class="">
</div>
<div class="">- Resource </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>- AO Parent</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>- AO Child 1</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>- AO Child 2</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>- AO Child 3</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>- AO Child 4</div>
<div class=""><br class="">
</div>
<div class="">I select and go to edit ‘AO Child 3’.  When that form is visible I drag ‘AO Child 4’ above to become the first sibling.  I then continue to edit ‘AO Child 3’ and refresh the page.  ‘A0 Child 3’ is now positioned directly under ‘Resource’.</div>
<div class=""><br class="">
</div>
<div class="">Happy to put together a more formal pull request if you like.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Payten</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 11 Nov 2014, at 12:53 am, Chris Fitzpatrick <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" class="">Chris.Fitzpatrick@lyrasis.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" class="" style="font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">Hi Allyson,</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Unfortuantely, I haven't been able to replicate the problem of component movements not sticking. See =></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><a id="lnk26948" href="https://drive.google.com/file/d/0BzRF7huQ7tqKS29oM2RZZWNubGc/view?usp=sharing" class="">https://drive.google.com/file/d/0BzRF7huQ7tqKS29oM2RZZWNubGc/view?usp=sharing</a> )</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">In edit mode, I'm able to drag and drop components, reload the page, or go to the view page.</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Is this happening for every record every time for you? Or is it an infrequent thing?</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Not doubting you ( I promise! ) , just trying to see when this is happening...</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">b,chris.<span class="Apple-converted-space"> </span><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div id="Signature" class="">
<div name="divtagdefaultwrapper" class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<div class="BodyFragment"><font class="" size="2">Chris Fitzpatrick | Developer, ArchivesSpace<br class="">
Skype: chrisfitzpat  | Phone: 918.236.6048<br class="">
<a id="NoLP" href="http://archivesspace.org/" class="">http://archivesspace.org/</a><br class="">
</font></div>
</div>
</div>
<div class="" style="color:rgb(33,33,33)">
<hr tabindex="-1" class="" style="display:inline-block; width:597.796875px">
<div id="divRplyFwdMsg" dir="ltr" class=""><font class="" style="font-size:11pt" face="Calibri, sans-serif"><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
 <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Allyson Smally <<a href="mailto:asmally@colgate.edu" class="">asmally@colgate.edu</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Friday, November 07, 2014 6:04 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group<br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Archivesspace_Users_Group] reordering objects in resource records</font>
<div class=""> </div>
</div>
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">Hello all -<br class="">
<br class="">
</div>
Unfortunately, after upgrading to the newest release, we are still having this problem.<br class="">
</div>
Archival objects are reordering themselves after being edited.<br class="">
<br class="">
</div>
Is anyone else still having this problem? Does anyone know of a solution?<br class="">
<br class="">
</div>
Thanks very much,<br class="">
</div>
Allyson<br class="">
<br class="">
Allyson E. Smally<br class="">
Processing Archivist<br class="">
Colgate University Libraries<br class="">
13 Oak Drive<br class="">
Hamilton, NY 13346<br class="">
(315) 228-7867<br class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Sep 25, 2014 at 8:14 AM, Ben Goldman<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:bmg17@psu.edu" target="_blank" class="">bmg17@psu.edu</a>></span><span class="Apple-converted-space"> </span>wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">
<div class="" style="font-family:georgia,serif; font-size:10pt">
<div class="">Hi Chris,<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Archival object tree. </div>
<div class=""><br class="">
</div>
<div class="">Thanks!</div>
<div class="">-Ben</div>
<div class=""><br class="">
</div>
<hr class="">
<div class="" style="font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<b class="">From:<span class="Apple-converted-space"> </span></b>"Chris Fitzpatrick" <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank" class="">Chris.Fitzpatrick@lyrasis.org</a>><span class=""><br class="">
<b class="">To:<span class="Apple-converted-space"> </span></b>"Archivesspace Users Group" <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank" class="">archivesspace_users_group@lyralists.lyrasis.org</a>><br class="">
</span><b class="">Sent:<span class="Apple-converted-space"> </span></b>Thursday, September 25, 2014 3:46:10 AM
<div class="">
<div class="h5"><br class="">
<b class="">Subject:<span class="Apple-converted-space"> </span></b>Re: [Archivesspace_Users_Group] reordering objects        in        resource        records<br class="">
<div class=""><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Hey Ben,</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Soon, I promise!</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">But just to check, are you talking about reording the archival object tree for the resource or the order of things like notes and subjects?</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">b,chris.<span class="Apple-converted-space"> </span><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="">
<div class="">
<div class=""><span size="2" class="" style="font-size:small">Chris Fitzpatrick | Developer, ArchivesSpace<br class="">
Skype: chrisfitzpat  | Phone: <a href="tel:918.236.6048" value="+19182366048" target="_blank" class="">918.236.6048</a><br class="">
<a href="http://archivesspace.org/" target="_blank" class="">http://archivesspace.org/</a><br class="">
</span></div>
</div>
</div>
<div class="" style="color:rgb(33,33,33)">
<hr class="" style="display:inline-block; width:583.640625px">
<div dir="ltr" class=""><span face="Calibri, sans-serif" class="" style="font-size:11pt; font-family:Calibri,sans-serif"><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span class="Apple-converted-space"> </span><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
 on behalf of Ben Goldman <<a href="mailto:bmg17@psu.edu" target="_blank" class="">bmg17@psu.edu</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Tuesday, September 23, 2014 10:19 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group<br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Archivesspace_Users_Group] reordering objects in resource records</span>
<div class=""> </div>
</div>
<div class="">
<div class="" style="font-family:georgia,serif; font-size:10pt">
<div class="">Thanks, Allyson. I knew it sounded familiar!<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Do we have an ETA on the next release yet? :)</div>
<div class=""><br class="">
</div>
<div class="">-Ben</div>
<div class=""><br class="">
</div>
<hr class="">
<div class="" style="font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<b class="">From:<span class="Apple-converted-space"> </span></b>"Allyson Smally" <<a href="mailto:asmally@colgate.edu" target="_blank" class="">asmally@colgate.edu</a>><br class="">
<b class="">To:<span class="Apple-converted-space"> </span></b>"Archivesspace Users Group" <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank" class="">archivesspace_users_group@lyralists.lyrasis.org</a>><br class="">
<b class="">Sent:<span class="Apple-converted-space"> </span></b>Tuesday, September 23, 2014 4:15:04 PM<br class="">
<b class="">Subject:<span class="Apple-converted-space"> </span></b>Re: [Archivesspace_Users_Group] reordering objects in resource        records<br class="">
<div class=""><br class="">
</div>
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Hi Ben,<br class="">
<div class=""><br class="">
</div>
</div>
Yes, from what I understand this is a known issue. It has been happening to us a lot as well.<br class="">
</div>
At SAA this August, I was told it would be fixed in the next release.<br class="">
<div class=""><br class="">
</div>
</div>
-Allyson<br class="">
<div class="gmail_extra"><br class="">
Allyson E. Smally<br class="">
Processing Archivist<br class="">
Colgate University Libraries<br class="">
13 Oak Drive<br class="">
Hamilton, NY 13346<br class="">
<a href="tel:%28315%29%20228-7867" target="_blank" class="">(315) 228-7867</a><br class="">
<div class=""><br class="">
</div>
<div class="gmail_quote">On Tue, Sep 23, 2014 at 2:52 PM, Ben Goldman<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:bmg17@psu.edu" target="_blank" class="">bmg17@psu.edu</a>></span><span class="Apple-converted-space"> </span>wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">
<div class="" style="font-family:georgia,serif; font-size:10pt">
<div class="">Hello,</div>
<div class=""><br class="">
</div>
<div class="">I've just experienced an issue and on a cursory search can't tell if it's been noted in PivotalTracker yet or discussed here yet.</div>
<div class=""><br class="">
</div>
<div class="">I've been editing an inventory object-by-object in a resource record, saving each object as I updated it. In one instance I reordered one of the objects by dragging it further down the tree, then continued editing other objects. Then I reached
 an object that could be removed, clicked to delete it,  the resource reloaded in View mode, and the objects appeared to shuffle, and not seemingly in the order I started with. </div>
<div class=""><br class="">
</div>
<div class="">-Ben</div>
<span class=""><span class="" style="color:rgb(136,136,136)">
<div class=""><br class="">
</div>
<div class=""><span class="" style="font-size:small"><span class="" style="font-family:georgia,serif; font-weight:bold">Ben Goldman</span><br class="" style="font-family:georgia,serif">
<span class="" style="font-family:georgia,serif">Digital Records Archivist</span><br class="" style="font-family:georgia,serif">
<span class="" style="font-family:georgia,serif">Penn State University Libraries</span><br class="" style="font-family:georgia,serif">
<span class="" style="font-family:georgia,serif">University Park, PA</span><br class="" style="font-family:georgia,serif">
<span class="" style="font-family:georgia,serif"><a href="tel:814-863-8333" target="_blank" class="">814-863-8333</a><br class="">
<a href="http://www.libraries.psu.edu/psul/speccolls.html" target="_blank" class="">http://www.libraries.psu.edu/psul/speccolls.html</a><br class="">
</span></span><br class="">
</div>
</span></span></div>
</div>
<br class="">
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</blockquote>
</div>
--<span class="Apple-converted-space"> </span><br class="">
<div class="gmail_signature">
<div dir="ltr" class="">Allyson E. Smally<br class="">
Processing Archivist<br class="">
Colgate University Libraries<br class="">
13 Oak Drive<br class="">
Hamilton, NY 13346<br class="">
(315) 228-7867<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Archivesspace_Users_Group
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important"><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a></span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important"><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>