[Archivesspace_Users_Group] Error from ead_export.sh

Mark Cooper mark.cooper at lyrasis.org
Tue Nov 18 18:44:13 EST 2014


That is the problem. If you edit: /path/to/archivesspace/launcher/ead_export/lib/ead_export.rb

and replace (line 91):


unitid = unitid.text


with:


unitid = unitid.text.gsub(/\//, '_')


That will replace any unitid / with an _ for the EAD filename in the zip (it won't effect the EAD content).


Mark


Mark Cooper
LYRASIS -- ??ArchivesSpace Hosting and Support
mark.cooper at lyrasis.org<mailto:mark.cooper at lyrasis.org>

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Steven Majewski <sdm7g at virginia.edu>
Sent: Tuesday, November 18, 2014 11:39 AM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] Error from ead_export.sh


I'm getting this error trying the ead_export cli after about 1200+ of 3000+ items exported.

I suspect it's because the item it's failing on has slashes in the unitid :

<did>
    <langmaterial>
      <language langcode="eng">English</language>
    </langmaterial>
    <repository>
      <corpname>University of Virginia, Special Collections Dept.</corpname>
    </repository>
    <unittitle>Papers of the Dean of Students</unittitle>
    <unitid>18/2/1.072</unitid>
    <physdesc altrender="whole">
      <extent altrender="materialtype spaceoccupied">1 arbitrary_whole</extent>
    </physdesc>
  </did>


and the code appears to be using that id as part of the temporary filename.



archivesspace$ ./scripts/ead_export.sh admin admin 2
Loading ArchivesSpace configuration file from path: /projects/Archivespace/archivesspace/./config/config.rb
Loading ArchivesSpace configuration file from path: /projects/Archivespace/archivesspace/./config/config.rb
IOError: No such file or directory
        create at file:/projects/Archivespace/archivesspace/gems/gems/jruby-jars-1.7.11/lib/jruby-stdlib-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:0
  initialize19 at org/jruby/ext/tempfile/Tempfile.java:94
           new at org/jruby/RubyIO.java:852
          main at ../launcher/ead_export/lib/ead_export.rb:93
          each at org/jruby/RubyArray.java:1613
          main at ../launcher/ead_export/lib/ead_export.rb:86
        (root) at ../launcher/ead_export/lib/ead_export.rb:107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20141118/77a433e0/attachment.html>


More information about the Archivesspace_Users_Group mailing list