<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>The documentation is wrong. Calling the define_field method
      automagically adds fields to the drop-downs in staff interface
      advanced search. But the fields in the drop-downs in the public
      user interface are hardcoded in the following locations:</p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/search?q=%3Afield_options+repo%3Aarchivesspace%2Farchivesspace+path%3A%2F%5Epublic%5C%2Fapp%5C%2F%2F+&type=code">https://github.com/search?q=%3Afield_options+repo%3Aarchivesspace%2Farchivesspace+path%3A%2F%5Epublic%5C%2Fapp%5C%2F%2F+&type=code</a></p>
    <p>You either need to override those templates in your plug-in, or
      override the shared/search template to ignore the field_options
      variable that those templates pass to it. Those templates might
      change in future releases, so overriding them now means having to
      review them whenever you upgrade in the future.<br>
    </p>
    <p>Andrew.<br>
    </p>
    <p> <br>
    </p>
    <div class="moz-cite-prefix">On 25/07/2023 18:24, Norton, Channing
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:PH0PR07MB843128615C3168E41FF571D0CE03A@PH0PR07MB8431.namprd07.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">All,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Our institution is attempting to use some
          of the fields in the Extended Advanced Search plugin (<a href="https://github.com/hudmol/extended_advanced_search" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/hudmol/extended_advanced_search</a>)
          in the PUI in addition to the staff interface. As it stands,
          we have the plugin working fine in a test environment for the
          staff interface. We’ve edited a few stanzas in the main file
          to include public visibility:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="text-indent:.5in">AdvancedSearch.define_field(:name
          => 'use_restrictions', :type => :boolean, :visibility
          => [:staff,:public], :solr_field => 'use_restrictions')<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">That said, this does not appear to have the
          desired effect. Namely, this field will not be visible in the
          PUI, though it remains visible in the staff interface. If I’m
          understanding the documentation here:<br>
          <a href="https://archivesspace.github.io/tech-docs/customization/plugins.html" moz-do-not-send="true" class="moz-txt-link-freetext">https://archivesspace.github.io/tech-docs/customization/plugins.html</a><o:p></o:p></p>
        <p class="MsoNormal">It SHOULD be. Does anyone have any insight
          here?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Channing Norton (He/Him/They/Them)<o:p></o:p></p>
        <p class="MsoNormal">Senior Programmer Analyst<o:p></o:p></p>
        <p class="MsoNormal">Digital Initiatives<o:p></o:p></p>
        <p class="MsoNormal">University of Rochester<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">On Campus Tues, Thurs<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
    </blockquote>
  </body>
</html>