alcoma Thanks. Is there a way to prepopulate existing records without opening/editing or saving ? There are thousands of records this will apply to. Also, I do not have a prepopulate.conf file in my ca/app/conf. I couldn't find it on github either: https://github.com/collectiveaccess/providence/tree/master/app/conf
monica alcoma prepopulate is a plugin: https://github.com/collectiveaccess/providence/tree/master/app/plugins/prepopulate/conf Copy that .conf file to app/conf/local and enable the plugin
alcoma Thanks, but I can't find that command in caUtils. As another option, can I export the result of a display template on a field ? Or can a display template be applied in Options of an export mapper ?
monica alcoma according to the documentation https://manual.collectiveaccess.org/providence/user/export/mappings.html#options you can.
alcoma monica Ah great. What would I set as the source element ? since the element in question is empty (objectUrl_pawtucket), and I'm relying on the Options "template" for output? And would I need the ahref in the template or just the url formation ?
monica alcoma completely up to you how you output it. Since you are using the template option, you can use whatever source you want, but I would use the ca_objects.objectUrl_pawtucket so it's clear what that row is for.
alcoma monica Right, that's what I have so far, but since the field has no actual data it confuses me how to make this <a href="https://archives.otherminds.org/index.php/Detail/objects/^object_id" target="_blank">https://archives.otherminds.org/index.php/Detail/objects/^object_id</a> work in the Options code of the mapper.
monica alcoma What have you tried in the options so far? Can you paste what you have in template, like: {"template" : "https://archives.otherminds.org/index.php/Detail/objects/^object_id"}
alcoma Right now I have: {"context" : "ca_objects", "template":"<https://archives.otherminds.org/index.php/Detail/objects/^object_id"}
monica alcoma You only need context if your export isn't for ca_objects to begin with (eg. It's a ca_collections that lists all the related objects), or you need to switch the context back to objects after a previous switch further up the hierarchy. You might also need to try ca_objects.object_id in the URL, or create a variable at the top where 'object_id' is the element and 'ca_objects.object_id' is the source.
alcoma monica create a variable at the top where 'object_id' is the element How do I ? PS - Nevermind, the above, I figured it out. I was missing the first bracket and spaces, but ultimately the {"template" : "https://archives.otherminds.org/index.php/Detail/objects/^object_id"} worked.