<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">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 class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:11.2px;white-space:pre"><%=</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:11.2px;white-space:pre"> form_plugins_for(<span class="" style="color:rgb(24,54,145)"><span class="">"</span>agent<span class="">"</span></span>, form) </span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:11.2px;white-space:pre"><span class="">%</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">http://www.rubydoc.info/github/archivesspace/archivesspace/PluginHelper%3Aform_plugins_for</a></div><pre class="" style="color:rgb(0,0,0);font-size:13px"> <span class="">result</span> <span class=""><<</span> <span class="">render_aspace_partial</span><span class="">(</span><span class="" style="color:rgb(197,6,11)">:partial</span> <span class="">=</span><span class="">></span> <span class="" style="color:rgb(3,106,7)">"shared/subrecord_form"</span><span class="">,</span>
<span class="" style="color:rgb(197,6,11)">:locals</span> <span class="">=</span><span class="">></span> <span class="">{</span><span class="" style="color:rgb(197,6,11)">:form</span> <span class="">=</span><span class="">></span> <span class="">context</span><span class="">,</span> <span class="" style="color:rgb(197,6,11)">:name</span> <span class="">=</span><span class="">></span> <span class="">parent</span><span class="">[</span><span class="" style="color:rgb(3,106,7)">'name'</span><span class="">]</span><span class="">,</span>
<span class="" style="color:rgb(197,6,11)">:cardinality</span> <span class="">=</span><span class="">></span> <span class="">parent</span><span class="">[</span><span class="" style="color:rgb(3,106,7)">'cardinality'</span><span class="">]</span><span class="">.</span><span class="">intern</span><span class="">,</span> <span class="" style="color:rgb(197,6,11)">:plugin</span> <span class="">=</span><span class="">></span> <span class="" style="color:rgb(0,0,255)">true</span><span class="">}</span><span class="">)</span>
</pre><div>does not include the section id when rendering the aspace partial like it does for the other forms</div><div><table class="" 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 id="LC27" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"> <span class=""><%=</span><span class=""> render_aspace_partial <span class="" style="color:rgb(0,134,179)">:partial</span> => <span class="" style="color:rgb(24,54,145)"><span class="">"</span>shared/subrecord_form<span class="">"</span></span>, <span class="" style="color:rgb(0,134,179)">:locals</span> => {<span class="" style="color:rgb(0,134,179)">:form</span> => form, <span class="" style="color:rgb(0,134,179)">:name</span> => <span class="" style="color:rgb(24,54,145)"><span class="">"</span>rights_statements<span class="">"</span></span>,<font color="#ff0000"> </font><font color="#000000" style="background-color:rgb(255,0,0)"><span class="">:section_id</span> => <span class=""><span class="">"</span><span class="">#{</span><span class=""><span class="">@agent</span>.agent_type</span><span class=""><span class="">}</span></span>_rights_statements<span class="">"</span></span>} </font></span><span class="" style="background-color:rgb(255,0,0)"><font color="#000000"><span class="">%</span>>
</font></span></td></tr><tr><td id="L28" class="" 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 id="LC28" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;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 class="gmail_signature"><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" target="_blank" style="color:rgb(17,85,204)">carlos.lemus@unlv.edu</a></font></div><div style="font-size:12.8px"><br></div></div></div>
</div></div>