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
I haven’t tested it, but it should be fine ;) Cheers, James > On Apr 20, 2022, at 1:22 AM, Rush, Michael <[email protected]> wrote: > > From the error log it seems that our print accession record plugin is > dependent on the material types plugin > <https://github.com/hudmol/material_types> 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: [email protected] > <[email protected]> On Behalf Of > Schanz, Megan > Sent: Tuesday, April 19, 2022 11:11 AM > To: Archivesspace Users Group > <[email protected]> > 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: [email protected] > <mailto:[email protected]> > <[email protected] > <mailto:[email protected]>> on behalf > of Busch, Ed <[email protected] <mailto:[email protected]>> > Sent: Tuesday, April 19, 2022 10:54 AM > To: Archivesspace Users Group > <[email protected] > <mailto:[email protected]>> > 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: [email protected] > <mailto:[email protected]> > <[email protected] > <mailto:[email protected]>> On Behalf > Of Rush, Michael > Sent: Tuesday, April 19, 2022 8:36 AM > To: Archivesspace Users Group > <[email protected] > <mailto:[email protected]>> > 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://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%7C1ba43c396a7b4a81c13808da2216da21%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637859778931673640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6GaZQJzXG%2BtCynvLm6SZpRe4%2BnYoIxDSMjHughSauwY%3D&reserved=0>. > > > 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://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%7C1ba43c396a7b4a81c13808da2216da21%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637859778931673640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T8KWeUNWnL9iJLIf3YoP2k1bgVCnR6uPXQOfOEJ9q0s%3D&reserved=0> > Information for Donors: > https://beinecke.library.yale.edu/giving-beinecke-library > <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%7C1ba43c396a7b4a81c13808da2216da21%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637859778931673640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZGgHlIv8HjfMlFn%2B1LkYLaVreAXaS9W90Hdpw270BV8%3D&reserved=0> > > > > From: [email protected] > <mailto:[email protected]> > <[email protected] > <mailto:[email protected]>> On Behalf > Of McLaughlin, Brianna Jean > Sent: Friday, April 15, 2022 2:51 PM > To: Archivesspace Users Group > <[email protected] > <mailto:[email protected]>> > 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 > [email protected] > http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________ Archivesspace_Users_Group mailing list [email protected] http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
