[Archivesspace_Users_Group] Sharing/previewing Accession Records

Schanz, Megan schanzme at msu.edu
Fri Apr 22 12:58:44 EDT 2022


Thanks James, that did resolve that error for us.

There was another error after that one, so I ended up making a fork of the repository in case it went down a rabbit hole. Luckily it was only one more error away from working in our instance! The final error was an incompatibility issue between the code and versions of ArchivesSpace greater than v2.8.1 when they updated the FOP library<https://github.com/archivesspace/archivesspace/commit/4a4b1429ad534463c5a291deede1f790f1a6fed5>. I used that same commit<https://github.com/archivesspace/archivesspace/commit/4a4b1429ad534463c5a291deede1f790f1a6fed5> to update the plugin with similar syntax; only needing to update a few lines<https://github.com/MSU-Libraries/accession_slips/commit/9171fd007642e27cf83d5c0ef5490dafd89d6b22>.

I didn't submit a pull request since you're still on the version that requires the original syntax, but thought I'd still share here in case it helps when you do upgrade, or if others run into this issue as well.

https://github.com/MSU-Libraries/accession_slips

Thanks again for helping us get this set up!

- Megan

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of James Bullen <james at hudmol.com>
Sent: Thursday, April 21, 2022 8:13 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Sharing/previewing Accession Records


Hi Megan,

Yep, thanks - I’ve now dealt with that one too.


Cheers,
James


On Apr 21, 2022, at 11:48 PM, Schanz, Megan <schanzme at msu.edu<mailto:schanzme at msu.edu>> wrote:

Thanks, that did fix that error. The next one appears to be a similar issue; likely a dependency on the payments_module<https://urldefense.com/v3/__https://github.com/hudmol/payments_module__;!!HXCxUKc!hrp8dQdzPter6vNqdqUTFBxmh0AR7-sBuTSwlygdcAwGjpoTZR6G8oK8i9dZtXk$>.

