(Providence) How to hide a relationship bundle for certain ca_objects types
An object's "publisher" is a relationship with the entities table. How can I hide this bundle placement for certain ca_objects types, like a manuscript?
<placement code="ca_publisher"> <bundle>ca_entities</bundle> <settings> <setting name="restrict_to_relationship_types">publisher</setting> <setting name="label" locale="en_US">Publisher</setting> <setting name="label" locale="es_PR">Publicador</setting> </settings> </placement>
I have considered defining a typeless pseudo-relationship element instead, as such:
<metadataElement code="publisher" datatype="Entities"> <labels> <label locale="en_US"> <name>Publisher</name> </label> </labels> <typeRestrictions> <restriction> <table>ca_objects</table> <type>published_documents</type> </restriction> </typeRestrictions> </metadataElement>
...in order to be able to hide it for manuscripts. All example profiles use true relationships instead of typeless pseudo-relationships. Should I use the pseudo-relationship? Are there any drawbacks to using them? Is there any other way to not have a publisher on a manuscript?