<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof">Best to stick with what's in the official ArchivesSpace config.rb</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<a href="https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L389-L434">https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L389-L434</a><br>
</div>
<div class="elementToProof">
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; margin:0px">
<font face="Calibri,Arial,Helvetica,sans-serif" size="3" color="black"><span dir="ltr" style="font-size:12pt; background-color:white"><font size="2"><span style="font-size:11pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><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 Matthew Lawson
<matt.lawson@uni.edu><br>
<b>Sent:</b> Thursday, January 12, 2023 10:40 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] Changing PUI inheritance</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
My goal was to change PUI inheritance in the config.rb so that the “Preferred Citation” text is inherited by child records</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
So I uncommented this section at bottom and added the last property myself which I found at <a href="https://gist.github.com/fordmadox/6f91ee378ae9d8a471bb8720fd6f2bd9" target="_blank" style="color:rgb(5,99,193)">https://gist.github.com/fordmadox/6f91ee378ae9d8a471bb8720fd6f2bd9</a></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
I then removed the files in /data/<span style="font-size:9pt; line-height:12.84px; font-family:Consolas; color:rgb(110,119,129); background:rgb(255,248,197)">indexer_pui_state</span> and restarted the service. But the public and staff websites never came back
up. And I noticed that even after a half hour indexer_pui_state was not repopulating as I thought it should. So I reverted to my old config.rb file and restarted. Some indexer files came back but the public website gave a (rails error warning?)</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
</p>
<p class="x_MsoNormal" align="center" style="margin:0in 0in 8pt; text-align:center; line-height:18pt; font-size:11pt; font-family:Calibri,sans-serif">
<b><span style="font-size:12pt; font-family:Arial,sans-serif; color:rgb(115,14,21)">We're sorry, but something went wrong.</span></b></p>
<p class="x_MsoNormal" align="center" style="margin:0in 0in 8pt; text-align:center; line-height:18pt; font-size:11pt; font-family:Calibri,sans-serif">
<b><span style="font-size:12pt; font-family:Arial,sans-serif; color:rgb(115,14,21)"><br>
</span></b></p>
<p class="x_MsoNormal" align="center" style="margin:0in 0in 8pt; text-align:center; line-height:18pt; font-size:11pt; font-family:Calibri,sans-serif">
<b><span style="font-size:12pt; font-family:Arial,sans-serif; color:rgb(115,14,21)"><br>
</span></b></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
I have now reverted to a save point but do not know how to fix record inheritance. I am on 3.1.1</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
AppConfig[:record_inheritance] = {</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:archival_object => {</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherited_fields => [</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'title',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'component_id',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'language',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'dates',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'extents',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'linked_agents',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_if => proc {|json| json.select {|j| j['role'] == 'creator'} },</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'notes',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_if => proc {|json| json.select {|j| j['type'] == 'accessrestrict'} },</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false </p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
{</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:property => 'notes',</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_if => proc {|json| json.select {|j| j['type'] == 'scopecontent'} },</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
:inherit_directly => false</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
},</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
<span style="background:aqua">{</span></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
<span style="background:aqua"> :property => 'notes',</span></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
<span style="background:aqua"> :inherit_if => proc { |json| json.select {|j| j['type'] == 'prefercite'} },</span></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
<span style="background:aqua"> :inherit_directly => true</span></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
<span style="background:aqua"> },</span></p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
]</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
}</p>
<p class="x_MsoNormal" style="margin:0in 0in 8pt; line-height:15.6933px; font-size:11pt; font-family:Calibri,sans-serif">
}</p>
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr"><span style="color:rgb(80,7,120); font-family:arial,sans-serif; font-size:18px"><span style="font-weight:bolder">Matt Lawson</span></span><br style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px">
<span style="font-weight:bolder; color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"><span style="font-family:arial,sans-serif; font-size:14px">Cloud Systems Application Administrator</span></span><br style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px">
<span style="color:rgb(80,7,120); font-family:Arial; font-size:13.3333px; white-space:pre-wrap">IT :: Network & Infrastructure Services :: Specialized Systems</span><br style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px">
<span style="color:rgb(80,7,120); font-size:12px; font-family:arial,sans-serif">319-273-3931</span><span style="color:rgb(80,7,120); font-size:12px; font-family:arial,sans-serif"><br>
ITTC 117</span>
<div><span style="color:rgb(80,7,120); font-size:12px; font-family:arial,sans-serif"> </span><span style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"> </span><span style="font-weight:bolder; color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"><span style="color:rgb(255,181,0); font-family:arial,sans-serif">/</span></span><span style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"> </span><span style="color:rgb(80,7,120); font-size:12px; font-family:arial,sans-serif">Cedar
Falls, IA 50614</span><br style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px">
<span style="color:rgb(80,7,120); font-size:12px; font-family:arial,sans-serif"><a href="https://uni.edu/" target="_blank" style="color:rgb(80,7,120); background-color:transparent; font-weight:bold">uni.edu</a></span><span style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"> </span><span style="font-weight:bolder; color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"><span style="color:rgb(255,181,0); font-family:arial,sans-serif">/</span></span><span style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px"> </span><span style="color:rgb(80,7,120); font-size:12px; font-family:arial,sans-serif"><span style="font-weight:bolder"><em>#1UNI</em></span></span><br style="color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px">
<img alt="UNI / University of Northern Iowa" height="78" width="300" style="border:0px none; vertical-align:middle; max-width:100%; height:auto; color:rgb(80,7,120); font-family:Arial,sans-serif; font-size:12px" src="https://ur.uni.edu/sites/default/files/resize/email_images/uni-primary-color-300x78.png"><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>