# Set this to disable the "classroom" feature disable_classroom = 1 # --------------------- # User submissions # --------------------- use_submission_interface = 0 # # Set this if you want urls that refer to specified items to use the identifier # rather than CollectiveAccess internal ID. The former is more descriptive but will # not work if you have duplicate identifiers in your catalogue! # use_identifiers_in_urls = 0 dont_enforce_access_settings = 0 # # Front page set code # front_page_set_code = frontPage # # Allow PHP code in content-managed site pages # # By default only value tags in the form {{{tag-name}}} are allowed in Pawtucket site page templates. # If you need the flexibility and power afforded by direct embedding of PHP code in your templates # set this option to a non-zero value. Note that enabling this option will allow execution of ANY # code embedded in the template on EVERY page load. Depending upon your point of view this is either a # feature or a security hole. It doesn't have to be a problem, but keep it in mind... # allow_php_in_site_page_templates = 0 # By default Pawtucket will only load third-party Javascript from sources used by standard user interface elements # You can add any theme-specific Javascript sources here. Separate the urls for each source with a space. content_security_policy_include = # # Configuration for Excel (xlsx) and PowerPoint (pptx) export formats # PDF formats are configured using templates in app/printTemplates # (See http://docs.collectiveaccess.org/wiki/PDF_Output) # export_formats = { ca_objects = { basic_excel = { name = Relatório básico (EXCEL), type = xlsx, columns = { idno = { template = ^ca_objects.idno }, título = { template = ^ca_objects.preferred_labels }, evento = { template = ^ca_occurrences.hierarchy.preferred_labels%delimiter=-> }, entidade = { template = ^ca_entities.preferred_labels } } }, # basic_ppt = { # name = PowerPoint (basic information), # filename = ObjectResults, # type = pptx, # columns = { # Image = { # template = ^ca_object_representations.media.large, # width = 4in, # height = 3.5in, # x = 0.5in, # y = 1.5in # }, # Object = { # template = ^ca_objects.preferred_labels.name (^ca_objects.idno), # width = 10in, # height = 1in, # x = 0in, # y = 0.25in, # size = 20px, # bold = 1, # color = 000000, # align = center # }, # Description = { # template = ^ca_objects.description, # width = 3in, # height = 5in, # x = 6.5in, # y = 1.5in, # size = 12px, # color = 000000, # align = left # }, # Date = { # template = ^ca_objects.creation_date, # width = 1.5in, # height = 15px, # x = 8.5in, # y = 7.1in, # size = 12px, # color = 000000 # } # } # } }, ca_occurrences = { basic_excel = { name = Relatório básico (EXCEL), type = xlsx, columns = { _("código de identificação") = { template = ^ca_occurrences.idno }, _("nome do evento") = { template = ^ca_occurrences.preferred_labels }, data = { template = ^ca_occurrences.event_period.event_period_startdate - ^ca_occurrences.event_period.event_period_enddate }, local = { template = ^ca_entities.preferred_labels }, _("evento bienal") = { template = ^ca_occurrences.event_type.event_type_bienal }, tipo = { template = ^ca_occurrences.event_type.event_type_value }, } } }, ca_entities = { basic_excel = { name = Relatório básico (EXCEL), type = xlsx, columns = { _("nome da entidade") = { template = ^ca_entities.preferred_labels.displayname }, tipo = { template = ^ca_entities.type_id }, categoria = { template = ^ca_entities.entity_category }, _("participação bienal") = { template = ^ca_occurrences.preferred_labels }, } } } } # # Display template used to format information text at bottom of media overlay. Template is evaluated relative to the item with which the media is # associated. If left blank preferred label + identifier of the item associated with the media is displayed. # media_overlay_titlebar_template = # # Representation versions to provide download option for in media viewer. If omitted then no download control is displayed # (Uncomment the directive below to enable downloads) # #ca_object_representation_download_versions = [original] # # Configuration for image comparison interface. Set first key to table name (for now only ca_objects are supported) # and second level keys to option names with values. # compare_images = { ca_objects = { # template to use when displaying object name within compare interface title_template = ^ca_objects.preferred_labels.name } } # ------------------------- # User Registration Security # ------------------------- # # Configuration for registration security method # This can either be set to sum_equation (for basic arithmetic challenge question: 4+7=?) or captcha, which implements a Google reCaptcha # If you select reCaptcha, you will have to register the application and provide two API keys to allow google to process the captcha # You can do so at https://www.google.com/recaptcha # Configure keys in setup.php - __CA_GOOGLE_RECAPTCHA_KEY__ and __CA_GOOGLE_RECAPTCHA_SECRET_KEY__ - so they are not commited into git and made public # registration_security = sum_equation # -------------------- # Alt text templates for media # -------------------- ca_objects_alt_text_template = "^ca_objects.preferred_labels.name^ca_objects.preferred_labels.name^ca_object_representations.preferred_labels.name" ca_object_representations_alt_text_template = "^ca_objects.preferred_labels.name^ca_objects.preferred_labels.name^ca_object_representations.preferred_labels.name" # -------------------- # Formatting of download file name. # -------------------- # Can be one of the following: # idno, idno_and_version, idno_and_rep_id_and_version, original_name # # You may also set this to a display template evaluated relative to representation being # downloaded. Ex. "DOWNLOAD_^ca_object_representations.original_filename" will name the file # using the originally uploaded file name prefixed with "DOWNLOAD_"; "^ca_object_representations.md5" # will name the downloaded file with the MD5 checksum of the originally uploaded file. # # Your template should not include an extension as it will be added to the end of your # template. Values that include non-alphanumeric values such as mimetype will have those # characters converted to underscores. You can surround tags with curly brackets {} to # ensure that your tags don't blend into the file name. An example template that # includes idno and original file name: # # download_{^ca_object_representations.idno}_{^ca_object_representations.original_filename} # # For TIFF media from object 2016.2 with an originally uploaded name of test_file.jpg this # template will return the file name "download_2016_2_test_file.tiff" # # You can set the naming policy on a per-table basis (Eg. representations related to an object # can be named following one format and representations related to an occurrence another) using # the _downloaded_file_naming directive (Ex. ca_objects_downloaded_file_naming = idno_and_version) # # You can set a global policy to be applied if a table-specific policy is not defined using the # downloaded_file_naming directive. # downloaded_file_naming = original_name