<div dir="ltr">Hello Brian,<div><br></div><div>okay, thank you for the update on this. I thought it was a bit strange. I'll try your code out when ever I can and get back to you on it.</div><div><br></div><div>Thank you,</div><div><br></div><div>Carlos Lemus</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Carlos Lemus</div><div style="font-size:12.8px"><font size="1">Application Programmer, Special Collections Technical Services</font></div><div style="font-size:12.8px"><font size="1">University Libraries, University of Nevada, Las Vegas</font></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Nov 10, 2015 at 2:54 PM, Carlos Lemus <span dir="ltr"><<a href="mailto:carlos.lemus@unlv.edu" target="_blank">carlos.lemus@unlv.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>I'm adding additional forms for the agent records, and on the sidebar the anchor will display something like #agent_family_places_ depending on the parent but the actual section in the record form will have id of id="agent_places_ </div><div><a href="https://github.com/l3mus/ArchivesSpace-authority-project/tree/master/place" target="_blank">https://github.com/l3mus/ArchivesSpace-authority-project/tree/master/place</a><br></div><div><br></div><div>I think it might be because the agent _forms.html.erb calls </div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:11.2px;white-space:pre-wrap"><%=</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:11.2px;white-space:pre-wrap"> form_plugins_for(<span style="color:rgb(24,54,145)"><span>"</span>agent<span>"</span></span>, form) </span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:11.2px;white-space:pre-wrap"><span>%</span>></span></div><div><br></div><div>and that function</div><div> <a href="http://www.rubydoc.info/github/archivesspace/archivesspace/PluginHelper%3Aform_plugins_for" target="_blank">http://www.rubydoc.info/github/archivesspace/archivesspace/PluginHelper%3Aform_plugins_for</a></div><pre style="color:rgb(0,0,0);font-size:13px"> <span>result</span> <span><<</span> <span>render_aspace_partial</span><span>(</span><span style="color:rgb(197,6,11)">:partial</span> <span>=</span><span>></span> <span style="color:rgb(3,106,7)">"shared/subrecord_form"</span><span>,</span>
                     <span style="color:rgb(197,6,11)">:locals</span> <span>=</span><span>></span> <span>{</span><span style="color:rgb(197,6,11)">:form</span> <span>=</span><span>></span> <span>context</span><span>,</span> <span style="color:rgb(197,6,11)">:name</span> <span>=</span><span>></span> <span>parent</span><span>[</span><span style="color:rgb(3,106,7)">'name'</span><span>]</span><span>,</span>
                       <span style="color:rgb(197,6,11)">:cardinality</span> <span>=</span><span>></span> <span>parent</span><span>[</span><span style="color:rgb(3,106,7)">'cardinality'</span><span>]</span><span>.</span><span>intern</span><span>,</span> <span style="color:rgb(197,6,11)">:plugin</span> <span>=</span><span>></span> <span style="color:rgb(0,0,255)">true</span><span>}</span><span>)</span>
</pre><div>does not include the section id when rendering the aspace partial like it does for the other forms</div><div><table style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:12.1333px"><tbody><tr><td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> <span><%=</span><span> render_aspace_partial <span style="color:rgb(0,134,179)">:partial</span> => <span style="color:rgb(24,54,145)"><span>"</span>shared/subrecord_form<span>"</span></span>, <span style="color:rgb(0,134,179)">:locals</span> => {<span style="color:rgb(0,134,179)">:form</span> => form, <span style="color:rgb(0,134,179)">:name</span> => <span style="color:rgb(24,54,145)"><span>"</span>rights_statements<span>"</span></span>,<font color="#ff0000"> </font><font color="#000000" style="background-color:rgb(255,0,0)"><span>:section_id</span> => <span><span>"</span><span>#{</span><span><span>@agent</span>.agent_type</span><span><span>}</span></span>_rights_statements<span>"</span></span>} </font></span><span style="background-color:rgb(255,0,0)"><font color="#000000"><span>%</span>>

</font></span></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">  </td></tr></tbody></table></div><div><div>I think it works fine for plugins like HelloWorld because they don't need to worry about a parent since they only attach to the accessions and resources. Is there a work around for this? It's a small issue but essentially prevents user feasibility.</div><div><br></div><div>Thank you,</div><div><br></div><div><div dir="ltr"><div style="font-size:12.8px">Carlos Lemus</div><div style="font-size:12.8px"><font size="1">Application Programmer, Special Collections Technical Services</font></div><div style="font-size:12.8px"><font size="1">University Libraries, University of Nevada, Las Vegas</font></div><div style="font-size:12.8px"><font size="1"><a href="mailto:cyndi.shein@unlv.edu" style="color:rgb(17,85,204)" target="_blank">carlos.lemus@unlv.edu</a></font></div><div style="font-size:12.8px"><br></div></div></div>
</div></div>
</blockquote></div><br></div>