[Archivesspace_Users_Group] overriding default citation text in the PUI

Joshua D. Shaw Joshua.D.Shaw at dartmouth.edu
Wed Nov 14 12:34:41 EST 2018


For the record, Bobbi's method works! I think it might be that you need to nest the overrides for the models in


Rails.application.config.after_initialize

jds

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Fox, Bobbi <bobbi_fox at harvard.edu>
Sent: Wednesday, November 14, 2018 12:24 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] overriding default citation text in the PUI


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).



Cheers,

Bobbi  bobbi_fox at harvard.edu



From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Joshua D. Shaw
Sent: Wednesday, November 14, 2018 12:23 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] overriding default citation text in the PUI



I'll give it a shot this way. Thanks!

Joshua



________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Fox, Bobbi <bobbi_fox at harvard.edu<mailto:bobbi_fox at harvard.edu>>
Sent: Wednesday, November 14, 2018 12:19 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] overriding default citation text in the PUI



Hi,



I did overrides and extensions of models, controllers, and concerns for Harvard, mostly in the plugin_init.rb (https://github.com/harvard-library/aspace-hvd-pui/blob/master/public/plugin_init.rb<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>)



I don’t know if I did them the “best” way, but they work ! >smile<



hth,

Bobbi



From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> On Behalf Of Joshua D. Shaw
Sent: Wednesday, November 14, 2018 12:12 PM
To: Archivesspace Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] overriding default citation text in the PUI



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.



Thanks!

Joshua



________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Custer, Mark <mark.custer at yale.edu<mailto:mark.custer at yale.edu>>
Sent: Thursday, May 17, 2018 9:10 PM
To: Archivesspace Group
Subject: Re: [Archivesspace_Users_Group] overriding default citation text in the PUI



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:  https://github.com/archivesspace/archivesspace/blob/33a433f4df55c5ee4a21128825529bb9a1a4c023/public/app/models/record.rb#L331-L333<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>





________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Kevin Clair <Kevin.Clair at du.edu<mailto:Kevin.Clair at du.edu>>
Sent: Thursday, May 17, 2018 7:33:57 PM
To: Archivesspace Group
Subject: [Archivesspace_Users_Group] overriding default citation text in the PUI



Hello,



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?



thanks!  -k
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20181114/245da16e/attachment.html>


More information about the Archivesspace_Users_Group mailing list