<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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">For the record, Bobbi's method works! I think it might be that you need to nest the overrides for the models in
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Rails.application.config.after_initialize</p>
<div><br>
</div>
<div>jds<br>
</div>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Fox, Bobbi
<bobbi_fox@harvard.edu><br>
<b>Sent:</b> Wednesday, November 14, 2018 12:24 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] overriding default citation text in the PUI</font>
<div> </div>
</div>
<div link="blue" vlink="purple" lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal">Feel free to ask me questions off-list. (That goes for anyone else who’s interested; I just don’t want to add to list clutter).</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Cheers,</p>
<p class="x_MsoNormal">Bobbi bobbi_fox@harvard.edu</p>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Joshua D. Shaw<br>
<b>Sent:</b> Wednesday, November 14, 2018 12:23 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] overriding default citation text in the PUI</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div id="x_divtagdefaultwrapper">
<p><span style="font-size:12.0pt; color:black">I'll give it a shot this way. Thanks!</span></p>
<p><span style="font-size:12.0pt; color:black">Joshua</span></p>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<div class="x_MsoNormal" style="text-align:center" align="center"><span style="font-size:12.0pt; color:black">
<hr width="98%" size="2" align="center">
</span></div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk537289" class="OWAAutoLink" previewremoved="true">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk954870" class="OWAAutoLink" previewremoved="true">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on
behalf of Fox, Bobbi <<a href="mailto:bobbi_fox@harvard.edu" id="LPlnk68642" class="OWAAutoLink" previewremoved="true">bobbi_fox@harvard.edu</a>><br>
<b>Sent:</b> Wednesday, November 14, 2018 12:19 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] overriding default citation text in the PUI</span><span style="font-size:12.0pt; color:black">
</span></p>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
<div>
<div>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Hi,</span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">I did overrides and extensions of models, controllers, and concerns for Harvard, mostly in the plugin_init.rb (<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fharvard-library%2Faspace-hvd-pui%2Fblob%2Fmaster%2Fpublic%2Fplugin_init.rb&data=02%7C01%7Cjoshua.d.shaw%40dartmouth.edu%7C8111bbda8e964a826a6608d64a560025%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C636778130566934499&sdata=PSdxNce9gW4FKMi7kd%2B0LTkqIsF%2BIfbXMavSdDir%2FtY%3D&reserved=0" originalsrc="https://github.com/harvard-library/aspace-hvd-pui/blob/master/public/plugin_init.rb" shash="JVhCNcnBTa8bjc2Ip6UlrYToeZLgjoJcyQOKVfJBdBZf6iEnx5brG81GzVjA91e5NL33KjupX74IIIt0MLB7gVz8DyT9MPEurYSJLJFfGhZq9MSS3Bqx8LlVlkQkHGbBGiuRgPWaX7boaP+91RzhuDruLAnWu375RaccJ1VeRiE=" id="LPlnk763278" class="OWAAutoLink" previewremoved="true">https://github.com/harvard-library/aspace-hvd-pui/blob/master/public/plugin_init.rb</a>)</span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">I don’t know if I did them the “best” way, but they work ! >smile<</span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">hth,</span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Bobbi</span></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_xmsonormal"><b><span style="font-size:12.0pt; color:black">From:</span></b><span style="font-size:12.0pt; color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk634519" class="OWAAutoLink" previewremoved="true">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk662028" class="OWAAutoLink" previewremoved="true">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
<b>On Behalf Of </b>Joshua D. Shaw<br>
<b>Sent:</b> Wednesday, November 14, 2018 12:12 PM<br>
<b>To:</b> Archivesspace Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" id="LPlnk741890" class="OWAAutoLink" previewremoved="true">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] overriding default citation text in the PUI</span></p>
</div>
</div>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
<div id="x_x_divtagdefaultwrapper">
<p><span style="font-size:12.0pt; color:black">Digging up an old thread. Has anyone successfully overridden/extended any of the methods in the public models via a plugin? I'm trying to change a few things in /public/app/models/resource.rb, but have had zero
luck. I don't really want to do a custom build at this point, though I suppose I could venture down that road.</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">Thanks!</span></p>
<p><span style="font-size:12.0pt; color:black">Joshua</span></p>
<p class="x_xmsonormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<div class="x_MsoNormal" style="text-align:center" align="center"><span style="font-size:12.0pt; color:black">
<hr width="98%" size="2" align="center">
</span></div>
<div id="x_x_divRplyFwdMsg">
<p class="x_xmsonormal"><b><span style="font-size:12.0pt; color:black">From:</span></b><span style="font-size:12.0pt; color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk460499" class="OWAAutoLink" previewremoved="true">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk291830" class="OWAAutoLink" previewremoved="true">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on
behalf of Custer, Mark <<a href="mailto:mark.custer@yale.edu" id="LPlnk229493" class="OWAAutoLink" previewremoved="true">mark.custer@yale.edu</a>><br>
<b>Sent:</b> Thursday, May 17, 2018 9:10 PM<br>
<b>To:</b> Archivesspace Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] overriding default citation text in the PUI
</span></p>
<div>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
<div>
<div id="x_x_x_divtagdefaultwrapper">
<p><span style="font-size:12.0pt; color:black">Hopefully someone else can chime in with an actual answer about how to do this via a plugin, but outside of the views, I've had more success overriding things in the PUI with a custom build. And with the citation
feature, you might also need to check out this bit, which is where the URL + timestamp text is added: <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__na01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Farchivesspace-252Farchivesspace-252Fblob-252F33a433f4df55c5ee4a21128825529bb9a1a4c023-252Fpublic-252Fapp-252Fmodels-252Frecord.rb-2523L331-2DL333-26data-3D02-257C01-257Cjoshua.d.shaw-2540dartmouth.edu-257C922ecd11fe5342c0c63708d5bc5c2130-257C995b093648d640e5a31ebf689ec9446f-257C0-257C0-257C636622026246344792-26sdata-3DPcYRxhb3Zsshp8pGMoK8WyheMoiH0lz3jcENYAzI1pY-253D-26reserved-3D0%26d%3DDwMF-g%26c%3DWO-RGvefibhHBZq3fL85hQ%26r%3D5xWUzLrZrVLeTqs3CDoeRpPtLv1fRM04CCu4TDULrSY%26m%3DWUqATIzuSQYNPnv5PuXnF48XNmNb7o84p1znBfHLQ3I%26s%3D1s1nhqvbEMii9mYwP_SM9ZNZKIrdF9XFm00Rt8C50Z0%26e%3D&data=02%7C01%7Cjoshua.d.shaw%40dartmouth.edu%7C8111bbda8e964a826a6608d64a560025%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C636778130566944503&sdata=CBBkyJV%2BHOhX7%2FyGdwhFVCdol7z1E4JklWm%2Bd%2FrfZ0s%3D&reserved=0" originalsrc="https://urldefense.proofpoint.com/v2/url?u=https-3A__na01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Farchivesspace-252Farchivesspace-252Fblob-252F33a433f4df55c5ee4a21128825529bb9a1a4c023-252Fpublic-252Fapp-252Fmodels-252Frecord.rb-2523L331-2DL333-26data-3D02-257C01-257Cjoshua.d.shaw-2540dartmouth.edu-257C922ecd11fe5342c0c63708d5bc5c2130-257C995b093648d640e5a31ebf689ec9446f-257C0-257C0-257C636622026246344792-26sdata-3DPcYRxhb3Zsshp8pGMoK8WyheMoiH0lz3jcENYAzI1pY-253D-26reserved-3D0&d=DwMF-g&c=WO-RGvefibhHBZq3fL85hQ&r=5xWUzLrZrVLeTqs3CDoeRpPtLv1fRM04CCu4TDULrSY&m=WUqATIzuSQYNPnv5PuXnF48XNmNb7o84p1znBfHLQ3I&s=1s1nhqvbEMii9mYwP_SM9ZNZKIrdF9XFm00Rt8C50Z0&e=" shash="r7ESdVgrM7ZuEkaYwRhQqWkcr7FgR+GcgD/5AIaCm0ZVG5QEJY2Atec8ZhxWiiS22DsEpagKrYGCxQoflZslEfglOddO1ru1t4bXw6RbiS5RRWFBcKBTMrFB/E6b5EqcLubYB6EmlZBvfLovDq+3TOfRfMEBigsQRDXrxVfaULQ=" id="LPlnk220367" class="OWAAutoLink" previewremoved="true">https://github.com/archivesspace/archivesspace/blob/33a433f4df55c5ee4a21128825529bb9a1a4c023/public/app/models/record.rb#L331-L333</a></span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_MsoNormal" style="text-align:center" align="center"><span style="font-size:12.0pt; color:black">
<hr width="98%" size="2" align="center">
</span></div>
<div id="x_x_x_divRplyFwdMsg">
<p class="x_xmsonormal"><b><span style="font-size:12.0pt; color:black">From:</span></b><span style="font-size:12.0pt; color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk397354" class="OWAAutoLink" previewremoved="true">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" id="LPlnk398355" class="OWAAutoLink" previewremoved="true">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on
behalf of Kevin Clair <<a href="mailto:Kevin.Clair@du.edu" id="LPlnk276963" class="OWAAutoLink" previewremoved="true">Kevin.Clair@du.edu</a>><br>
<b>Sent:</b> Thursday, May 17, 2018 7:33:57 PM<br>
<b>To:</b> Archivesspace Group<br>
<b>Subject:</b> [Archivesspace_Users_Group] overriding default citation text in the PUI
</span></p>
<div>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
<div>
<div>
<p class="x_xxxmsonormal"><span style="color:black">Hello,</span><span style="font-size:12.0pt; color:black"></span></p>
<p class="x_xxxmsonormal"><span style="color:black"> </span><span style="font-size:12.0pt; color:black"></span></p>
<p class="x_xxxmsonormal"><span style="color:black">We had a request here at the University of Denver to override the default formatting of citations in the PUI. It looks like the default is defined in public/app/models/resource.rb, which I haven’t been able
to figure out how to override with a plugin. Has anyone extended the default behavior of these PUI models, and if so, can you provide some tips on how I could do so?</span><span style="font-size:12.0pt; color:black"></span></p>
<p class="x_xxxmsonormal"><span style="color:black"> </span><span style="font-size:12.0pt; color:black"></span></p>
<p class="x_xxxmsonormal"><span style="color:black">thanks! -k</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>