<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">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.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks!</p>
<p style="margin-top:0;margin-bottom:0">Joshua<br>
</p>
<br>
<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 Custer, Mark
 <mark.custer@yale.edu><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</font>
<div> </div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">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%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fblob%2F33a433f4df55c5ee4a21128825529bb9a1a4c023%2Fpublic%2Fapp%2Fmodels%2Frecord.rb%23L331-L333&data=02%7C01%7Cjoshua.d.shaw%40dartmouth.edu%7C922ecd11fe5342c0c63708d5bc5c2130%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C636622026246344792&sdata=PcYRxhb3Zsshp8pGMoK8WyheMoiH0lz3jcENYAzI1pY%3D&reserved=0" originalsrc="https://github.com/archivesspace/archivesspace/blob/33a433f4df55c5ee4a21128825529bb9a1a4c023/public/app/models/record.rb#L331-L333" shash="I3htXqJ2kSdP1hjHuABCQksSxwZxdehfMccLUIg+z2oDEprdmlKVoArj34X5wQcc5TVcA2hqsV3/UW+bM0SBcFI7sBiG8A+pH3betbVeFtoYgPEK+ZP0eh303QAlrEuBDgo9zGicZseD0tIiBOumU84YReaWFZVWP0Wm6ypSxAk=" class="x_OWAAutoLink" id="LPlnk513095" previewremoved="true">https://github.com/archivesspace/archivesspace/blob/33a433f4df55c5ee4a21128825529bb9a1a4c023/public/app/models/record.rb#L331-L333</a></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_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 Kevin Clair
 <Kevin.Clair@du.edu><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</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif}
a:x_x_link, span.x_x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:x_x_visited, span.x_x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
span.x_x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_x_MsoChpDefault
        {font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
<div lang="EN-US">
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal"><span style="font-size:11.0pt">Hello,</span></p>
<p class="x_x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_x_MsoNormal"><span style="font-size:11.0pt">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></p>
<p class="x_x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_x_MsoNormal"><span style="font-size:11.0pt">thanks!  -k</span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>