[Archivesspace_Users_Group] EAD Import trouble with audience/publish

Galligan, Patrick PGalligan at rockarch.org
Wed Apr 6 09:08:52 EDT 2016


Noah,

Yeah, in my experience the EAD importer modifications that we made should apply to all levels on import, but as you called out, you have to make some more tweaks for different types of notes, but it's pretty easy to find those in the importer file.

Patrick Galligan
Rockefeller Archive Center
Assistant Digital Archivist
914-366-6386

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Noah Huffman
Sent: Wednesday, April 06, 2016 9:06 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] EAD Import trouble with audience/publish

Mark,

I'm not aware of any pull requests for modifying the EAD converter.  I think it'd be nice to include in the core code assuming that everyone (the community) agrees that publishing everything by default is the expected behavior.

I'm pretty sure the changes I made will apply to notes at any level (component or collection), but I could be wrong and I haven't tested extensively.  It's also possible I missed some notes.  I just took the example code that Patrick shared and applied it to some other locations (for both single and multi-part notes).

-Noah

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Custer, Mark
Sent: Tuesday, April 05, 2016 4:38 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] EAD Import trouble with audience/publish

This is great, Noah (and Patrick!).  Do you know if anyone created a pull request yet to put this into the core code?  If not, I'll be happy to do that at some point next week since it would make the most sense for this type of update to live in the core code.

Also, did you (or anyone else) modify the importer so that @audience='internal' was respected at the collection and component level?  I seem to remember that the importer always publishes the components, but it's been a while since I looked at what happens there.

Mark


From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Noah Huffman
Sent: Tuesday, 05 April, 2016 4:06 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] EAD Import trouble with audience/publish

Hi Jane,

I noticed that Patrick G. from the Rockefeller Archives shared a solution to this same issue back on Nov. 16 (Subject line: Audience Question).

Basically, you can modify the EAD converter that Chris mentions to set all imported notes to 'published' by default unless EAD elements have @audience='internal'.

You can set up the modified EAD converter as a plugin.

I needed to do this locally, so I went ahead a wrote a plugin.

Here is the modified EAD converter: https://github.com/noahgh221/archivesspace-duke-plugins/blob/master/plugins/duke-ead-importer/backend/converters/duke_ead_converter.rb<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_noahgh221_archivesspace-2Dduke-2Dplugins_blob_master_plugins_duke-2Dead-2Dimporter_backend_converters_duke-5Fead-5Fconverter.rb&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=9aIZ08dKR_unOY5i_HM10zQCPnpzrJDXPBGW92jXDHo&s=WkRhMfjAmf0w1Qrvy0yZxKi3QTUG3oZzLXDrWLpsW84&e=>

Here's how to set up the plugin:

1.       Download the modified EAD converter file above (click 'Raw', save as, etc.)

2.       Save the file to the plugins directory in your ASpace application files: plugins/duke-ead-importer/backend/converters/duke_ead_converter.rb (you'll need to create the duke-ead-importer/backend/converters/ directory structure)

3.  Open the config/config.rb file, add the name of the plugin to the line that begins AppConfig[:plugins], and save it.  For example: AppConfig[:plugins] = ['local', 'duke-ead-converter']

4.       Restart the archivesspace application (archivesspace/archivesspace.sh or archivesspace/archivesspace.bat on Windows)

5.       Start a new EAD import job

For more info on how plugins work, see: http://archivesspace.github.io/archivesspace/user/archivesspace-plug-ins-readme/<https://urldefense.proofpoint.com/v2/url?u=http-3A__archivesspace.github.io_archivesspace_user_archivesspace-2Dplug-2Dins-2Dreadme_&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=9aIZ08dKR_unOY5i_HM10zQCPnpzrJDXPBGW92jXDHo&s=ODjNtfXXQlhFC0zTFc1Lu-zq3QU2cSPF64lRy7BGKQ0&e=>

I ran a couple of EAD import tests using this plugin and it seems to publish all imported notes by default unless EAD tags include @audience="internal".  Still, I'd test this before importing all your EADs to production.

Hope this helps.

-Noah

================
Noah Huffman
Archivist for Metadata, Systems, and Digital Records
David M. Rubenstein Rare Book & Manuscript Library
Duke University

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Chris Fitzpatrick
Sent: Tuesday, April 05, 2016 2:45 AM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] EAD Import trouble with audience/publish




Hi,



Yes, it looks like the EAD converter<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_archivesspace_archivesspace_blob_master_backend_app_converters_ead-5Fconverter.rb-23L108&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=9aIZ08dKR_unOY5i_HM10zQCPnpzrJDXPBGW92jXDHo&s=8IrDk6ha3gPgGoM7aphSqz3AnVMqr6mwUNUijZrZaFI&e=> only looks at @audience for archdesc and c tags.



b,chris.


Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/<https://urldefense.proofpoint.com/v2/url?u=http-3A__archivesspace.org_&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=9aIZ08dKR_unOY5i_HM10zQCPnpzrJDXPBGW92jXDHo&s=Jls-8V7jtaJVF7ZDaDEcnLttL7qE33gGuI8xrm1I10s&e=>

________________________________
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 Jane LaBarbara <jane.labarbara at mail.wvu.edu<mailto:jane.labarbara at mail.wvu.edu>>
Sent: Monday, April 04, 2016 8:34 PM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] EAD Import trouble with audience/publish


Dear all,



I'm using legacy EAD XML to test ArchivesSpace's EAD Import in preparation for a mass migration to ArchivesSpace.  I've noticed that I can add the attribute audience="external" to <archdesc> and all of my "notes" (e.g. <relatedmaterial>, <bioghist>, and many more), but the resulting Resource Record is only published at the highest level-the notes themselves are not published.  Once we migrate, I'm guessing this will mean that staff will have to go into each Resource Record and click the "publish" checkboxes for everything we need to show up in the public view, and we have over 4000 collections.



Has anyone else noticed that the EAD Import does not respect audience="external", or found a solution or workaround for this?



Thanks,

Jane



Jane Metters LaBarbara

Assistant Curator

West Virginia & Regional History Center<https://urldefense.proofpoint.com/v2/url?u=https-3A__wvrhc.lib.wvu.edu_&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=9aIZ08dKR_unOY5i_HM10zQCPnpzrJDXPBGW92jXDHo&s=3DizfA4Cr8171ah5VvpQI_W1wPlXIjnUOOmh2Jm3moU&e=>

West Virginia University Libraries

Reference desk: 304-293-3536

Office phone: 304-293-0352

Email: jane.labarbara at mail.wvu.edu<mailto:jane.labarbara at mail.wvu.edu>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160406/3de8bcb3/attachment.html>


More information about the Archivesspace_Users_Group mailing list