<p>Hi Chris,</P>
<p> </P>
<p>This email was I think, sent to me erroneously.</P>
<p> </P>
<p>Just fyi.</P>
<p> </P>
<p>Sincerely,</P>
<p>Liz<br><br></P>
Liz Ruth-Abramian </ADDRESS><br>
Archivist/Librarian Los Angeles Maritime Museum </ADDRESS><br>
Berth 84 Foot of Sixth Street San Pedro, CA 90731 </ADDRESS><br>
T. 310-548-7618 x. 215 F. 310-832-6537 </ADDRESS><br>
website: lamaritimemuseum.org </ADDRESS><br>
blog: http://www.maritimehistoryadventures.blogspot.com</ADDRESS><br><br><b>----- Original Message -----</B><br><b>From:</B> Chris Fitzpatrick [mailto:Chris.Fitzpatrick@lyrasis.org]<br><b>To:</B> archivesspace_users_group@lyralists.lyrasis.org<br><b>Sent:</B> Fri, 14 Mar 2014 09:40:05 +0000<br><b>Subject:</B> Re: [Archivesspace_Users_Group] construct unique ref IDs<br><br>
<style type="text/css"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></STYLE>
<div style="BACKGROUND-COLOR: #ffffff; FONT-FAMILY: Calibri,Arial,Helvetica,sans-serif; COLOR: #000000; FONT-SIZE: 12pt">
<p><br></P>
<p>Hi Ben,<br></P>
<p><br></P>
<p>Yes, the refid rules have been implemented as a plugin. The documentation is here : <br></P>
<p><br></P>
<p><a href="https://github.com/archivesspace/archivesspace/tree/master/plugins/refid_rules" target='_blank'>https://github.com/archivesspace/archivesspace/tree/master/plugins/refid_rules</A><br></P>
<p><br></P>
<p>So, to enable this, edit the config/config.rb file to load the plugin (about line 102) : <br></P>
<p><br></P>
<p>AppConfig[:plugins] = ['refid_rules', 'local']<br></P>
<p><br></P>
<p>Then, define the rule that you want to use in the config/config.rb. <br></P>
<p><br></P>
<p>For example: <br></P>
<p>AppConfig[:refid_rule] = "<%= repository['repo_code'] %>_<%= resource['formatted_id'] %>_<%= SecureRandom.hex %>"<br></P>
<p><br></P>
<p>This is using a templating languaged call ERB, so you can call variables with-in a <%= %> block. You can do something like:<br></P>
<p><br></P>
<p>AppConfig[:refid_rule] = "Bananas_<%= SecureRandom.hex %>"<br></P>
<p><br></P>
<p>Which would generate a RefID like "Bananas_" + a randomly generated hexadecimal. <br></P>
<p><br></P>
<p>Does this make sense?<br></P>
<p>Let me know if you have any questions...<br></P>
<p><br></P>
<p>best, chris. <br></P>
<p><br></P>
<p><br></P>
<div>
<p><br></P>
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | chris.fitzpatrick@lyrasis.org<br>Developer, ArchivesSpace<br>http://archivesspace.org/<br></DIV></FONT></DIV></DIV>
<div style="COLOR: #282828">
<hr style="WIDTH: 98%; DISPLAY: inline-block">
<div id="divRplyFwdMsg"><font face="Calibri, sans-serif" style="FONT-SIZE: 11pt" color="#000000"><b>From:</B> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Ben Goldman <bmg17@psu.edu><br><b>Sent:</B> Thursday, March 13, 2014 5:04 PM<br><b>To:</B> archivesspace users group<br><b>Subject:</B> [Archivesspace_Users_Group] construct unique ref IDs</FONT>
<div> </DIV></DIV>
<div>
<div style="FONT-FAMILY: georgia, serif; COLOR: #000000; FONT-SIZE: 10pt">
<div>Hello,</DIV>
<div><br></DIV>
<div>I see this made it into the newest release, <a href="https://www.pivotaltracker.com/s/projects/386247/stories/49569471," target='_blank'>https://www.pivotaltracker.com/s/projects/386247/stories/49569471,</A> but after a cursory search of the staff interface, I am unclear how to actually go about using this feature. Any direction you can provide is appreciated.</DIV>
<div><br></DIV>
<div>Thanks,</DIV>
<div>Ben</DIV>
<div><br></DIV>
<div><span style="COLOR: #000000; FONT-SIZE: small"><span style="FONT-FAMILY: georgia, serif; FONT-WEIGHT: bold">Ben Goldman</SPAN><br><span style="FONT-FAMILY: georgia, serif">Digital Records Archivist</SPAN><br><span style="FONT-FAMILY: georgia, serif">Penn State University Libraries</SPAN><br><span style="FONT-FAMILY: georgia, serif">University Park, PA</SPAN><br><span style="FONT-FAMILY: georgia, serif">814-863-8333<br><a href="http://www.libraries.psu.edu/psul/speccolls.html" target='_blank'>http://www.libraries.psu.edu/psul/speccolls.html</A><br></SPAN></SPAN><br></DIV></DIV></DIV></DIV></DIV>