[Archivesspace_Users_Group] Audience question

Galligan, Patrick PGalligan at rockarch.org
Mon Nov 16 10:22:23 EST 2015


Sorry, I spaced on the line. It's 319 now in the latest dev release.

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 Galligan, Patrick
Sent: Monday, November 16, 2015 10:21 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Audience question

Johanna,

You have to modify your EAD converter. We've done this to our converter.

Something like this should work:

    %w(accessrestrict accessrestrict/legalstatus \
       accruals acqinfo altformavail appraisal arrangement \
       bioghist custodhist dimensions \
       fileplan odd otherfindaid originalsloc phystech \
       prefercite processinfo relatedmaterial scopecontent \
       separatedmaterial userestrict ).each do |note|
      with note do |node|
        content = inner_xml.tap {|xml|
          xml.sub!(/<head>.*?<\/head>/m, '')
          # xml.sub!(/<list [^>]*>.*?<\/list>/m, '')
          # xml.sub!(/<chronlist [^>]*>.*<\/chronlist>/m, '')
        }

        make :note_multipart, {
          :type => node.name,
          :persistent_id => att('id'),
                                  :publish => att('audience') != 'internal',
          :subnotes => {
                                                :publish => att('audience') != 'internal',
                                    'jsonmodel_type' => 'note_text',
                                                'content' => format_content( content )
          }
        } do |note|
          set ancestor(:resource, :archival_object), :notes, note
        end
      end

This text should start around line 110 in your ead_converter.rb file. Just make it into a local plugin once you've added the :publish => att('audience')!='internal', where you need to.

These changes publish everything unless it's marked internal.

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> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Carll, Johanna
Sent: Monday, November 16, 2015 10:09 AM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] Audience question

Hi all

What is the expected behavior of the audience attribute  when it is undefined or defined as external during AS EAD ingest?  We have used an undefined audience attribute as the default for publish in our EAD, but when ingested into AS, note elements (scope and content, biography/history, access and use restrict, etc.) with undefined audience attributes ingest with internal attributes (publish=false).  When we changed the undefined audience attributes to external, AS ignored the attributes and  continued to assign an internal audience attribute to those elements. If this is the expected behavior, how do we specify that an EAD element should ingest with an external audience attribute (publish=true)?

Thanks

Johanna Carll
Archivist and Metadata Specialist
Schlesinger Library
Radcliffe Institute for Advanced Study
Harvard University
10 Garden Street
Cambridge, MA 02138
617-495-8524
jcarll at radcliffe.harvard.edu<mailto:jcarll at radcliffe.harvard.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20151116/68c711d5/attachment.html>


More information about the Archivesspace_Users_Group mailing list