<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This is a horrible short-term solution, but perhaps you could add something like this in a javscript file…but it sounds like the plugin helper needs to be updated.<div class=""><br class=""></div><div class=""><br class=""></div><div class="">$(function() {</div><div class=""><br class=""></div><div class="">  var agent_type = window.location.pathname.substr(8).replace(/\/.*/, ‘’);</div><div class="">  $(“#agent_places_”).attr(‘id’, agent_type+”_places_”);</div><div class=""><br class=""></div><div class="">});</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 10, 2015, at 5:54 PM, Carlos Lemus <<a href="mailto:carlos.lemus@unlv.edu" class="">carlos.lemus@unlv.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello, <div class=""><br class=""></div><div class="">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 class=""><a href="https://github.com/l3mus/ArchivesSpace-authority-project/tree/master/place" class="">https://github.com/l3mus/ArchivesSpace-authority-project/tree/master/place</a><br class=""></div><div class=""><br class=""></div><div class="">I think it might be because the agent _forms.html.erb calls </div><div class=""><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 class=""><br class=""></div><div class="">and that function</div><div class=""> <a href="http://www.rubydoc.info/github/archivesspace/archivesspace/PluginHelper%3Aform_plugins_for" class="">http://www.rubydoc.info/github/archivesspace/archivesspace/PluginHelper%3Aform_plugins_for</a></div><pre class="" style="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 class="">does not include the section id when rendering the aspace partial like it does for the other forms</div><div class=""><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 class=""><tr class=""><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" class=""> </font><font style="background-color:rgb(255,0,0)" class=""><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 class=""><span class="">%</span>>

</font></span></td></tr><tr class=""><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; 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 class=""><div class="">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 class=""><br class=""></div><div class="">Thank you,</div><div class=""><br class=""></div><div class="gmail_signature"><div dir="ltr" class=""><div style="font-size:12.8px" class="">Carlos Lemus</div><div style="font-size:12.8px" class=""><font size="1" class="">Application Programmer, Special Collections Technical Services</font></div><div style="font-size:12.8px" class=""><font size="1" class="">University Libraries, University of Nevada, Las Vegas</font></div><div style="font-size:12.8px" class=""><font size="1" class=""><a href="mailto:cyndi.shein@unlv.edu" target="_blank" style="color:rgb(17,85,204)" class="">carlos.lemus@unlv.edu</a></font></div><div style="font-size:12.8px" class=""><br class=""></div></div></div>
</div></div>
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></div></body></html>