Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Prepopulate not working with attributes

edited January 9 in Troubleshooting

Hi. I am using CA v1.7.8 and I have some issues with prepopulate plugin.
While working fine with preferred and non preferred labels, I cannot make it working with attributes.

Attached here is my prepopulate.conf...
The rules IIIF_rule and Petrignani_rights do not work, while description_to_tag and description_to_web do.
Any help?

Thank you,

GB

enabled = 1

prepopulate_fields_on_save = 1
prepopulate_fields_on_edit = 1

prepopulate_rules = {
IIIF_url = {
table = ca_objects,
mode = addIfEmpty,
target = ca_objects.IIIF_url,
template = http://mvca.scv.va/providence/service.php/IIIF/^ca_objects.object_id/manifest
},
petrignani_rights = {
table = ca_objects,
restrictToTypes = [image_AF],
mode = addIfEmpty,
target = ca_objects.ownership,
template = FOTO COPYRIGHT GOVERNATORATO SCV - DIREZIONE DEI MUSEI
},
description_to_tag = {
table = ca_objects,
restrictToTypes = [po_inv],
mode = overwrite,
target = ca_objects.preferred_labels.name,
skipIfExpression = ^ca_objects.lock_web_description =~ /list_fuoriposto_no/,
template = ^ca_objects.description%truncate=70%ellipsis
},
description_to_web = {
table = ca_objects,
restrictToTypes = [po_inv],
mode = overwrite,
target = ca_objects.nonpreferred_labels.name,
skipIfExpression = ^ca_objects.lock_web_description =~ /list_fuoriposto_no/,
template = ^ca_objects.description
}
}

Sign In or Register to comment.