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)
jeisz...@iupui.edu<mailto:jeisz...@iupui.edu>  317.274.0751

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

Reply via email to