[Archivesspace_Users_Group] Configuration question for 2.3.0

Eiszner, John W jeiszner at iupui.edu
Thu Feb 22 15:19:18 EST 2018


What is the proper syntax for modifying the [:pui_repos] config statements?  The example at http://archivesspace.github.io/archivesspace/user/configuring-archivesspace/ uses an "imaginary repository code of 'foo'", but no actual usage of "foo" is shown.

AppConfig[:pui_repos][{repo_code}][:requests_permitted_for_types] = [:archival_object] #      ...gives the syntax error "unexpected tRCURLY"

AppConfig[:pui_repos]['PSA'][:requests_permitted_for_types] = [:archival_object] #      ...gives the syntax error "NoMethodError: undefined method `[]=' for nil:NilClass"    (Note: I am not a Ruby expert.)

It appears that the string "{repo_code}" must be replaced by a local repository code.  We have 4 repositories in our installation:  General, GA, PSA and UA.

# Repository-specific examples.  We are using the imaginary repository code of 'foo'.  Note the lower-case
AppConfig[:pui_repos] = {}
# Example:
# AppConfig[:pui_repos][{repo_code}] = {}
# AppConfig[:pui_repos][{repo_code}][:requests_permitted_for_types] = [:resource, :archival_object, :accession, :digital_object, :digital_object_component] # for a particular repository, only enable requests for certain record types (Note this configuration will override AppConfig[:pui_requests_permitted_for_types] for the repository)
# AppConfig[:pui_repos][{repo_code}][:requests_permitted_for_containers_only] = true # for a particular repository ,disable request
# AppConfig[:pui_repos][{repo_code}][:request_email] = {email address} # the email address to send any repository requests
# AppConfig[:pui_repos][{repo_code}][:hide] = {}
# AppConfig[:pui_repos][{repo_code}][:hide][:counts] = true

John Eiszner, Lead Analyst/Programmer
University Library
Indiana University-Purdue University Indianapolis (IUPUI)
jeiszner at iupui.edu<mailto:jeiszner at iupui.edu>  317.274.0751

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20180222/76b6101c/attachment.html>


More information about the Archivesspace_Users_Group mailing list