I, [2022-04-21T09:44:25.024165 #60]  INFO -- :   Rendered /archivesspace/plugins/yale_accession_slips/frontend/views/accessions/_non_print_slip.fo.erb (49.5ms)
I, [2022-04-21T09:44:25.025783 #60]  INFO -- : Completed 500 Internal Server Error in 299ms
F, [2022-04-21T09:44:25.031882 #60] FATAL -- :
F, [2022-04-21T09:44:25.032270 #60] FATAL -- : ActionView::Template::Error (undefined method `payment_summary' for #<JSONModel(:accession):0x37b40c41>):
F, [2022-04-21T09:44:25.033019 #60] FATAL -- :     219:           </fo:block>
    220:         </fo:block>
    221:       <% end %>
    222:       <% if @accession.payment_summary %>
    223:         <fo:block space-before="8pt">
    224:           <fo:block font-weight="bold">PAYMENT SUMMARY</fo:block>
    225:           <% render_print_item(I18n.t("payment_summary.total_price"), @accession.payment_summary['total_price']) %>



- Megan
________________________________
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 Rush, Michael <michael.rush at yale.edu<mailto:michael.rush at yale.edu>>
Sent: Wednesday, April 20, 2022 1:59 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Sharing/previewing Accession Records

Excellent!



Cheers James!



Mike



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 James Bullen
Sent: Tuesday, April 19, 2022 7:49 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Sharing/previewing Accession Records





Thanks Mike - I just pushed a commit that should fix the hard dependency on material_types:
https://github.com/hudmol/yale_accession_slips/commit/9dbd43b<https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgithub.com*2Fhudmol*2Fyale_accession_slips*2Fcommit*2F9dbd43b&data=05*7C01*7Cmichael.rush*40yale.edu*7C387b00eca62043dbc83608da225f3c47*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C0*7C637860090288574289*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=54tGB7akhR36o4weCPP30ZguuXEhok6eaBTAQ45MS4w*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!HXCxUKc!lSHf4esGckJ5j5Ikx5C6BNSsgbHp5HMSlQsNR3YudNtoE1l1-0KqWU91Qz55RKU$>



I haven’t tested it, but it should be fine ;)







Cheers,
James




On Apr 20, 2022, at 1:22 AM, Rush, Michael <michael.rush at yale.edu<mailto:michael.rush at yale.edu>> wrote:



>From the error log it seems that our print accession record plugin is dependent on the material types plugin<https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgithub.com*2Fhudmol*2Fmaterial_types&data=05*7C01*7Cmichael.rush*40yale.edu*7C387b00eca62043dbc83608da225f3c47*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C0*7C637860090288574289*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=qcOo8tASJNEF7QmRvARRIheGlfP0V2FTzC7uwBhpids*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUl!!HXCxUKc!lSHf4esGckJ5j5Ikx5C6BNSsgbHp5HMSlQsNR3YudNtoE1l1-0KqWU91qvqNdG0$> HM also developed for us. So I don’t think it’s a problem with the ASpace version, rather the mutual dependency between our plugins.



If you are comfortable forking and mucking about in the code, It probably wouldn’t been too hard to remove the references to that plugin.



Mike



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 Schanz, Megan
Sent: Tuesday, April 19, 2022 11:11 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Sharing/previewing Accession Records



Hi all,



We just tested the plugin with v3.1.1 and it doesn't appear to be compatible with that version. This is the error that was logged:



I, [2022-04-19T11:06:07.887728 #60]  INFO -- :   Rendered /archivesspace/plugins/yale_accession_slips/frontend/views/accessions/_non_print_slip.fo.erb (21.5ms)
I, [2022-04-19T11:06:07.889132 #60]  INFO -- : Completed 500 Internal Server Error in 292ms
F, [2022-04-19T11:06:07.890814 #60] FATAL -- :
F, [2022-04-19T11:06:07.890989 #60] FATAL -- : ActionView::Template::Error (undefined method `material_types' for #<JSONModel(:accession):0x266e28cd>):
F, [2022-04-19T11:06:07.891767 #60] FATAL -- :     206:           <% end %>
    207:         </fo:block>
    208:       <% end %>
    209:       <% if @accession.material_types %>
    210:         <fo:block space-before="8pt">
    211:           <fo:block font-weight="bold">MATERIAL TYPES</fo:block>
    212:           <fo:block>
F, [2022-04-19T11:06:07.891879 #60] FATAL -- :
F, [2022-04-19T11:06:07.892240 #60] FATAL -- : app/controllers/application_controller.rb:797:in `set_locale'









- Megan









_____________________________________



Megan Schanz
Application Developer & Systems Administrator
Michigan State University Libraries



________________________________
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 Busch, Ed <buschedw at msu.edu<mailto:buschedw at msu.edu>>
Sent: Tuesday, April 19, 2022 10:54 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Sharing/previewing Accession Records



Well, darn, something broke in it. Apparently not tested with newer versions of ASpace. What version are we on? Can you see if anything popped up in the log? It added a “Print Accession Record” button under More in the Accession functions.



The author wanted to know if it worked so I might as well share the debug if any.



Thanks!



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 Rush, Michael
Sent: Tuesday, April 19, 2022 8:36 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Sharing/previewing Accession Records



Hi Bri,



We have a similar use case at Yale. We often print our accession records to accompany new acquisitions through the processing and cataloging workflow. In order to save paper and print out reasonably formatted copies of accession records we contracted with Hudson Molonglo to develop a plugin. See https://github.com/hudmol/yale_accession_slips<https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2Fgithub.com*2Fhudmol*2Fyale_accession_slips__*3B!!HXCxUKc!mZfjqhvbYB0Kd3ItcKm_rIko0gz2iXUefan_t8dByo0Vq5MbKbu2pkrBgiZYsk0*24&data=05*7C01*7Cmichael.rush*40yale.edu*7C387b00eca62043dbc83608da225f3c47*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C0*7C637860090288574289*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=DvItHJPiLN54hYpkL9eW7q*2BwHe36X0fk3XUDBKQWY6A*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!lSHf4esGckJ5j5Ikx5C6BNSsgbHp5HMSlQsNR3YudNtoE1l1-0KqWU91mqPpgE4$>.



The plugin adds a “Print accession record” option under the “More” menu in the accession record view. This creates a PDF of the accession record.



We make use of a number of user-defined fields in our accession records, and the layout of the PDF incorporates those, so this plugin might not work perfectly for your local implementation. But you could give it a try, or fork it and tweak it to meet your needs.



Best,



Mike
____________________________________
Michael Rush
Assistant Head of the Manuscript Unit
Beinecke Rare Book and Manuscript Library
Yale University
203-432-8123
[he | him | his]



Information for Booksellers: https://beinecke.library.yale.edu/information-booksellers<https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2Fbeinecke.library.yale.edu*2Finformation-booksellers__*3B!!HXCxUKc!mZfjqhvbYB0Kd3ItcKm_rIko0gz2iXUefan_t8dByo0Vq5MbKbu2pkrBD0z8AlA*24&data=05*7C01*7Cmichael.rush*40yale.edu*7C387b00eca62043dbc83608da225f3c47*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C0*7C637860090288574289*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=AKSTOqzRgTZzhqUv47prNa2yvKiKurRxbrAMYiVUxsc*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!HXCxUKc!lSHf4esGckJ5j5Ikx5C6BNSsgbHp5HMSlQsNR3YudNtoE1l1-0KqWU911BkB9AA$>
Information for Donors: https://beinecke.library.yale.edu/giving-beinecke-library<https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2Fbeinecke.library.yale.edu*2Fgiving-beinecke-library__*3B!!HXCxUKc!mZfjqhvbYB0Kd3ItcKm_rIko0gz2iXUefan_t8dByo0Vq5MbKbu2pkrBo4or7Jg*24&data=05*7C01*7Cmichael.rush*40yale.edu*7C387b00eca62043dbc83608da225f3c47*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C0*7C637860090288574289*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=nBvefJ8SIZmF6cdLnCCTcmhSSGYbesifIFMGCKvMoCA*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!HXCxUKc!lSHf4esGckJ5j5Ikx5C6BNSsgbHp5HMSlQsNR3YudNtoE1l1-0KqWU91DdNsxOk$>







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 McLaughlin, Brianna Jean
Sent: Friday, April 15, 2022 2:51 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Sharing/previewing Accession Records



Hi everyone,



Could anyone share methods for sharing full Accession records outside of ArchivesSpace? We don’t utilize the AS PUI, and we are not using any sort of endpoint for Accession records. Ideally, we would have something like a print preview that we could share. It doesn’t look like any of the reports do this, and the Generate PDF function is only for Resources (at least for our version of AS 2.7.1).



Thanks!



Bri McLaughlin, she/her/hers
Visiting Metadata Services Librarian
Indiana University
812-856-3321



_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=http*3A*2F*2Flyralists.lyrasis.org*2Fmailman*2Flistinfo*2Farchivesspace_users_group&data=05*7C01*7Cmichael.rush*40yale.edu*7C387b00eca62043dbc83608da225f3c47*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C0*7C637860090288574289*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=2eo3clm5pgGC4mPZdA5ZHNV4lRDt8bFn5CZRp*2Fpox58*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!HXCxUKc!lSHf4esGckJ5j5Ikx5C6BNSsgbHp5HMSlQsNR3YudNtoE1l1-0KqWU91pdZYMZw$>



_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!HXCxUKc!hrp8dQdzPter6vNqdqUTFBxmh0AR7-sBuTSwlygdcAwGjpoTZR6G8oK8a2sHSjw$>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220422/62974fe1/attachment.html>


More information about the Archivesspace_Users_Group mailing list