<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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" 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; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Allyson,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Unfortuantely, I haven't been able to replicate the problem of component movements not sticking. See =></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><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 style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">In edit mode, I'm able to drag and drop components, reload the page, or go to the view page.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Is this happening for every record every time for you? Or is it an infrequent thing?</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Not doubting you ( I promise! ) , just trying to see when this is happening...</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">b,chris.<span class="Apple-converted-space"> </span><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=""><div class="BodyFragment"><font size="2" class="">Chris Fitzpatrick | Developer, ArchivesSpace<br class="">Skype: chrisfitzpat  | Phone: 918.236.6048<br class=""><a href="http://archivesspace.org/" class="">http://archivesspace.org/</a><br class=""></font></div></div></div><div style="color: rgb(33, 33, 33);" class=""><hr tabindex="-1" style="display: inline-block; width: 597.796875px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><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 style="font-family: georgia, serif; font-size: 10pt;" class=""><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 style="font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt;" class=""><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 style="margin-top: 0px; margin-bottom: 0px;" class="">Hey Ben,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Soon, I promise!</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">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 style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">b,chris.<span class="Apple-converted-space"> </span><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div class=""><div class=""><div class=""><span size="2" style="font-size: small;" class="">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 style="color: rgb(33, 33, 33);" class=""><hr style="display: inline-block; width: 583.640625px;" class=""><div dir="ltr" class=""><span face="Calibri, sans-serif" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><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 style="font-family: georgia, serif; font-size: 10pt;" class=""><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 style="font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt;" class=""><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 style="font-family: georgia, serif; font-size: 10pt;" class=""><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 style="color: rgb(136, 136, 136);" class=""><div class=""><br class=""></div><div class=""><span style="font-size: small;" class=""><span style="font-family: georgia, serif; font-weight: bold;" class="">Ben Goldman</span><br style="font-family: georgia, serif;" class=""><span style="font-family: georgia, serif;" class="">Digital Records Archivist</span><br style="font-family: georgia, serif;" class=""><span style="font-family: georgia, serif;" class="">Penn State University Libraries</span><br style="font-family: georgia, serif;" class=""><span style="font-family: georgia, serif;" class="">University Park, PA</span><br style="font-family: georgia, serif;" class=""><span style="font-family: georgia, serif;" class=""><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 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br 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; -webkit-text-stroke-width: 0px;" class=""><span 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Archivesspace_Users_Group mailing list</span><br 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; -webkit-text-stroke-width: 0px;" class=""><span 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a></span><br 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; -webkit-text-stroke-width: 0px;" class=""><span 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><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></body></html>