[Archivesspace_Users_Group] Conflict between inheritance rules and oai_dc response

2020-09-25 Thread Cory Nimer
Dear ArchivesSpace community,

In working toward a migration from AS 2.5.1 to 2.8, we have encountered an 
error in the OAI ListRecords response for metadata formats other than EAD 
(i.e., oai_dc, oai_dcterms, oai_marc, and oai_mods). When trying requests such 
as https://asoaistg.lib.byu.edu/oai?verb=ListRecords&metadataPrefix=oai_dc 
(sorry, not a public link), the response returned is:

{"error":"undefined method `[]' for nil:NilClass"}

Checking the log file, we found that it referenced a line in our configuration 
file dealing with element inheritance:

E, [2020-09-22T15:58:46.797712 #333] ERROR -- : Thread-2300: Unhandled 
exception!
E, [2020-09-22T15:58:46.807963 #333] ERROR -- :
undefined method `[]' for nil:NilClass
/srv/asstg/config/config.rb:491:in `block in (root)'
org/jruby/RubyArray.java:2566:in `select'
/srv/asstg/config/config.rb:491:in `block in (root)'
uri:classloader:/record_inheritance.rb:133:in `block in merge_record'
org/jruby/RubyArray.java:1735:in `each'
uri:classloader:/record_inheritance.rb:125:in `merge_record'
uri:classloader:/record_inheritance.rb:104:in `block in merge'
org/jruby/RubyArray.java:2487:in `map'
uri:classloader:/record_inheritance.rb:103:in `merge'
uri:classloader:/record_inheritance.rb:4:in `merge'

The portion of the configuration file referred to in the log file reads as 
follows:

{
:property => "subjects",
:inherit_if => proc {|json| json.select {|j| ! 
j['_resolved']['terms'].select { |t| t['term_type'] == 'genre_form'}.empty? } },
:inherit_directly => true
},
{
:property => 'subjects',
:skip_if => proc {|json| ['file', 'item'].include?(json['level']) },
:inherit_if => proc {|json| json.select {|j| ! 
j['_resolved']['terms'].select { |t| t['term_type'] == 'topical'}.empty? } },
:inherit_directly => true
},
{
:property => 'subjects',
:skip_if => proc {|json| ['file', 'item'].include?(json['level']) },
:inherit_if => proc {|json| json.select {|j| ! 
j['_resolved']['terms'].select { |t| t['term_type'] == 'geographic'}.empty? } },
:inherit_directly => true
},
{
:property => 'subjects',
:skip_if => proc {|json| ['file', 'item'].include?(json['level']) },
:inherit_if => proc {|json| json.select {|j| ! 
j['_resolved']['terms'].select { |t| t['term_type'] == 'uniform_title'}.empty? 
} },
:inherit_directly => true
},

These inheritance configuration statements work well in our PUI display, but it 
appears to upset our ListRecords request. It does not cause issues with OAI 
GetRecord requests, which will produce the record in Dublin Core or MARC for 
Resource records without issues, but generates the same error for Archival 
Object records that would include inherited information.

Is this something that others have encountered? Reading the OAI-PMH 
documentation on GitHub, we had not expected this to be an issue.

Best,

Cory Nimer
University Archivist
Brigham Young University
801-422-6091

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Containerised ArchivesSpace in production

2020-09-25 Thread Peter Heiner
Dear list,

For want of a better list to send this, I have a few questions regarding
running ArchivesSpace containerised. List archives suggest this has not
been brought up in a while and it was exactly a year ago that Laney
McGlohon added words to docs/user/docker.md reading 'Docker is not
supported as an install method'. Whilst I believe I have a pretty good
idea of at least some of the answers, I think it might be useful to know

 - if people run it in production using containers all the same;
 - what the developers think the obstacles are to it being supported as
   containerised workload;
 - what they think needs to happen for it to become supported;
 - what can the community do to advance this.

I currently maintain several Docker-based development and staging
instances and several other systems including user training and
production systems that run bare, and it would be lovely to be able to
optimise the latter away, so my interest in this is not at all academic.

Thanks,
p
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] is there a way to batch link classifications?

2020-09-25 Thread Jessica Crouch
Hi Wendy,

Adding classifications through the SUI is a fairly quick process outlined in 
the Help Center at 
https://archivesspace.atlassian.net/wiki/spaces/ArchivesSpaceUserManual/pages/890208308/Managing+Classifications.
 You can also watch our user tutorial videos on classifications at 
https://archivesspace.atlassian.net/wiki/spaces/ArchivesSpaceUserManual/pages/915144907/Classifications+Module.

That being said, this isn’t really a batch process.  If you’re interested in 
doing more tasks in bulk, you may be interested in using the ArchivesSpace API. 
 The API documentation is located at 
http://archivesspace.github.io/archivesspace/api/. Dave Mayo gave a 
presentation at the Online Forum this year on the basics of the API if you’d 
like to get some exposure to the API and decide if this is a direction you’d 
like to pursue.  You can review that at https://youtu.be/9LVG8Ey_9eI.

I hope this information helps.  If anyone else has any tips or tricks for 
managing classifications, please feel free to chime in!

Jessica


From:  on behalf of 
Wendy Scheir 
Reply-To: Archivesspace Users Group 

Date: Wednesday, September 23, 2020 at 1:48 PM
To: Archivesspace Users Group 
Subject: [Archivesspace_Users_Group] is there a way to batch link 
classifications?

Hi,

We've created classifications and want to link batches of selected resources 
records to them. Is there a way to do this in the SUI?

Many thanks,
Wendy



WENDY SCHEIR
DIRECTOR

[Image removed by sender.]

66 5TH AVENUE, NEW YORK, NY 10011
sche...@newschool.edu

T 212.229.5942 x2888

Explore the Archives | Digital 
Collections from the Archives | 
New School Histories | 
@tnsarchives
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group